net/i40e: fix link status
authorGuinan Sun <guinanx.sun@intel.com>
Fri, 4 Sep 2020 06:21:54 +0000 (06:21 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:07 +0000 (18:55 +0200)
commit3db12449e119587648adf0b189c0e45502b71285
treee9e5973a251329ab98bf8c56486d8c5c350c1b95
parentdec5a13b97f9c022cd31932cb61da32a6d423c63
net/i40e: fix link status

If the PF driver supports the new speed reporting capabilities
then use link_event_adv instead of link_event to get the speed.

Fixes: 2a73125b7041 ("i40evf: fix link info update")
Cc: stable@dpdk.org
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
Tested-by: Jiaqi Min <jiaqix.min@intel.com>
drivers/net/i40e/base/virtchnl.h
drivers/net/i40e/i40e_ethdev_vf.c