net/i40e/base: fix PHY config param when enabling EEE
authorGuinan Sun <guinanx.sun@intel.com>
Sat, 12 Sep 2020 03:00:38 +0000 (03:00 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:10 +0000 (18:55 +0200)
commit4d58e3d008092b8f094d0876352e89fca243d3cc
tree399d6b6f89d69d480994a5de5f3b7430be692ef7
parent4b3e0ab70109088310065039f68b0ab65beea7c1
net/i40e/base: fix PHY config param when enabling EEE

The i40e_enable_eee function did not copy phy_type_ext field
from current PHY configuration retrieved with Get PHY Abilities AQ.
It caused a misconfiguration of the PHY on devices supporting 2.5
and 5G speeds and prevented establishing link when only those
speeds were selected for advertisement.

Fixes: c61bcb0fe1b0 ("net/i40e/base: support Energy Efficient Ethernet")
Cc: stable@dpdk.org
Signed-off-by: Galazka Krzysztof <krzysztof.galazka@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/base/i40e_common.c