From: Ouyang Changchun Date: Thu, 12 Feb 2015 12:00:36 +0000 (+0800) Subject: ixgbe/base: fix X550 link speed X-Git-Tag: spdx-start~9289 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dd9f7f281a4be6cc0fcfe69649b4d191f727c8d7;p=dpdk.git ixgbe/base: fix X550 link speed Remove unnecessary '|' for the link speed. Signed-off-by: Changchun Ouyang Acked-by: Jijiang Liu --- diff --git a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c index 9750777701..bd31187219 100644 --- a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c +++ b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c @@ -885,13 +885,13 @@ s32 ixgbe_get_link_capabilities_X550em(struct ixgbe_hw *hw, /* Link capabilities are based on SFP */ if (hw->phy.multispeed_fiber) - *speed |= IXGBE_LINK_SPEED_10GB_FULL | - IXGBE_LINK_SPEED_1GB_FULL; + *speed = IXGBE_LINK_SPEED_10GB_FULL | + IXGBE_LINK_SPEED_1GB_FULL; else *speed = IXGBE_LINK_SPEED_10GB_FULL; } else { - *speed |= IXGBE_LINK_SPEED_10GB_FULL | - IXGBE_LINK_SPEED_1GB_FULL; + *speed = IXGBE_LINK_SPEED_10GB_FULL | + IXGBE_LINK_SPEED_1GB_FULL; *autoneg = true; }