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 76AE2A0A0A for ; Tue, 18 May 2021 11:31:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6787B410FF; Tue, 18 May 2021 11:31:30 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2068.outbound.protection.outlook.com [40.107.237.68]) by mails.dpdk.org (Postfix) with ESMTP id DE16840041; Tue, 18 May 2021 11:31:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JUlyB9lPNCPpyH35WcqPA6zcRm4yIaMGhqefqWkV6dR3hG1Oh9tz10SdKZyfDzprxILVI428y0fwON9xEmR/I+5JyOrcAXoS4l7Ijak9icxfpJQQ8LAg/53qObMoOrdIbd2hZjJI0LjU76nv6qzA57K9zmF15KMGef8xk3jXeUZRA2nB0jLJIbTgWYEoQFnLnZAsFckB/+WDs8VFxAnSaC4GQ0kcC0Z7NqUVSVxW6GvDOVEpLWInvPlG1JMqz/Wikb/iDrw/hkieq0LrRCSv0QKCdsbHevP0LwEqnDkmZTFEqBAI+YLXWmKJf/tdpARFlwryJuBT9myTAlOHeBf44Q== 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=uzCELXFn1/SNqwnyRMzAYb767eTscLupAi1TknQ3taQ=; b=ShO3Z5Iyrq/f8EdlqAeaSIeOm9OGQl3ta0Ljj3a2xJqzXnanjvRSTkC9jDVcgKXx2z2Af/3srMU9cXk4yUZQQG+7C46zjGR/9hgjRcRt0oL0ckR4YIiPqwzVGAcUoicbT3atpodHP90sbiDV9Mg3Vipm2ItxRbT8iGcSo9fwZL2pvdcHEPMmtonOE/UYrqhioTqp1ndbBiznYK+caECqOZp4sDFzn1OPc5dD0LkSc60ILedh6PZQKVVhf/91Dr14yGYb8ZyUp4F0kGgQMuWVsyfgPPGfdrhG+HuvvChrwsaeG6FI1KOlwPGfosy42e7SiX7sW5bYuYSsTemAoopfsA== 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=uzCELXFn1/SNqwnyRMzAYb767eTscLupAi1TknQ3taQ=; b=dvmckdY3XPvDnf7M6AMBKZ/chy/JABjliiFuQONq0yj6lVoJEP4GKF6WOaAELh3UjNnOW1rwkLt5WA7vixVuNmwqgWfVgZ1t0yY5yuws7HkPmJPCNgH1wK+XRILVkQkpk8Od47r5E+lxYHtZL0I+Slg34CSptkeZ/qgypyK5QsxJJh8MGWdgLJY6trVfR7Y2u8UQAgQhMdt21xbCFA9sqFWI1kOhHsvYRPvPsi/9IGJaZKYvlfW2ALLegznp9Zvg/fkBdndleIG/SMnmfvwHv2LKGKXwhyhbjQJPCdjS+0ap3PB22xAG0oMEYFKpxp6Dl57WPF465JNNvbHIAzscXQ== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM6PR12MB3500.namprd12.prod.outlook.com (2603:10b6:5:11d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Tue, 18 May 2021 09:31:26 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::c595:e3bc:686c:16a4]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::c595:e3bc:686c:16a4%5]) with mapi id 15.20.4129.031; Tue, 18 May 2021 09:31:26 +0000 From: Slava Ovsiienko To: Alexander Kozyrev , "dev@dpdk.org" CC: "stable@dpdk.org" , Raslan Darawsheh , Matan Azrad Thread-Topic: [PATCH] net/mlx5: check meta register width for modify field Thread-Index: AQHXSDHsyZkopNtDEUmYfnvl7VZ8SKrpAISg Date: Tue, 18 May 2021 09:31:26 +0000 Message-ID: References: <20210513195458.258410-1-akozyrev@nvidia.com> In-Reply-To: <20210513195458.258410-1-akozyrev@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-originating-ip: [188.163.75.124] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d2fd21d2-6a23-4a9e-063c-08d919dfb5c2 x-ms-traffictypediagnostic: DM6PR12MB3500: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QCnJxWtMX3M7icGs7bgqGVa+u4BT4vuBEac8ZU4l8jViPbvzTPHMzCr0wG0NLn2sfGonTVvEq+NhdgiMJscPBPX0PDOMJyCyYuOuAEupSffrUUbyZnFR7BDxmc6ugO3MRP2+gK7fgP0W+xmrpeUIEl80Llrm/cni8YN6KpFfu9S8sUgCyjN6DLzzQpDQfFCl4k//vrz+XjCV0lvhMcG7EEg/GgNK+yFClJgdeUIKmVi7b5jl/fVVEyRpQjG6xr1VXAXeeF7FGj4HOw/OuU3a+Sidf6miA1oPplgTYwT8O/tIPZHuj+Ofh5DbwqC1i8BvMxV8aCYplog0MCZDTntF1aB0LeLxEjSjHzKJAMSMDcZwW7PzlSSgp2JpHP7LKq4dZbL1KKt3VE+iw/6daZje9rDNIROoAwmK/5wK2mZy5WbBruVoYsULxzwb/E6yog7/ljx20iURXzCvE/DwNpdgcAtSaxob+cNcjvx148FY+VDuJYSd5DFL9pyY4pxi2JF+NejBLHVWZI8mnnE33xtiT5Qagwtu9wqH5pYkBFJykIY9csnVu1qAhREpPJSlxg6/ETOa4LVtkp8PvBpkGQaDL1hIpVhpc37uZ5P8ssV1rBY= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(346002)(39860400002)(396003)(376002)(316002)(33656002)(9686003)(54906003)(110136005)(4326008)(2906002)(107886003)(55016002)(5660300002)(38100700002)(122000001)(186003)(55236004)(26005)(52536014)(478600001)(8936002)(71200400001)(6506007)(4744005)(66476007)(66446008)(66946007)(86362001)(53546011)(64756008)(66556008)(76116006)(450100002)(7696005)(83380400001)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?c/+TPAIpdcDYvKHMUBxyBvyARWZUXmH/0U609elJddh8aCot2wv7GrfbQ+l0?= =?us-ascii?Q?0AiOqepmAf+nJDbFZM3SuENNWpRpXS1vteiVxa9uR+wSMCwTHatfqOLFfy4o?= =?us-ascii?Q?+U2IemJWVedJZCEw43LWHzGfCuxog1YpXKNOZHw7PSyJ0+Za8OtB3aWFz6Bb?= =?us-ascii?Q?YDFoiRezHQ+Iebl3tFV77NoWzIk36JjumYn/ZZuGCuYzufuIEkU0/tPDxBrl?= =?us-ascii?Q?h+67DAq3jzAog4qjDzUEuiE8JmRtwPpEa13LWUb47nnguhdi3j2nnji12LDf?= =?us-ascii?Q?iuBWMgAYrNoaaChIpHFzNLECWnZohEhMApYQBcCw9pQ1Ereic/H0nu2rEzjs?= =?us-ascii?Q?Fy6cww2CLh9for1Ok4dvVttAWnpfUlqTrYZRGEfQiW1ulwsiK2ecPwgxRhfL?= =?us-ascii?Q?htBk/ELcsNL759ivwOpGjBttYRgrGKHZM7tL5IjfeZ8rLLAVOU1RczXGp5RU?= =?us-ascii?Q?6z5hbdhWiD6LcbCNjRT2TK/btg0KW3EoAyrwOrY89h++gCHHXGT/OntP+VzW?= =?us-ascii?Q?86WX+Gpwoebz/23fH0ag+r+wKVtP9MbFc7qZxgB3OE52wE5ECT4z6SBMfVUf?= =?us-ascii?Q?MWqBbjUNjH7QXnfVtq1k1g//y3od/vzqmo2nY6JzOmudFVADl52tB/rRsuD8?= =?us-ascii?Q?eucGt1as64MrdQ17ESe7ibjnUZ/voEdRihd/zgRjQ9xm/uE082/W7or85K3g?= =?us-ascii?Q?AeCTPA2whPmBX5y0T+UaTmTjNcOzG0cGBknesZnRBe6l9zh9WtVgWeA5GStk?= =?us-ascii?Q?8inAlxA5vKJfrUKAByfIyqkgyG4H9wm+H8TXlbonhZ6aUKsEZjKBFI/Z8uOn?= =?us-ascii?Q?ENwpAM/28RLDqk23lp2IIqKebQDMbUdLPNlTSSrTqAUElGJbgWnjndBED8QH?= =?us-ascii?Q?i4qX7/VdJ+hIaaqGJH2JlD/+G43+xviq7kid4bR+8V3lyU2njdqKOSmOckM3?= =?us-ascii?Q?MOnArSls0PQaaJMDZwQGmTUjIAwFIbc5GztlI1uDX6uJXmndXkEte3FLGLC0?= =?us-ascii?Q?kjYn/fA4OPQcLfWGO854Jq47dd6PtpHsyoKmvKzwt3fnUO8teDQG7lMy5dRs?= =?us-ascii?Q?4MwtyCfoxvUO9DrhkbdT1FKZWv7/p6KW5kBrU53Q9L9nUJdall4eUd9KKxY1?= =?us-ascii?Q?r0gfv/Jy2OTVn2E9TdIvSpSMcxRofWEQ061aebuZxWtfvCC3ssnu+ktOxj6u?= =?us-ascii?Q?2kN2g7+FiZz/+nQCT1SyKLJE93LdAiaqYMReYkU96oi8gISswrmbQK3VuYS0?= =?us-ascii?Q?TQ+KlOWcH7E34kfh8l/NvjtxFEmXn1+kz1FyIy1YJImA0l01apn1QqFEBLSS?= =?us-ascii?Q?RkmPu1aWZUJHvsRLnKTJpDU7?= 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: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2fd21d2-6a23-4a9e-063c-08d919dfb5c2 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 May 2021 09:31:26.5719 (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: CBl/Nsyg2Vi3heKOiQ73hZRWkvkYbP6PgyBuMJ3jVKABUY921vpxDr8g1n6o9sGg5fyjESAfqQjs/pTf0uYNPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3500 Subject: Re: [dpdk-stable] [PATCH] net/mlx5: check meta register width for modify field X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" > -----Original Message----- > From: Alexander Kozyrev > Sent: Thursday, May 13, 2021 22:55 > To: dev@dpdk.org > Cc: stable@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad > Subject: [PATCH] net/mlx5: check meta register width for modify field >=20 > The modify_field Flow API assumes that the META item is 32 bits wide. > But the C Register that is used for Meta item can be 16 or 32 bits wide > depending on kernel and firmware configurations. > Take this into consideration and use the appropriate META width. >=20 > Fixes: 641dbe4fb0 ("net/mlx5: support modify field flow action") > Cc: stable@dpdk.org >=20 > Signed-off-by: Alexander Kozyrev Acked-by: Viacheslav Ovsiienko