From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B1CC7595A for ; Mon, 2 Mar 2015 07:36:16 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 01 Mar 2015 22:36:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,674,1418112000"; d="scan'208";a="692539878" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 01 Mar 2015 22:36:14 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t226aBCB031657; Mon, 2 Mar 2015 14:36:11 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t226a9Sr012655; Mon, 2 Mar 2015 14:36:11 +0800 Received: (from couyang@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t226a9vx012651; Mon, 2 Mar 2015 14:36:09 +0800 From: Ouyang Changchun To: dev@dpdk.org Date: Mon, 2 Mar 2015 14:36:07 +0800 Message-Id: <1425278167-12619-1-git-send-email-changchun.ouyang@intel.com> X-Mailer: git-send-email 1.7.12.2 Subject: [dpdk-dev] [PATCH] ixgbe: Fix vf tx issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2015 06:36:17 -0000 X550 should use the correct macro to set the VFTDT and VFRDT register address. This patch fixes the VF TX issue for Sageville. Signed-off-by: Changchun Ouyang --- 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 3059375..ae1ea64 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -1935,7 +1935,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 || - hw->mac.type == ixgbe_mac_X540_vf) + hw->mac.type == ixgbe_mac_X540_vf || + hw->mac.type == ixgbe_mac_X550_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)); @@ -2200,7 +2201,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 || - hw->mac.type == ixgbe_mac_X540_vf) { + hw->mac.type == ixgbe_mac_X540_vf || + hw->mac.type == ixgbe_mac_X550_vf) { rxq->rdt_reg_addr = IXGBE_PCI_REG_ADDR(hw, IXGBE_VFRDT(queue_idx)); rxq->rdh_reg_addr = -- 1.8.4.2