ixgbe: fix disabling loopback mode
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 17 Feb 2014 18:55:26 +0000 (19:55 +0100)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 09:22:33 +0000 (10:22 +0100)
Following introduction of loopback mode, this mode should be explicitely
disabled in ixgbe_dev_rx_init() if not enabled.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
lib/librte_pmd_ixgbe/ixgbe_rxtx.c

index da9e661..8ca2c66 100644 (file)
@@ -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);