From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by dpdk.org (Postfix) with ESMTP id 97EC868AE for ; Tue, 9 Dec 2014 17:37:36 +0100 (CET) Received: by mail-pd0-f181.google.com with SMTP id v10so846468pde.40 for ; Tue, 09 Dec 2014 08:37:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-transfer-encoding; bh=MIPNmZN/kwnoSTSY7MTbAHH0mCStaSUPpIp71AJjmWc=; b=Gu5/hEgzW/KPf6B7Fcj66e1wl8c7QkKQnfy+Siy1M5eBNs3Y50G6LBqhb4WqSiQayB N+dyUPRM8Ppfer/UAyns6HsNjoO+6TS8V2lgeZDaZyal32Cw7Pr9681jvALJczqZyPfC zRebvy4q1dJwpcfcBFbMiW4VEryAoY/Tbnehen0olx7VIvwp75bUykcDQZm3JZe1UQTX M/K398mGJRLjQDIn4ZThrQtKeCczb+8N+BIRIkbzH5QHZ9Je+mgVJtFLtoIQB8q+bW7n Gl+NPXHB+vIE/VWHOVSvGaODkB+fVwYUeJBVxFTZWLgbSBy6VXSoZbGyzPHAwk339GUx 3A7A== X-Gm-Message-State: ALoCoQn2JAiULShayQ+DsKjEZCSapc/PHXYyajMFeVThs+3wYuHGsTE6CTgiv0nxwMYTW/mw2+Wm X-Received: by 10.68.191.33 with SMTP id gv1mr6960118pbc.33.1418143055851; Tue, 09 Dec 2014 08:37:35 -0800 (PST) Received: from urahara (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id ny9sm1950521pab.25.2014.12.09.08.37.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Dec 2014 08:37:35 -0800 (PST) Date: Tue, 9 Dec 2014 08:37:24 -0800 From: Stephen Hemminger To: dev@dpdk.org Message-ID: <20141209083724.1a6872ac@urahara> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] [PATCH] ixgbe: support X540 VF 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: Tue, 09 Dec 2014 16:37:37 -0000 Add missing setup for X540 MAC type when setting up VF. Additional check exists in Linux driver but not in DPDK. Signed-off-yb: Bill Hong Signed-off-by: Stephen Hemminger --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c 2014-12-08 09:26:18.150170081 -0800 +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c 2014-12-08 09:26:18.150170081 -0800 @@ -1911,7 +1911,8 @@ ixgbe_dev_tx_queue_setup(struct rte_eth_ /* * 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)); @@ -2198,7 +2199,8 @@ ixgbe_dev_rx_queue_setup(struct rte_eth_ /* * 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 =