From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f53.google.com (mail-pg0-f53.google.com [74.125.83.53]) by dpdk.org (Postfix) with ESMTP id E3DC07D7E for ; Mon, 21 Aug 2017 11:34:04 +0200 (CEST) Received: by mail-pg0-f53.google.com with SMTP id n4so33213625pgn.1 for ; Mon, 21 Aug 2017 02:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jNuLWpmaS33r3wX2cDbHNoG9H3J2lRhSAnsGvKWUglY=; b=CfqE2SVkWu1J0ra9M/kelql/+Fj57SN8NMc6LSz0itxwSCx5BRSkj/YxRy0P6EY7KT yqKG471tvNoEOPcjHazjiFBSrJah5W1jQ/9UtnZQHHHWyhv7X98m1oGFA3vxfSvdBiXz Iq+8CiNo5MYUo+IWR6ErS+2AkAYdK6h/4zP1d9tgQSgwO1CwIuClse9z/xZQ2V6BIs3J afXoUsNeQbLdwCIjB1PX2gm2CvSu43jiJ7arqgfM1Np7l+ih02u+eSD/lk2S0W0cHLlg IduCO7CiBIbr1rQ05QjVaXm7I/0l7foWckbhQ+aDVhV8YK5Ap7g44X2xN0yWaixgViN7 FRlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jNuLWpmaS33r3wX2cDbHNoG9H3J2lRhSAnsGvKWUglY=; b=s5GbV8AAGMBw8Iz4YIzM7iE2K6sA/3wNZyIvkJT2cLYgLmzX09PvRKu43gv6WXaqpX +B5VxTH/pNTua/vhCVxJm7BdphDYL6SZXErV0QBnnz4wQmTn7ez1mc0GExZQUOM4gzFQ 0RiCPlgY43BxiHSurwLMdzz72N3mXdSuNwoJuIbkNbr6862bqmnKXy3RGg7xF9Yy7ToL A4/xsoLw1E7rWeeB2o2eXx2Jz4CqkcwdvRRuiukIV+gWgWqUJcrCN0PikqCWTb1W38uc Cm6fur23yH+/DXemgfHmRtJz6i3ZHfFiWSo4ThGoZSkJa9vz0uofOS7Is5Y6kRh6aqFQ wSiw== X-Gm-Message-State: AHYfb5hZr2fIftrNAK337+/JCWWBmSADKP5/Grluu0RHnWoimABxqHVd +qX3lFKrxuIc90wB X-Received: by 10.84.232.198 with SMTP id x6mr3487616plm.360.1503308044275; Mon, 21 Aug 2017 02:34:04 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.34.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:34:03 -0700 (PDT) From: Yuanhan Liu To: Beilei Xing Cc: dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:30:26 +0800 Message-Id: <1503307878-16728-12-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/i40e: fix ethertype filter for new FW' has been queued to stable release 17.05.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 09:34:05 -0000 Hi, FYI, your patch has been queued to stable release 17.05.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 08/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From eb4d1fc3e0f8c8112142dc93d38c911dd6ea5706 Mon Sep 17 00:00:00 2001 From: Beilei Xing Date: Tue, 18 Jul 2017 11:07:07 +0800 Subject: [PATCH] net/i40e: fix ethertype filter for new FW [ upstream commit 77370db964f7d8a58f5914b1b805e6b093107d59 ] Previously SW workaround for GL_SWR_PRI_JOIN_MAP is added for X710 performance. As new FW version 6.0 supports ADQ, value for GL_SWR_PRI_JOIN_MAP should be changed, otherwise ehtertype filter will be impacted. Fixes: 973273c7a4b7 ("i40e: workaround for X710 performance") Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 0c35fa7..6702900 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -9185,8 +9185,9 @@ i40e_pctype_to_flowtype(enum i40e_filter_pctype pctype) */ /* For both X710 and XL710 */ -#define I40E_GL_SWR_PRI_JOIN_MAP_0_VALUE 0x10000200 -#define I40E_GL_SWR_PRI_JOIN_MAP_0 0x26CE00 +#define I40E_GL_SWR_PRI_JOIN_MAP_0_VALUE_1 0x10000200 +#define I40E_GL_SWR_PRI_JOIN_MAP_0_VALUE_2 0x20000200 +#define I40E_GL_SWR_PRI_JOIN_MAP_0 0x26CE00 #define I40E_GL_SWR_PRI_JOIN_MAP_2_VALUE 0x011f0200 #define I40E_GL_SWR_PRI_JOIN_MAP_2 0x26CE08 @@ -9238,8 +9239,12 @@ i40e_configure_registers(struct i40e_hw *hw) reg_table[i].val = I40E_X722_GL_SWR_PRI_JOIN_MAP_0_VALUE; else /* For X710/XL710/XXV710 */ - reg_table[i].val = - I40E_GL_SWR_PRI_JOIN_MAP_0_VALUE; + if (hw->aq.fw_maj_ver < 6) + reg_table[i].val = + I40E_GL_SWR_PRI_JOIN_MAP_0_VALUE_1; + else + reg_table[i].val = + I40E_GL_SWR_PRI_JOIN_MAP_0_VALUE_2; } if (reg_table[i].addr == I40E_GL_SWR_PRI_JOIN_MAP_2) { -- 2.7.4