net/iavf: fix link speed
authorAlvin Zhang <alvinx.zhang@intel.com>
Thu, 30 Apr 2020 03:21:11 +0000 (11:21 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commit5330b042977c61b1600700013c6ef2509d496b16
treeb097222c14a719716b5c087089c73f03a2bfa13c
parent6ebabb76a57c02681a01e07bf8016e4308c14c7c
net/iavf: fix link speed

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

Fixes: 48de41ca11f0 ("net/avf: enable link status update")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/iavf/iavf_vchnl.c