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 72CD3152A for ; Mon, 16 Jan 2017 16:53:04 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 16 Jan 2017 07:53:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,239,1477983600"; d="scan'208";a="31203423" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 16 Jan 2017 07:53:02 -0800 Received: from sivlogin002.ir.intel.com (sivlogin002.ir.intel.com [10.237.217.37]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id v0GFr1j4006443; Mon, 16 Jan 2017 15:53:01 GMT Received: from sivlogin002.ir.intel.com (localhost [127.0.0.1]) by sivlogin002.ir.intel.com with ESMTP id v0GFr1Pe011014; Mon, 16 Jan 2017 15:53:01 GMT Received: (from rsexton@localhost) by sivlogin002.ir.intel.com with œ id v0GFr0VR011010; Mon, 16 Jan 2017 15:53:00 GMT From: rory.sexton@intel.com To: jingjing.wu@intel.com Cc: dev@dpdk.org, Rory Sexton , Nemanja Marjanovic Date: Mon, 16 Jan 2017 15:52:28 +0000 Message-Id: <1484581948-10736-1-git-send-email-rory.sexton@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <9BB6961774997848B5B42BEC655768F810CBEF56@SHSMSX103.ccr.corp.intel.com> References: <9BB6961774997848B5B42BEC655768F810CBEF56@SHSMSX103.ccr.corp.intel.com> Subject: [dpdk-dev] [PATCH v2] net/i40e: set no drop for traffic class X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2017 15:53:05 -0000 From: Rory Sexton The default traffic class in i40e is set to drop versus on ixgbe it isset to no drop. This means when packets build up in the RX SRAM on the NIC, they are dropped, and they do this when the SW descriptor rings fill up. This patch changes this behaviour and our testing shows there are no drops as a result. Signed-off-by: Rory Sexton Signed-off-by: Nemanja Marjanovic --- v2: * Changed to use existing api to set priority register directly. drivers/net/i40e/i40e_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 67778ba..97339b5 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -2985,8 +2985,11 @@ static int i40e_priority_flow_ctrl_set(__rte_unused struct rte_eth_dev *dev, __rte_unused struct rte_eth_pfc_conf *pfc_conf) { + struct i40e_hw *hw = I40E_DEV_PRIVATE_TO_HW(dev->data->dev_private); + PMD_INIT_FUNC_TRACE(); + I40E_WRITE_REG(hw, I40E_PRTDCB_TC2PFC, 0xff); return -ENOSYS; } -- 2.4.3