HomeFreeBSD

ixgbe: fix PHY ID for X550

Description

ixgbe: fix PHY ID for X550

DPDK commit message

net/ixgbe/base: fix PHY ID for X550
Function ixgbe_get_phy_type_from_id() for X550_PHY_ID2 and
X550_PHY_ID3 always return ixgbe_phy_unknown instead of ixgbe_phy_aq
because phy ID's last 4 bits are always masked, and should not be
taken into account when selecting phy type.

This patch adds default PHY ID for X550 devices with mask on last 4
bits (0xFFFFFFF0), and fixes the switch statement to use it.

Fixes: 58ddc80 ("ixgbe/base: add new X550 PHY ids")
Cc: stable@dpdk.org

Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
Reviewed-by: Piotr Skajewski <piotrx.skajewski@intel.com>
Reviewed-by: Alice Michael <alice.michael@intel.com>

Obtained from: DPDK (a9f5a3b)

(cherry picked from commit 9b56dfd27c64fcaf2dfbaa1eb3e2bd2b163fa56c)

Details

Provenance
Radoslaw Tyl <radoslawx.tyl@intel.com>Authored on Thu, Sep 19, 8:42 PM
Kevin Bowling <kbowling@FreeBSD.org>Committed on Thu, Sep 26, 3:28 AM
Parents
rGcced5c203046: ixv: fix x550 VF link speed reported
Branches
Unknown
Tags
Unknown

Event Timeline

Kevin Bowling <kbowling@FreeBSD.org> committed rGa23401dd1afd: ixgbe: fix PHY ID for X550 (authored by Radoslaw Tyl <radoslawx.tyl@intel.com>).Thu, Sep 26, 3:28 AM