net/i40e: fix link speed for X722
authorBeilei Xing <beilei.xing@intel.com>
Tue, 30 Apr 2019 06:56:37 +0000 (14:56 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commitf2310dddf41c19c9c1d77dbd857d4fab1fb368b7
treea1a57ddb4813b55f8766fa9252c76444212a8d7b
parent6e48cf0369c1906109918b3b7975b23648cf5ad4
net/i40e: fix link speed for X722

If disable LSC when launching testpmd with X722, shown
link speed is 20G but not 10G. It's caused by wrongly
parsed link speed.
Correct it according to X722 datasheet.

Fixes: eef2daf2e199 ("net/i40e: fix link update no wait")
Cc: stable@dpdk.org
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c