net/netvsc: initialize link state
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 7 Feb 2020 18:08:16 +0000 (10:08 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:12 +0000 (12:42 +0100)
commit047ad3787a2f5d99277e0d8d756580a1d5ea2891
treea5c43f1062fb6be2f24fa460e7f9701976ad5900
parent2ab5c84605f03e125eaa917cf6c1d5338729098e
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: 4e9c73e96e83 ("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>
drivers/net/netvsc/hn_ethdev.c