]> xenbits.xensource.com Git - unikraft/libs/click.git/commit
click.cc: Probe the network devices at init time
authorStefan Jumarea <stefanjumarea02@gmail.com>
Fri, 8 Sep 2023 12:37:04 +0000 (15:37 +0300)
committerUnikraft <monkey@unikraft.io>
Sat, 9 Sep 2023 12:15:03 +0000 (12:15 +0000)
commit11cc35d3a750e5901a1f053621d787b2913f9a73
tree55fcc7f250f0a4c2b93856f13d5787fed664d419
parent56e4d970ddd3647ddc6691a2c0dc9d5bca6c02d7
click.cc: Probe the network devices at init time

In the early init step, probe the network device if it was not already
probed or configured.

Whithout this step, the `uk_netdev_configure` call will fail, since it
expects the device state to be `UK_NETDEV_UNCONFIGURED`, not
`UK_NETDEV_UNPROBED`.

Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #7
click.cc