From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 4830F11A2 for ; Fri, 6 Mar 2015 04:46:56 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 05 Mar 2015 19:41:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,351,1422950400"; d="scan'208,217";a="536895779" Received: from shwdeisgchi017.ccr.corp.intel.com (HELO [10.239.66.47]) ([10.239.66.47]) by orsmga003.jf.intel.com with ESMTP; 05 Mar 2015 19:46:33 -0800 Message-ID: <54F92325.5070508@intel.com> Date: Fri, 06 Mar 2015 11:46:45 +0800 From: "Liang, Cunming" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Ouyang Changchun References: <1425278167-12619-1-git-send-email-changchun.ouyang@intel.com> <1425299145-25147-1-git-send-email-changchun.ouyang@intel.com> In-Reply-To: <1425299145-25147-1-git-send-email-changchun.ouyang@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2] 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: Fri, 06 Mar 2015 03:46:57 -0000 Hi, On 3/2/2015 8:25 PM, Ouyang Changchun wrote: > 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 > --- > > Change in v2 > -- Fix one more mac type: ixgbe_mac_X550EM_x_vf. > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c > index 3059375..9217cbe 100644 > --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c > +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c > @@ -1935,7 +1935,9 @@ 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 || > + hw->mac.type == ixgbe_mac_X550EM_x_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 +2202,9 @@ 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 || > + hw->mac.type == ixgbe_mac_X550EM_x_vf) { > rxq->rdt_reg_addr = > IXGBE_PCI_REG_ADDR(hw, IXGBE_VFRDT(queue_idx)); > rxq->rdh_reg_addr = Acked-by:Cunming Liang >