From patchwork Mon Mar 2 12:25:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ouyang Changchun X-Patchwork-Id: 3810 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 37CF95A69; Mon, 2 Mar 2015 13:26:18 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 1A8965A24 for ; Mon, 2 Mar 2015 13:26:15 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 02 Mar 2015 04:24:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,675,1418112000"; d="scan'208";a="673832033" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 02 Mar 2015 04:25:55 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t22CPqXh010266; Mon, 2 Mar 2015 20:25:52 +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 t22CPmxx025181; Mon, 2 Mar 2015 20:25:50 +0800 Received: (from couyang@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t22CPlIR025177; Mon, 2 Mar 2015 20:25:47 +0800 From: Ouyang Changchun To: dev@dpdk.org Date: Mon, 2 Mar 2015 20:25:45 +0800 Message-Id: <1425299145-25147-1-git-send-email-changchun.ouyang@intel.com> X-Mailer: git-send-email 1.7.12.2 In-Reply-To: <1425278167-12619-1-git-send-email-changchun.ouyang@intel.com> References: <1425278167-12619-1-git-send-email-changchun.ouyang@intel.com> Subject: [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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Acked-by:Cunming Liang 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 =