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 90DF7A0C47; Tue, 6 Jul 2021 13:40:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76F4841262; Tue, 6 Jul 2021 13:40:32 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam07on2051.outbound.protection.outlook.com [40.107.95.51]) by mails.dpdk.org (Postfix) with ESMTP id 52E734120E; Tue, 6 Jul 2021 13:40:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f7cJrmAxZUVYrUlNkg1v4X/42AF3ze4WTCPu5nPa/XiXGWrEVKKKxpXBZViCgr6Fz1pnjOl/kFNMYFxQyrh5v9UB/D0bx5GDOpH9sLhwNVTY4yM6ycVJUKQz12XB6G1auuAIL4oHsM8bXhb7bYeDvNY7+JuN1IJ7M5nSxJz1ZMlniu78/7TksLDIW/LE/5BnNyUhyEqjpaMruHXUSHQv8k0DCbHOTW9z3YIQcHkzoTgAQ2ppnH90RwuZceDiGAa/IuJ5VQ1XnFfg6srqTObPkxGw7cbwuVTXbO/akftX5UzQ/ZjVkuGJ0KTXKtlYQP5KGi/Da29jr0Jr0XSsv+vosA== 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=kLgQbGwnVEI4wbB/OysOOAUkWvGviNM+gxYjCsvffC0=; b=khbeTbeYLZqKE6xe5bOszMBPTRPRHoLDtjSir5leYRLuOj7t6yE0QO2B9EXEmEg3wTwc3Tps0gSOlqXfVHjU2y40YnTZrrpwDLpmIF/d/zlzz5dAf4XLBAmApAxMK7EsO8n9Uajbaft8Qd8Ao82C4ZA32efN4x22zVT745mnGwPiVBievOFoJOlbOekyF207vedQtHD97jJ09tmke2QYtCzXmMM8yJ0EikmT1AFV4lZT+FIvF/5Yyfb7pQg1uCJ2uGSYT3W78DBEsXSLYP0cMSQmC+ZP6RhSpeDlDLeYxzoH1J8PeZ8hZo8Du8qIOVWgq+zJ+ciLKok4ESuNK+UDpw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kLgQbGwnVEI4wbB/OysOOAUkWvGviNM+gxYjCsvffC0=; b=P7uZZt9WUTqsMukWhOl7dz4m/Dt8CSk37AEEyflFQNSO9cJpoScoVPVDbDuXlZJcCEvV3dwQVJIUE/qzbMV2O0ANc1h4kfHPppnFunjvfN0CMP6f75QgnP0NnNDek4Clkwj2pkPm/dVdYPGQMMXZ3KGrKSzNPOn9bJWPStUsWIyH6HMszTaxt6jgzHY11zgO1Fl2HZ49pw6bCxqDLmqy/0v6hzPJrwzy9bRgmkFyqTGFyk8x3QS63ukLKOxeTqwEtyzlSh1MXWbuzTLlzmJ7o6H14RoS5gslGZO1rpn5bmBrtPxfcx1Me1sRw54tGQUUiLxRTpfhuV48bZoi8CZQ4Q== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM8PR12MB5480.namprd12.prod.outlook.com (2603:10b6:8:24::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.33; Tue, 6 Jul 2021 11:40:29 +0000 Received: from DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a]) by DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a%4]) with mapi id 15.20.4287.033; Tue, 6 Jul 2021 11:40:29 +0000 From: Raslan Darawsheh To: Gregory Etelson , "dev@dpdk.org" CC: Matan Azrad , "stable@dpdk.org" , Slava Ovsiienko , Shahaf Shuler , Dekel Peled , Ferruh Yigit Thread-Topic: [PATCH] net/mlx5: fix pattern expansion in RSS flow rules Thread-Index: AQHXbYBkTGdZeyH+3ES4oKoTTH1fyqs13F7w Date: Tue, 6 Jul 2021 11:40:29 +0000 Message-ID: References: <20210630071952.6225-1-getelson@nvidia.com> In-Reply-To: <20210630071952.6225-1-getelson@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a2495bf2-3ad6-4ed3-3250-08d94072dae7 x-ms-traffictypediagnostic: DM8PR12MB5480: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3276; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Zl+BQpVa7AvHAoS8kSOoWMgny1KQBDLit9Bo5j16orHvKcggmlsmHdH0Jo3nqo8PA0LtZW41FgZHlOlYe6Uqf3SNEGVKe3sGGdVtKhUcBFCwUgf42n6Bjd2LTjsWbdmkeP6Wpl5BRElqpOb1Y8rv9Fx8jRaCUqDRmKOIbMPPGFNgdwJf3WxS8SGMIWCrSQ5uyrNqqG2knry24CPpui4IUBe68UdNQw/hwrw67VwmeM8HWgd342juSXCcDTnGpmR/CJ7hIG+EHHcolO0zcJcxulHtuItfpfu+7GK3btYlKNDtMhd9zgnCnwYEXRm5O7CqQXsnWOUZTqFelX10Xcc5PWKpl0uQbMsbb7t3/E0iQedLiM4eRMqiHdOI14W3AgPJHqevvgdiI7fa9mvhXGW+9XyXWCPf6dUNCkg1PMFhkfvMum6/8D5eKQ0hB/3B1b4gDCz4Y80i2WPtESsDCHCaA6y/I233SFfUZttqzMdvCEiZ0AslBVKw9g+czv0tqM7Ni32cnzw8mAsr/8Wwsr3sA+M/ymeh8nQHAiJH4+WRIilj8Paad8dU3NocwRUYdkJdjuTX8d/IGF5IloTe4V/VvnalxvfCRl9TLadu0KKKfKdznnTBhYeyeRO6JYsvWlavYgN1f/SHoJ64zX3Vvl1lCQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5054.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(346002)(39860400002)(366004)(136003)(8936002)(55016002)(4744005)(38100700002)(83380400001)(71200400001)(66446008)(54906003)(4326008)(5660300002)(186003)(122000001)(26005)(478600001)(52536014)(9686003)(316002)(64756008)(66556008)(8676002)(66946007)(6506007)(53546011)(7696005)(86362001)(110136005)(33656002)(2906002)(76116006)(66476007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?JPWgu6mHl96qi6U0FWx3aSfebqrDVeEh2cC3+Mxt5uWfwRuktJE0vjxg/TQO?= =?us-ascii?Q?hzkWno0ng28cj0CWU7LZf4gUZUwtMHt58zf04b1BSYaZwTwR6vNMboLrHuRN?= =?us-ascii?Q?K2SQBLs/Mc8pmZriEU0Yb41IoUWfl+/g2amftaY1w6yfrHRM6D0SlZ9TCvsh?= =?us-ascii?Q?6J77aMYfGMz54xfZEQWPv0aZwn2KnaT6e0H3MpU+l8D76+9L9G2zkTWOfNGE?= =?us-ascii?Q?ubmTMm+9hzctTlP2YjwzxRziOyv9nuUqXt/j60TD3ccUMsvo+DGumL5E+i7Q?= =?us-ascii?Q?/xdn5ZR1YazPCzNzPuHIvQO/Q5XLQTry4DLsUlSp7dGmLW0jsSBUKSDFoMaw?= =?us-ascii?Q?i+chl1kbWIFreiCT1tswTFayRODXwpzjgiiYJ/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3h/ktEq3kZRlAOXmykB8zHzP6glD3YZNfUgguk62w?= =?us-ascii?Q?FNh/2vwqSKxr5Cv+fgDLNMFM?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5054.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2495bf2-3ad6-4ed3-3250-08d94072dae7 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jul 2021 11:40:29.1186 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YPSc5p+GruCBifCEKnyZwnXqiNHq7wbdfhFWAnzLNg4zlkTo3+FDfQ+RIXc9cRi4et/HGFj2D46uMnLkEOIl4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5480 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix pattern expansion in RSS flow rules X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, > -----Original Message----- > From: Gregory Etelson > Sent: Wednesday, June 30, 2021 10:20 AM > To: dev@dpdk.org > Cc: Gregory Etelson ; Matan Azrad > ; Raslan Darawsheh ; > stable@dpdk.org; Slava Ovsiienko ; Shahaf Shuler > ; Dekel Peled ; Ferruh Yigit > > Subject: [PATCH] net/mlx5: fix pattern expansion in RSS flow rules >=20 > Flow rule pattern may be implicitly expanded by the PMD if the rule > has RSS flow action. The expansion adds network headers to the > original pattern. The new pattern lists all network levels that > participate in the rule RSS action. >=20 > The patch validates that buffer for expanded pattern has enough bytes > for new flow items. >=20 > Fixes: c7870bfe09dc ("ethdev: move RSS expansion code to mlx5 driver") >=20 > Cc: stable@dpdk.org > Signed-off-by: Gregory Etelson > Acked-by: Viacheslav Ovsiienko Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh