From a775949fbb09a142b630a97b6fbe5f9055f27847 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 9 Dec 2014 08:37:24 -0800 Subject: [PATCH] ixgbe: support X540 VF Add missing setup for X540 MAC type when setting up VF. Additional check exists in Linux driver but not in DPDK. Signed-off-by: Bill Hong Signed-off-by: Stephen Hemminger --- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c index ad42ceab66..e10d6a214a 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -1945,7 +1945,8 @@ ixgbe_dev_tx_queue_setup(struct rte_eth_dev *dev, /* * Modification to set VFTDT for virtual function if vf is detected */ - if (hw->mac.type == ixgbe_mac_82599_vf) + if (hw->mac.type == ixgbe_mac_82599_vf || + hw->mac.type == ixgbe_mac_X540_vf) txq->tdt_reg_addr = IXGBE_PCI_REG_ADDR(hw, IXGBE_VFTDT(queue_idx)); else txq->tdt_reg_addr = IXGBE_PCI_REG_ADDR(hw, IXGBE_TDT(txq->reg_idx)); @@ -2209,7 +2210,8 @@ ixgbe_dev_rx_queue_setup(struct rte_eth_dev *dev, /* * Modified to setup VFRDT for Virtual Function */ - if (hw->mac.type == ixgbe_mac_82599_vf) { + if (hw->mac.type == ixgbe_mac_82599_vf || + hw->mac.type == ixgbe_mac_X540_vf) { rxq->rdt_reg_addr = IXGBE_PCI_REG_ADDR(hw, IXGBE_VFRDT(queue_idx)); rxq->rdh_reg_addr = -- 2.20.1