From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EE1CBA0547 for ; Fri, 28 May 2021 03:23:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87FB040143; Fri, 28 May 2021 03:23:39 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 8A30E40040 for ; Fri, 28 May 2021 03:23:37 +0200 (CEST) IronPort-SDR: mgLcd93Jpm7KGEVNJxMahGIS0cuSfEnvqhLfcW+poXAEXn5hNXzSijNLUmDm7auVHeNF6mjiDS 460lO9E57tZw== X-IronPort-AV: E=McAfee;i="6200,9189,9997"; a="202875722" X-IronPort-AV: E=Sophos;i="5.83,228,1616482800"; d="scan'208,217";a="202875722" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2021 18:23:36 -0700 IronPort-SDR: tRZXualH51qgsRrXL668O0/lNN6Gc/BYGUTOxEpdFPB33qq6kDtiQwwajoRMojWdm60IyT4Ti1 iXoMNnLR6sVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,228,1616482800"; d="scan'208,217";a="631626006" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga006.fm.intel.com with ESMTP; 27 May 2021 18:23:35 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 27 May 2021 18:23:35 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Thu, 27 May 2021 18:23:35 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.174) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Thu, 27 May 2021 18:23:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X/UUp6EEwtDT/c3Q30sf2khheVFrSIJgZiz5i22BKCDkH6Yhit1k52UAxU0E1erKrOT55JeZKyZrwlCAF/SiJJKQdJi8J8uk2OoJgDxuIj4w9L3MpLXbvPPmY7o2oOLrLBhYrcpuNRfqz39is9d66+MfpzQ1hMnaNcKSUMCcgCaWliq7OuDSoBTQZImKFwFlZygVPwOcbngIG8U/cuJkehAB+fnbpmlzWzOKYXPG4IZm9QITmpurHC9Crr6kh59XZoU+o/8WSMh0SrPbbV/zbg22AXu4HjO8NaLoUZPAKMBDa60A5GmxSYnwXwtC2myBE1UAI043JjRC3n1e/GoK5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tYEKQnr1lDLdp+O9R0SA+91E+DRqoCAnEaMHwsVY0d4=; b=i61pCgiHbfeul769VBYwNusj0f1UWevUOFOYLb90gKTX3P2jH3beHcVEDd6yrhbT5fl4RWWa2Y8hKBEobMMasMplFWE027s8OjT8pwrb18g+DngBwQJYqNWdC8nSHEtFQJDIQvZDVCDt6r55ASN9DoALn/EDIhYGOGTzjJ1VUzwZm+jn0xtl81VLUZfq/fGWimnwzBOpdMPgkdsJuJeGRfX27ZBiQUvbUPU0Eadx17C/8ST+SIAU+0iN9fzvZsbEtuaO7Ds2Bfguyp5oLMW7C8aoz3QVvja8fW100S+3k3tjpLXpgpSIMlAVMxs2JfBEKWt0rzR4UOFo4m53tLre0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tYEKQnr1lDLdp+O9R0SA+91E+DRqoCAnEaMHwsVY0d4=; b=P/jvFYO8LcFtZPBA0wOi1Qm1Z2kwEIUiwY+BxSxLwfD0/i1343Qi0OtQJP5gPmczCwOsEfSOpzKwI6zv0erilmlUJdAO+jb53cSO2+MQC0p+2TI2nYe3RCoTwX5DgW4vP8LjjRgf89Nneg//TBHHh37ihmSwgYo+1Mc1hDdXg28= Received: from MN2PR11MB3807.namprd11.prod.outlook.com (2603:10b6:208:f0::24) by MN2PR11MB3613.namprd11.prod.outlook.com (2603:10b6:208:ee::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20; Fri, 28 May 2021 01:23:34 +0000 Received: from MN2PR11MB3807.namprd11.prod.outlook.com ([fe80::55a3:215a:f054:6b52]) by MN2PR11MB3807.namprd11.prod.outlook.com ([fe80::55a3:215a:f054:6b52%5]) with mapi id 15.20.4150.027; Fri, 28 May 2021 01:23:34 +0000 From: "Xing, Beilei" To: Vishal Mohan , "users@dpdk.org" , "Zhang, AlvinX" Thread-Topic: DPDK 20.11 - i40e 2 tuple RSS configuration Thread-Index: AddSy0gxBxzhOB0RTnKC+Q+4cbVpkQAACXFwAAEFKeAAAnFFYAAhnfiQ Date: Fri, 28 May 2021 01:23:34 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: tatacommunications.com; dkim=none (message not signed) header.d=none; tatacommunications.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.54] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c255329c-3e27-426f-b486-08d921773612 x-ms-traffictypediagnostic: MN2PR11MB3613: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5pPcLkVwrE4vTCWIaOBkN5HOutAJriJ6Jnjukv7BE58vUrwuLSUXYtuaOp1lLv+Ks9dp2RgNX+sOC/aTiJb4S6hngy9khQQrmH4xNGiZkDKmyPAAJHov4X6ufwhCqS/prE1rtavHCd3ziwNFe1zjOrTHc0OCMQz8vGdjhLGhi4ZXmCwmyHc4eE+IDMQ2nKwXu+aswUWhwddiYrXoYF1TDrIgX7Htpw24K0+GKoKIHetlmGdmsS8VpWuYM7Fg7//Oe042nxrqMiWdqSXLVV7Gx0FVmXiUFd7pMnj5z8nq4iEVDsj84OqMRgf/SPRSiAtHXyJ16FhNn1OGVEt+tYHfB+w4j2s7T5k/CKLVSc8n2VbTT+iulhONsCWScyCrMekEGtJ8SUXwtPK02pJ1/9G2065REVZwVP8ylTRm04Z23d0m+u/I5qEIehSHlwhU+IfSWi183QH271433V88D5qFAq8Tj0lKKA9ILyuuO2vob/qpd6D2Dymy41mqgjYh/G1dYGwkOqFaYxMLm4nqvtn0Pp/bowYwEepqz2fWuDSym/os4c0PGZbSnHGxa/jhBiYEpkLb4vvoqWtKScmIAuc7nXgsy0W9y7mXlkamD6t6zUM= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB3807.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(376002)(136003)(366004)(346002)(396003)(122000001)(55016002)(9686003)(478600001)(38100700002)(7696005)(6506007)(53546011)(71200400001)(26005)(66946007)(66446008)(66556008)(76116006)(66476007)(186003)(64756008)(83380400001)(5660300002)(110136005)(316002)(8676002)(52536014)(8936002)(86362001)(2906002)(6636002)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?erxoKTDlwVpz5O6CQOMLpTDCzr6Fyqw/Joi78UB52Ka+2y+x5HbBA/NMQxV4?= =?us-ascii?Q?5JMyHFoG2thD+Y4RgSXeJM7nE1WRNxrdktAUBFeVPkw1I29iWtwzpNZnGc/I?= =?us-ascii?Q?JXSAtXvnJK/mAEZn7smULDV7WRoSb547K8rbkFmTTyeWMiFEy+OEiP2Rxa0N?= =?us-ascii?Q?QKKzwH0DeZv8NSZvJGnwTP+muTjixIgF/gCS+skK89mnpLBTs0m+DkRpYkMU?= =?us-ascii?Q?hf59V4bi/ttw5KHKC2zVeKQUmKagilxdbkNKGaKyZtVCiPxJgqefiHlWNJWQ?= =?us-ascii?Q?QW7i4pkU4YhnxwOxkVscs8zKLn2Gq9BqA91nhqnagD+1PLMNEEdYMQexLZsd?= =?us-ascii?Q?IVVdMqZQWq1Y0aGGJGwL2tyKqvStBcyQhI0Hmj/TuhsAYG2ctI5QVfmpy67K?= =?us-ascii?Q?NuKcMSnDciZ2GXl0o9PO6lq3nAHrjwkYkULCqaplvRB5h+J0iG0eUyDF9Y7v?= =?us-ascii?Q?ZHTkeAJcQL3a60viucy+oeiB1I+KMVwk88p+FsbohGtr5y4cTbTbhNBUaDOU?= =?us-ascii?Q?2JenJ8HHJd19Ug3r57i+OWFyMQIuKID4IdTfsPsWCDbrJ247VG9O6ghjm4tC?= =?us-ascii?Q?6wm9cXiYddhmjMA1pEq4KxL97lSKnO/LBKH48FeQujmot5u/tw7qqIr8K+if?= =?us-ascii?Q?ZACYCa9DHcTzHthcPGGUiPt2DSYPvY9fTgnmy7RsSYAAcfKkpuOLTeacekSY?= =?us-ascii?Q?xZOKe+EJQbhGX71snmLRBCq0OE1EEAuoS2lu8y97dUPOr5B/Ma9Pf9y/vv3L?= =?us-ascii?Q?FaE3kZ46IdWf91V5djowqgBGdHzDAKKfZ6o+GtWDCdU9d3UGVvPXa/FGvpF6?= =?us-ascii?Q?fs09GqdczRgtF3GHo32bZWEke9g6raW9zC+8AS+QqpE4PVRJa156dTe4hUVq?= =?us-ascii?Q?fNpo6Cob79QbFFytLU28nroyAkjDVaMD3VVuLAtKIdN8gz0gnlBF7sOx9uIc?= =?us-ascii?Q?lqQ8hc3ugvWvxC7qFKkP/Y+AkwxX4ueEjhbaA0c/sG7M+F3xga/byprGyI5I?= =?us-ascii?Q?VkTHpfa+KFO2iCOSshcRDcoHIu0qrPQRd41Y6HHMUbELeAiyR1Szp+IFsDfK?= =?us-ascii?Q?9D/Dlm/QEsvCRiW/PWEMnwJg6Ituzkh+0BTcniN+IBmTUTLzhWgl2fRyUki+?= =?us-ascii?Q?OEqNgyC8FKaJ5pCgPI+S3c0hsIL66zWU/kcto+85orjKDc8Id8ZejOzZJA1l?= =?us-ascii?Q?kMCe/HKpugEKw4x5WXWWBGK1kUSafIQADFRgkQylWuVlTQKdN4M/AD+qe1iR?= =?us-ascii?Q?R9nAejHbbq7Aa90nu4oapU+mnqRMxVb4OFArzKQSfYyd3cyqC1JlTXqDuFO6?= =?us-ascii?Q?no0=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB3807.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c255329c-3e27-426f-b486-08d921773612 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 May 2021 01:23:34.1036 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1tnFdKzrX2hN5GIoY6+2hPnh99pan4oMuNoBPW614hZ+vaS2Rvpt6Ce3ynCUXPRFIMEWYaYH+fJAXo5+r8x/Cw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3613 X-OriginatorOrg: intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-users] DPDK 20.11 - i40e 2 tuple RSS configuration X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" + Alvin. Could you please help on it? Thanks. BR, Beilei From: Vishal Mohan Sent: Thursday, May 27, 2021 5:45 PM To: Xing, Beilei ; users@dpdk.org Subject: RE: DPDK 20.11 - i40e 2 tuple RSS configuration Hi Beilei, Thanks for the pointer. By using l3-src-only, I was able to run testpmd on = 1 tuple mode. But no success when configured manually. Please find the snip= pet below of my rte_eth_conf and flow conf for your kind perusal: static struct rte_eth_conf port_conf_default =3D { .rxmode =3D { .mq_mode =3D ETH_MQ_RX_RSS, }, .rx_adv_conf =3D { .rss_conf =3D { .rss_key =3D NULL, .rss_key_len =3D 40, .rss_hf =3D ETH_RSS_NONFRAG_IPV4_UDP, }, } }; struct rte_flow_item pattern[] =3D { [0] =3D { .type =3D RTE_FLOW_ITEM_TYPE_ETH, }, [1] =3D { .type =3D RTE_FLOW_ITEM_TYPE_IPV4, }, [2] =3D { .type =3D RTE_FLOW_ITEM_TYPE_UDP, }, [3] =3D { .type =3D RTE_FLOW_ITEM_TYPE_END, } }; struct rte_flow_action_rss action_rss =3D { .types =3D ETH_RSS_NONFRAG_IPV4_UDP | ETH_RSS_L3_SRC_ONLY, .queue_num =3D 10, .queue =3D queue_ids, }; struct rte_flow_action action[] =3D { [0] =3D { .type =3D RTE_FLOW_ACTION_TYPE_RSS, .conf =3D &action_rss }, [1] =3D { .type =3D RTE_FLOW_ACTION_TYPE_END, } }; struct rte_flow_attr attr =3D { .egress =3D 0, .ingress =3D 1 }; struct rte_flow_error err; retval =3D rte_flow_validate(portid, &attr, pattern, action, &err); printf("retval %d %d\n",retval,-ENOTSUP); if(!retval){ struct rte_flow *flow =3D rte_flow_create(portid, &attr, pattern, a= ction, &err); } The above given flow validates and adds successfully but no effect on RSS h= ashing. Also I did not set .spec and .mask for patterns assuming ETH_RSS_L3= _SRC_ONLY will take care of the fields looked into. Can you please point out if im missing anything here ? Thanks & Regards, Vishal Mohan -----Original Message----- From: Xing, Beilei > Sent: 27 May 2021 01:42 PM To: Vishal Mohan >; users@dpdk.org Subject: RE: DPDK 20.11 - i40e 2 tuple RSS configuration CAUTION: This email originated from outside of the organization. Do not cli= ck links or open attachments unless you recognize the sender and know the c= ontent is safe. Hi, I remember there's no legacy API rte_eth_dev_filter_ctrl() supported in 20= .11. Please refer to RSS Flow part in i40e.rst: Enable hash and set input set for ipv4-tcp. testpmd> flow create 0 ingress pattern eth / ipv4 / tcp / end \ actions rss types ipv4-tcp l3-src-only end queues end / end BR, Beilei > -----Original Message----- > From: users On Behalf Of Vishal Mohan > Sent: Thursday, May 27, 2021 3:40 PM > To: mailto:users@dpdk.org > Subject: [dpdk-users] DPDK 20.11 - i40e 2 tuple RSS configuration > > I'm trying to implement RSS with 2 tuple (src ip, dst ip) hashing with > X710 - quad port in DPDK 20.11 with no success. I was able to > implement the same in DPDK 17.11 with a combination of RSS flags > given below and > rte_eth_dev_filter_ctrl(): > > .rss_hf =3D (ETH_RSS_IPV4 | ETH_RSS_NONFRAG_IPV4_OTHER | > ETH_RSS_FRAG_IPV4 | ETH_RSS_NONFRAG_IPV4_UDP | > ETH_RSS_NONFRAG_IPV4_TCP) > > and selecting input fields as dst and src ip for every rss_hf flag > using rte_eth_dev_filter_ctrl(). > > In DPDK 20.11, I believe there is no explicit usage of using > rte_eth_dev_filter_ctrl() instead we can configure the hashing with > the generic rte_flow api. I did configure a flow validate and create > the same, but the hashing is not working as expected. Without flags > ETH_RSS_NONFRAG_IPV4_UDP | ETH_RSS_NONFRAG_IPV4_TCP no hashing takes > place and with those flags included in .rss_hf, 5 tuple hashing takes > place. > > When using rte_flow api, any flags given in rte_flow_action_rss.types > has no effect on the final RSS hash result. Also the RSS hashing in > the given testpmd isn't working when it is configured in "ip" (2 tuple) m= ode. > > Any inputs for configuring RSS hashing for 2 tuple is much appreciated. > > > Thanks & Regards, > Vishal Mohan