Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751646AbcLEEVH (ORCPT ); Sun, 4 Dec 2016 23:21:07 -0500 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:55341 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751261AbcLEEVG (ORCPT ); Sun, 4 Dec 2016 23:21:06 -0500 X-IronPort-AV: E=Sophos;i="5.33,302,1477958400"; d="scan'208";a="663427903" Date: Sun, 4 Dec 2016 20:20:28 -0800 From: Matt Wilson To: Netanel Belgazal CC: , , , , , , , , , Subject: Re: [PATCH V2 net 05/20] net/ena: fix RSS default hash configuration Message-ID: <20161205042028.GF4310@u54ee753d2d1854bda401.ant.amazon.com> References: <1480857578-5065-1-git-send-email-netanel@annapurnalabs.com> <1480857578-5065-6-git-send-email-netanel@annapurnalabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1480857578-5065-6-git-send-email-netanel@annapurnalabs.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1133 Lines: 30 On Sun, Dec 04, 2016 at 03:19:23PM +0200, Netanel Belgazal wrote: > ENA default hash configure IPv4_frag hash twice instead of configure -> configures. You may want to include "erroneously". What is the consequence of this bug? > configure non ip packets. configuring non-IP packets. --msw > Signed-off-by: Netanel Belgazal > --- > drivers/net/ethernet/amazon/ena/ena_com.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/amazon/ena/ena_com.c b/drivers/net/ethernet/amazon/ena/ena_com.c > index 3066d9c..46aad3a 100644 > --- a/drivers/net/ethernet/amazon/ena/ena_com.c > +++ b/drivers/net/ethernet/amazon/ena/ena_com.c > @@ -2184,7 +2184,7 @@ int ena_com_set_default_hash_ctrl(struct ena_com_dev *ena_dev) > hash_ctrl->selected_fields[ENA_ADMIN_RSS_IP4_FRAG].fields = > ENA_ADMIN_RSS_L3_SA | ENA_ADMIN_RSS_L3_DA; > > - hash_ctrl->selected_fields[ENA_ADMIN_RSS_IP4_FRAG].fields = > + hash_ctrl->selected_fields[ENA_ADMIN_RSS_NOT_IP].fields = > ENA_ADMIN_RSS_L2_DA | ENA_ADMIN_RSS_L2_SA; > > for (i = 0; i < ENA_ADMIN_RSS_PROTO_NUM; i++) {