From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5C1C4A0528; Mon, 20 Jan 2020 15:04:25 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 374BD2AB; Mon, 20 Jan 2020 15:04:25 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40040.outbound.protection.outlook.com [40.107.4.40]) by dpdk.org (Postfix) with ESMTP id 7A464374E; Mon, 20 Jan 2020 15:04:23 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DPuGnbzNRfMKIOQII/44nMEewrpMQwSgReEDp7k9ULbNMiWAcAvRdFbOEkgCBcxo0+kSHbRbiMu2sFzc7eQP9BXM2ET3wulzHE3RQdQM/sF5Cv05jIwqnByx41rt/6D7WuwqebI0RFKxFHYCzQzRcAeIdAoKyCOaVOG2uE77HoCfKgWS/us3b/r+QsXVkZRGela27/aY7wSpFkVnKEQpQBUE07oj6cFYx0JF84xlTnouYABEd1F/Fdyc7oLnfBcG/2dzazE6RXl4K+QPWXn8MXtYJHHVfRfyVvjTRyXbDjAaQlVY4eFBqXldgc3UGxbgyiEpqnCoKM2gGkpuDff7qA== 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=NfJ2Z/RkljxVPmWJ6cRjp5+D6LJD+RaV+tynBl2SuPY=; b=NqlHozIivEW1lUEC/AD7OLZMP8AsAf6GNMF97i4gwFVEw25zDJ1/70Otj+x7droh7Ip8s2ySVhQfSuEzkyzyzQo/QeC/LfYpojECGYCdl1I62RgR6zzTsZmXmPdFUov+4PA/sg67TNDcwjk8lCoZkGzCTIx2pDsP9FPZgB5IBLKiIMW6haY9tJyEZIaU41BTF5cha8QDD1R/iI1JiPkx2h3DHwLgtHUc+a8aruWh+hbJsrZC4F3opRMgMCQV1I6BHNWbgfioS5rIkYYqgBr1HeWCbcEvBQ7kE7FPk0YtYbNRCBk8aNFy0D9BDC8rpC0oob09MRb1Xh7K4E93tRDhjw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NfJ2Z/RkljxVPmWJ6cRjp5+D6LJD+RaV+tynBl2SuPY=; b=ULiKHLJmbZOQTb4MLrBunU0l8d+lrVc9qCaoxiMPXM6QrXXNl0WDPFabynEOotmWXqCDccBEueSKF/wCvEJwqnylXWjQtoXvSkaFSnS+mXoT/bRynPILVRPh1/iWAjis8l4iHM44KlZK1DrNk9e4Airxm5O5TeSEvNeCmveoE+8= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (10.186.174.145) by AM0PR05MB5618.eurprd05.prod.outlook.com (20.178.112.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.22; Mon, 20 Jan 2020 14:04:22 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::f0b7:a92b:aeb5:5761]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::f0b7:a92b:aeb5:5761%5]) with mapi id 15.20.2644.026; Mon, 20 Jan 2020 14:04:22 +0000 From: Raslan Darawsheh To: Bing Zhao , Ori Kam , Slava Ovsiienko , Matan Azrad CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v3] net/mlx5: fix modify actions support limitation Thread-Index: AQHVz3YNLpVDaFC5ukSokd/FiJdlsafzlezQ Date: Mon, 20 Jan 2020 14:04:22 +0000 Message-ID: References: <1578844612-153139-1-git-send-email-bingz@mellanox.com> <1579513387-138985-1-git-send-email-bingz@mellanox.com> In-Reply-To: <1579513387-138985-1-git-send-email-bingz@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e4a67732-7bd5-419d-d1b8-08d79db1a6b9 x-ms-traffictypediagnostic: AM0PR05MB5618:|AM0PR05MB5618: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 0288CD37D9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(366004)(376002)(346002)(136003)(396003)(199004)(189003)(64756008)(66556008)(316002)(2906002)(4326008)(6636002)(76116006)(66946007)(66476007)(186003)(5660300002)(66446008)(478600001)(7696005)(52536014)(110136005)(9686003)(81156014)(86362001)(53546011)(6506007)(8936002)(450100002)(8676002)(71200400001)(26005)(55016002)(81166006)(33656002)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB5618; H:AM0PR05MB6707.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: I9cV/H09pRR84rNkum7P7GcaGe7u21lOcvEAb+tATyPbcOi5DFIX+iGgavZfWeNN+zTBi/zAVAG8O0QfGouT/er7TYKpGabZitF9L0p4VcqOYfPgWTqjE1lPoXjkvniYwbtZn55oLrSu3tUE6gsJBMyuRGmT30ICwGpsIlSxK0yRzZ4kJgnqDW3gJU0lEnlo0wu9mKZXzQ/RpXcxZVgOOTdNg3YKJ4snIflumhcFb7ek++bs8qRLOVn7JDhMAFrTRw5g4qBKwIvY3wVe+4OLbNTXB6am9EH8pT1zXgtAD+kugWT6srEkOCT7iiR3IxqJJRPCEoJAdZ4JYAF8nhtihv9vGXJF+l49NtCOV1/fZ6mH6d5YLpKM/BIqbA5PtnAcnZARa+M8Nfze5ByvELXBKdlBln3kM/BD6KC1U7W6045vkfgZXzUqzZJehU6RXnzf Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4a67732-7bd5-419d-d1b8-08d79db1a6b9 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2020 14:04:22.6798 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Do+jam4nj22UHcW6Y37f2rZ9z/ksxq/a60/hmobd4aUaU4hHnUmOyBJTDyuAjLS/cEzKNvxA4aIzmvQODA/t9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5618 Subject: Re: [dpdk-dev] [PATCH v3] net/mlx5: fix modify actions support limitation 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, > -----Original Message----- > From: Bing Zhao > Sent: Monday, January 20, 2020 11:43 AM > To: Ori Kam ; Slava Ovsiienko > ; Raslan Darawsheh ; > Matan Azrad > Cc: dev@dpdk.org; stable@dpdk.org > Subject: [PATCH v3] net/mlx5: fix modify actions support limitation >=20 > In the root table, there is some limitation of total number of header > modify actions, 16 or 8 for each. But in other tables, there is no > such strict limitation. In an IPv6 case, the IP fields modifying > will occupy more actions than that in IPv4, so the total support > number should be increased in order to support as many actions as > possible for an IPv6 + TCP packet. > And in the meanwhile, the memory consumption should also be taken > into consideration because sometimes only several actions are needed. > The root table checking could also be done in low layer driver and > the error code will be returned if the actions number is over the > maximal supported value. >=20 > Fixes: 0e9d00027686 ("net/mlx5: check maximum modify actions number") > Signed-off-by: Bing Zhao > --- > drivers/net/mlx5/mlx5_flow.h | 15 +++--- > drivers/net/mlx5/mlx5_flow_dv.c | 108 ++++++++++++++++++++++--------- > --------- > 2 files changed, 68 insertions(+), 55 deletions(-) >=20 > diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h > index e42c98a..2e94371 100644 > --- a/drivers/net/mlx5/mlx5_flow.h > +++ b/drivers/net/mlx5/mlx5_flow.h Added Cc: stable@dpdk.org Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh