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 E8E64A0548 for ; Thu, 27 May 2021 11:45:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6EBC840150; Thu, 27 May 2021 11:45:18 +0200 (CEST) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-eopbgr1310053.outbound.protection.outlook.com [40.107.131.53]) by mails.dpdk.org (Postfix) with ESMTP id D340A40143 for ; Thu, 27 May 2021 11:45:16 +0200 (CEST) Received: from PS2PR02CA0039.apcprd02.prod.outlook.com (2603:1096:300:59::27) by TY2PR04MB2640.apcprd04.prod.outlook.com (2603:1096:404:54::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.21; Thu, 27 May 2021 09:45:14 +0000 Received: from PU1APC01FT052.eop-APC01.prod.protection.outlook.com (2603:1096:300:59:cafe::7c) by PS2PR02CA0039.outlook.office365.com (2603:1096:300:59::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Thu, 27 May 2021 09:45:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 52.62.169.21) smtp.mailfrom=tatacommunications.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=tatacommunications.com; Received-SPF: Pass (protection.outlook.com: domain of tatacommunications.com designates 52.62.169.21 as permitted sender) receiver=protection.outlook.com; client-ip=52.62.169.21; helo=sydapipop-haraka-inline00.vpc-a3a96cc4.ase2.shn; Received: from sydapipop-haraka-inline00.vpc-a3a96cc4.ase2.shn (52.62.169.21) by PU1APC01FT052.mail.protection.outlook.com (10.152.253.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.28 via Frontend Transport; Thu, 27 May 2021 09:45:13 +0000 Received: from APC01-HK2-obe.outbound.protection.outlook.com (mail-hk2apc01lp2053.outbound.protection.outlook.com [104.47.124.53]) by sydapipop-haraka-inline00.vpc-a3a96cc4.ase2.shn (Haraka/2.8.24) with ESMTPS id FDE1D89C-B891-4BBC-BA49-C995CCC9CCA3.1 envelope-from (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Thu, 27 May 2021 09:45:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BcVtOYeRE5wl8hYFoxMJczLFAqLwoZ/cVmDmf5pZ5HDQ24foOKnlz3gmDSvenA6sad7Vz2Crj4+cMbMkGyqLVZ0yk586u92g3weZjiHwf6TWpq2Hf0S6aaaHIj7Yn9I0u2ACr1ie88w6yCXYwS0VyMtfORZxs5ms9GJQy0997NeUNgzG+oX/o6MaNfeZ/pEaC26CyeV3sDmRCrTbt8fkK9QSC4RBDyEUltLxW3HA9MDNis/iRhyBTQiHG8pFdapY7n50zIYHDdsR9Zqr06mJq8cmoP7ZRkysJX1EOcobBRFOjNM0iKXlNj1PQwJ/eN/FvsGxQi97+y+CRlvKqIqpBw== 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=DmsfGZMg7cxL0nsB2EvvBCEMDh+6no8CWWg/X8raJBE=; b=PNvy3lW0YQ9T36NxNpocHd6TLKJBQWauYa1/WS1TPbhoLPixxzFRBW30o2t2Ppf944gGfNPyJiR69CMwOPHrgqlitXwdOLqbo2RXidAc3vqHrMczlJJU43UchvQo2UJvICbaAI/Ew4zynj+IhhUPwU7j9AqjfgZZXHVGFoCgdRlc7O5U1zoLGiGF92usUNEy500Y5LxEUDtp2sEDd5fNxY2gVHJGiIffl7j9jo/lwOlI7jfg/jVyeYpIJo1AiWMN79ZuF0TPt513CjL1QN3m1wG2BvRc/9AyPJLtYoTIHwu5/sPHH6/bmPBxCcsse30bZIsmMYhP4oB+yzgNlOKS7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tatacommunications.com; dmarc=pass action=none header.from=tatacommunications.com; dkim=pass header.d=tatacommunications.com; arc=none Received: from SG2PR04MB3173.apcprd04.prod.outlook.com (2603:1096:4:69::22) by SG2PR04MB2748.apcprd04.prod.outlook.com (2603:1096:4:16::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23; Thu, 27 May 2021 09:45:09 +0000 Received: from SG2PR04MB3173.apcprd04.prod.outlook.com ([fe80::8155:f85d:32fe:3c2a]) by SG2PR04MB3173.apcprd04.prod.outlook.com ([fe80::8155:f85d:32fe:3c2a%7]) with mapi id 15.20.4173.020; Thu, 27 May 2021 09:45:09 +0000 From: Vishal Mohan To: "Xing, Beilei" , "users@dpdk.org" Thread-Topic: DPDK 20.11 - i40e 2 tuple RSS configuration Thread-Index: AddSy0gxBxzhOB0RTnKC+Q+4cbVpkQAACXFwAAEFKeAAAnFFYA== Date: Thu, 27 May 2021 09:45:09 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=tatacommunications.com; x-originating-ip: [171.60.223.155] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: a67804eb-5437-467a-aabc-08d920f420c5 x-ms-traffictypediagnostic: SG2PR04MB2748:|TY2PR04MB2640: X-Microsoft-Antispam-PRVS: x-ms-oob-tlc-oobclassifiers: OLM:10000;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 3WflITgZRbBiuUcsvzQ3J+jJ5GB5JQPo+O+OPhU0kEJgVFZOhZExC7SkjSs+A9fFTL/EvMplon0jFh6nIc2P3j8PxgSY6ihq9u7wjZ30lQqROeFsWzh9bUzyuNZNITzzfUv1vw1Q12X+lYlbYTabPqmnXB9srTHl4SXlbQ9Hfyomr1blpg00kpc2fPDbvl295tFWTU1cUn/F/W8jQB89f6OZS3MTr6SUyFD6hy419tgFS3ZNupAsYv9nhExQPJT2TTzxVXOoG2sBeO0Wqy80ns3xMezJNFz5vP2UqDgBTkPmDxVbLtmwpcGV4Q3u0xtYP3o5UjbSPnrTa27CwXULjAC88xHj20mhx9wXDRqxZSID0oAWUoY43QSiPRumzehb8iqT+7mTpnFL226yYsdPUJKEJ8tFhd4Xk6nkCFIOMhyJUSPuO+0hLp/hERa5zGyboz0toMrp6o0o/lpu6B1iRbP61QJKMPzxwKNWyWWqMpE4q50hf+1XMNT+appexzOJaniG23SUyB9sVnmWv6xeiGLSw0oIP2xOFBhmrdKbhn1mSsvKW/lulrakls8iKfvJngUwL3rPBFcvjY9qrhwi1+QfmjjJKrsI5EiODAdhcyc= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SG2PR04MB3173.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(346002)(376002)(136003)(366004)(396003)(55016002)(76116006)(8676002)(966005)(30864003)(5660300002)(71200400001)(7696005)(66556008)(52536014)(316002)(66476007)(64756008)(9686003)(2906002)(44832011)(66946007)(86362001)(66446008)(8936002)(186003)(478600001)(26005)(110136005)(38100700002)(122000001)(53546011)(83380400001)(33656002)(6506007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?gQrfMuDj9wKXW9u0en74RwqLyasIhY5D7JtMKA6px/50P2/DfkaadfLL37D+?= =?us-ascii?Q?mI/QP8bzZJy0sZ6aNys56jDMg5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5ak?= =?us-ascii?Q?DuHXHhYhgYztvZUe/yB2hgMBUQ46Plg80ulONq59wAHMwu01JrqzZbQrEBIY?= =?us-ascii?Q?zJiGAYsEX2/QzoNFu+YP+ehuW4fB/daE4aMhNpI0Go58Y1UVF5DV3alyHrW1?= =?us-ascii?Q?bnb1jpTT00vfTK7oPV0WXnWJEWt2p3hlvUPBp2HQw2ILgYkdU215JUxb53jl?= =?us-ascii?Q?AbbgG6Tsd9u6Nwl7jfOFsuccyaRxfcz/AREroPbmabpTuWBqQdFr7rPj0Td+?= =?us-ascii?Q?JL5A/YkqiUgy5o3i6wNq+gHVLI/Ef4siKoq2tkwriotmyldGJ7U9deDloLAi?= =?us-ascii?Q?bXmSi3QsxD7gmVZGGSL9/nk/dvS3DCvW+6CCARfGKa52pmqzhNxmIbEfJska?= =?us-ascii?Q?Lu0=3D?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR04MB2748 Original-Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=tatacommunications.com; X-SHN-DLP-SCAN: success X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: PU1APC01FT052.eop-APC01.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 61720495-59cf-44e4-361a-08d920f41df7 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d8SEiXokO9xzUMuW9PGAKcV0XwOmMHbfnQKdvR30cffa1aY1fFUCe1hghPNvV4JcE+pgxT3HeNxY2iDetYlneaQ9qEj17ec3Ao7aiDKQh0rqdRSJTWdW1zmNO3ANZ4YxlG46otp6QNu02XOFTjMMpShzqPH2sM9ZFyod5h6WMl5mCDW8AUL7f6BblVSTWpujrUKzUTL0azV5pJ1FEVJPBTbC4+0RJKgpyi1/LK4uVDd6CPmQjiTN2y6tqRoGGAKVOXhPz3RkPKM34H4/1e9SUCKrL1Jn6qj9K1vhyez8pIAL5sKrJp0yp/WjZYNIWLOJ5JOBTC2rqzq20uRkgRzL+fJuP+56mMtZfL0tZ1iITATjhwyDDG/9yrbnPoyxMs0Hlqc8QUSfbhHzBe4IWtm7+xxr0/SBMczZY36LBOtIXF0eLcJdNMzPJmFGeVH9bOAUPmHfWkiDys2Cq7/YKYDw7GZX78O2DJBlhmyKRIc0GSOaVv5bdIOaUfbMXyNk7M3FnmQ+ORpHaD/MYcetndywSFXEQX6NMuoQGA/4d1KHkjDXto1BFvhsItkd8pVRg8xbluwi7zK6RXFh2Oo+8odqrbLiHDfci3Gr98f6TUnJIdnXtcEBOi1CbJ/NvGRXq1d9CBdGKjjr/5mu2CIOCTtPP4zFUnxCoptoQIxa+DnWDwQ= X-Forefront-Antispam-Report: CIP:52.62.169.21; CTRY:AU; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:sydapipop-haraka-inline00.vpc-a3a96cc4.ase2.shn; PTR:send2.mail-inline.syd-pop.i-shn.net; CAT:NONE; SFS:(396003)(376002)(39860400002)(346002)(136003)(46966006)(36840700001)(6506007)(70586007)(70206006)(47076005)(53546011)(356005)(81166007)(83380400001)(336012)(55016002)(44832011)(8676002)(82740400003)(86362001)(478600001)(33656002)(52536014)(316002)(7696005)(82310400003)(186003)(110136005)(36860700001)(9686003)(2906002)(26005)(5660300002)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: tatacommunications.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2021 09:45:13.6073 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a67804eb-5437-467a-aabc-08d920f420c5 X-MS-Exchange-CrossTenant-Id: 20210462-2c5e-4ec8-b3e2-0be950f292ca X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=20210462-2c5e-4ec8-b3e2-0be950f292ca; Ip=[52.62.169.21]; Helo=[sydapipop-haraka-inline00.vpc-a3a96cc4.ase2.shn] X-MS-Exchange-CrossTenant-AuthSource: PU1APC01FT052.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY2PR04MB2640 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" 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_L= 3_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