From: Stephen Hemminger Date: Tue, 9 Dec 2014 16:37:24 +0000 (-0800) Subject: ixgbe: support X540 VF X-Git-Tag: spdx-start~9936 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a775949fbb09a142b630a97b6fbe5f9055f27847;p=dpdk.git 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 --- 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 =