net/netvsc: initialize link state
If application is using link state interrupt, the correct link state
needs to be filled in when device is started. This is similar to
how virtio updates link information.
Fixes: 4e9c73e96e
("net/netvsc: add Hyper-V network device")
Cc: stable@dpdk.org
Reported-by: Mohammed Gamal <mgamal@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Tested-by: Mohammed Gamal <mgamal@redhat.com>
This commit is contained in:
parent
2ab5c84605
commit
047ad3787a
@ -823,6 +823,10 @@ hn_dev_start(struct rte_eth_dev *dev)
|
||||
if (error)
|
||||
hn_rndis_set_rxfilter(hv, 0);
|
||||
|
||||
/* Initialize Link state */
|
||||
if (error == 0)
|
||||
hn_dev_link_update(dev, 0);
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user