i40e/base: workaround for PHY type with firmware < 4.4
authorHelin Zhang <helin.zhang@intel.com>
Thu, 30 Apr 2015 15:03:32 +0000 (23:03 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 17 May 2015 21:18:23 +0000 (23:18 +0200)
commit3a811d2efce3300f5bdc60ed6bfc7f9954443b0a
tree8439b55add5bcb8856245545cc60dd49df242a15
parent2450cc2dc87192e7d4611909cc0b4cb0859c0894
i40e/base: workaround for PHY type with firmware < 4.4

The FW for SW3E is incorrectly reporting a breakout cable as PHY
type 0x3 when it should be 0x16 (I40E_PHY_TYPE_10GBASE_SFPP_CU).
As this is supposed to be fixed in the next FW version
(FW versions >= 4.4), if we get this value back from FW and the
version is < 4.4, reassign it to I40E_PHY_TYPE_10GBASE_SFPP_CU.

Test report: http://www.dpdk.org/ml/archives/dev/2015-May/017384.html

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jijiang Liu <jijiang.liu@intel.com>
Tested-by: Min Cao <min.cao@intel.com>
lib/librte_pmd_i40e/i40e/i40e_common.c