From patchwork Mon Dec 8 19:36:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dev-bounces@dpdk.org X-Patchwork-Id: 1821 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 8E6C3803E; Mon, 8 Dec 2014 20:36:28 +0100 (CET) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by dpdk.org (Postfix) with ESMTP id 5D740CE7 for ; Mon, 8 Dec 2014 18:51:28 +0100 (CET) Received: by mail-pa0-f49.google.com with SMTP id eu11so5625699pac.36 for ; Mon, 08 Dec 2014 09:51:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:user-agent:date:from:to:cc:subject :references:mime-version:content-type:content-disposition; bh=+bc2dOmsTNO8Ok1mV130AJ7LDvFhjb4eSZ2FsHUWzY8=; b=AjUonHwE4wFR1h0SG7Nf4XsSRbkYrFZkI0xOqTRGcsNUqRpBzhSwA9q+T9qLokURrF DhCAzC0tCyn1K+ZyQRr79rH4G274XcDXPBvqJ9vjD6YbFIKZ7HCLpV94xkIz1eXmN8sE 88FXyD+bZraKeeYwfdFCz7fl7KFXdqd5qaQtX59zEkGrkzf53pnxs/iCkMQYskzxRGPf CCYdWcISCh5TLw+RFd3u13FhVNQPxvaA2LBns68Ic1Ommq1oG3ynGbY528l9TvAm2jno COCUL1yXN0sfwxMQl03UECH1ZvrLsOyIxYgHU03XfgWW6pdEgZxHlUap9xSfssZORBcx rlUA== X-Gm-Message-State: ALoCoQk3L6NccWrDlx18W0piy0yd6XhZzmkbyLiEa7AnTvWvByPoeblr3vD4dJI2GdBWqx0DoT8a X-Received: by 10.66.163.129 with SMTP id yi1mr54767280pab.149.1418061087706; Mon, 08 Dec 2014 09:51:27 -0800 (PST) Received: from localhost (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id my2sm12877612pdb.86.2014.12.08.09.51.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Dec 2014 09:51:26 -0800 (PST) X-Mailman-Approved-At: Mon, 08 Dec 2014 20:36:25 +0100 Subject: [dpdk-dev] (no subject) 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" Message-Id: <20141208193628.8E6C3803E@dpdk.org> Date: Mon, 8 Dec 2014 20:36:28 +0100 (CET) From: dev-bounces@dpdk.org From stephen@networkplumber.org Mon Dec 8 09:46:51 2014 Message-Id: <20141208174651.130426937@networkplumber.org> User-Agent: quilt/0.63-1 Date: Mon, 08 Dec 2014 09:45:56 -0800 From: Stephen Hemminger To: Thomas Monjalon Cc: dev@dpdk.org, Stephen Hemminger Subject: [PATCH 2/6] ixgbe: support X540 VF References: <20141208174554.889069531@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=ixgbe-x540-vf.patch 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 =