From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 4D3BA235 for ; Tue, 31 Jul 2018 16:53:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jul 2018 07:53:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,427,1526367600"; d="scan'208";a="58580941" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by fmsmga007.fm.intel.com with ESMTP; 31 Jul 2018 07:53:18 -0700 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.185]) by IRSMSX104.ger.corp.intel.com ([169.254.5.225]) with mapi id 14.03.0319.002; Tue, 31 Jul 2018 15:53:17 +0100 From: "Zhang, Roy Fan" To: "Dumitrescu, Cristian" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] examples/ip_pipeline: fix RSS Thread-Index: AQHUKN3Bgbbj0fDztUK/szfbY4n6eqSpalpw Date: Tue, 31 Jul 2018 14:53:17 +0000 Message-ID: <9F7182E3F746AB4EA17801C148F3C60433441CF2@IRSMSX101.ger.corp.intel.com> References: <1533048565-216267-1-git-send-email-cristian.dumitrescu@intel.com> In-Reply-To: <1533048565-216267-1-git-send-email-cristian.dumitrescu@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYmQ4ZmQxNDUtNzUwMi00MDhmLWFmNDYtNzM4YTQ1MjU5MGExIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicm1EcjhPUm1meEVHNTM0bnk4TWNCZWhjeVloN1BhblwvMGFmQTVMcW5HeW5aMkVJWnpUYnlzcERWQW10cFlzMG4ifQ== x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/ip_pipeline: fix RSS 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: Tue, 31 Jul 2018 14:53:20 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Cristian Dumitrescu > Sent: Tuesday, July 31, 2018 3:49 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] examples/ip_pipeline: fix RSS >=20 > Fix for RSS issue triggered by latest changes in ethdev layer. >=20 > Signed-off-by: Cristian Dumitrescu > --- > examples/ip_pipeline/link.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) >=20 > diff --git a/examples/ip_pipeline/link.c b/examples/ip_pipeline/link.c in= dex > 2ccfea4..392a890 100644 > --- a/examples/ip_pipeline/link.c > +++ b/examples/ip_pipeline/link.c > @@ -158,12 +158,9 @@ link_create(const char *name, struct link_params > *params) > memcpy(&port_conf, &port_conf_default, sizeof(port_conf)); > if (rss) { > port_conf.rxmode.mq_mode =3D ETH_MQ_RX_RSS; > - if (port_info.flow_type_rss_offloads & ETH_RSS_IPV4) > - port_conf.rx_adv_conf.rss_conf.rss_hf |=3D > - ETH_RSS_IPV4; > - if (port_info.flow_type_rss_offloads & ETH_RSS_IPV6) > - port_conf.rx_adv_conf.rss_conf.rss_hf |=3D > - ETH_RSS_IPV6; > + port_conf.rx_adv_conf.rss_conf.rss_hf =3D > + (ETH_RSS_IP | ETH_RSS_TCP | ETH_RSS_UDP) & > + port_info.flow_type_rss_offloads; > } >=20 > cpu_id =3D (uint32_t) rte_eth_dev_socket_id(port_id); > -- > 2.7.4 Acked-by: Fan Zhang