From: Bruce Richardson Date: Mon, 17 Feb 2014 18:55:26 +0000 (+0100) Subject: ixgbe: fix disabling loopback mode X-Git-Tag: spdx-start~11014 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f474e64f4d736b20fd9d75715dcd20cfdad480ef;p=dpdk.git ixgbe: fix disabling loopback mode Following introduction of loopback mode, this mode should be explicitely disabled in ixgbe_dev_rx_init() if not enabled. Signed-off-by: Bruce Richardson Signed-off-by: David Marchand --- diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c index da9e661869..8ca2c66889 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -3391,6 +3391,8 @@ ixgbe_dev_rx_init(struct rte_eth_dev *dev) if (hw->mac.type == ixgbe_mac_82599EB && dev->data->dev_conf.lpbk_mode == IXGBE_LPBK_82599_TX_RX) hlreg0 |= IXGBE_HLREG0_LPBK; + else + hlreg0 &= ~IXGBE_HLREG0_LPBK; IXGBE_WRITE_REG(hw, IXGBE_HLREG0, hlreg0);