From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 8408414EC for ; Tue, 31 Jul 2018 16:53:55 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jul 2018 07:53:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,427,1526367600"; d="scan'208";a="60931164" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by orsmga007.jf.intel.com with ESMTP; 31 Jul 2018 07:53:53 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.195]) by IRSMSX104.ger.corp.intel.com ([169.254.5.225]) with mapi id 14.03.0319.002; Tue, 31 Jul 2018 15:53:52 +0100 From: "Ananyev, Konstantin" To: "Dumitrescu, Cristian" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] examples/ip_pipeline: fix RSS Thread-Index: AQHUKN3EcwxDc+W2PEeSkribglS7nqSpap/A Date: Tue, 31 Jul 2018 14:53:52 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258DF51FEB4@irsmsx105.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-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTkzNDViZWEtZDQyZi00MmNlLWIxMTgtNzU0MGQ2OTlkOWY1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSkNQXC91cnU3NEloWXZYZ204VjBJUmFHQkd4dFhOS0hJNG9Ob3lnSU5hUnJzRnFMOGJiampSY1QySkg1T1RnQzYifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [163.33.239.180] 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:56 -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 > index 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 *pa= rams) > 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); > -- Acked-by: Konstantin Ananyev > 2.7.4