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 EECA8A04BA; Mon, 5 Oct 2020 10:51:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D195D2952; Mon, 5 Oct 2020 10:51:51 +0200 (CEST) Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by dpdk.org (Postfix) with ESMTP id 1FA021023 for ; Mon, 5 Oct 2020 10:51:49 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 05 Oct 2020 01:50:01 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 5 Oct 2020 08:51:47 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 5 Oct 2020 08:51:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z1VhixI8ARuyapEwMNrnvE34nJjA3y8iEbwhPU/qox5YaN2eTRG+k4H1Q7d4GK4OsceuLgSejl8hJ6RW0mwc2bXjBq3RrgFFI6xEXuBURJd0EoQa/gOj6wZKU7LFQVrC+UUNWoLFqlJoKKClYM9JZJtwe2lGncLGpO7dL/HRyFKz+cxpJN07psWyUNP3EG7D8TvcFYsT+plVI4VMRjeRy9YXvKa05Pm3bnAvLhmEgDl6dCpilQsxkHKm+jJdQVOYXlJjyK9QJP3M/GFzrgpuz+VMQXXSVhiC7UGMEarW8ijteYcXcnp4qqwj90+is2TXiXfife76Y0YrvTgGc9bMCA== 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=DZh50L7puuRhXR2AlBh8Wxm/bgbocVaDJNT2im2reC4=; b=YDa5a3O3tPuZNygWpcIIk6SwWzTpzTRAufD92zFJcBXfsJ8af5OhW/EQUdxMT4RgAwxwZSTX5qzuoQkhr/HmKXnzFXlzlkOViDA577jyfunpVhRLaXHPyUZNt/3CLf5az/9HQSCQNk8XdkyXp0mQeXPoQxblkPdkMU0nse33dAJegK4NLmkbzC+z2TnDRfA6TLKk8WyQrGp9QeF2QxjlKA54/aLPZEgnOSxEW9SF3nwRm3eNvoTULFbWnkgZSgQ1G4jScyRZ6M2aPXvuqpYIrkqCILzH3GMbyM+TK6H2d/YWZO38aBPy/eUZPtkwp52bFzp4312ivgrNWl4imn/LqA== 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 Received: from MN2PR12MB4286.namprd12.prod.outlook.com (2603:10b6:208:199::22) by MN2PR12MB4503.namprd12.prod.outlook.com (2603:10b6:208:264::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34; Mon, 5 Oct 2020 08:51:46 +0000 Received: from MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f]) by MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f%8]) with mapi id 15.20.3433.044; Mon, 5 Oct 2020 08:51:46 +0000 From: Ori Kam To: Dekel Peled , NBU-Contact-Thomas Monjalon , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" , "konstantin.ananyev@intel.com" , "olivier.matz@6wind.com" , "wenzhuo.lu@intel.com" , "beilei.xing@intel.com" , "bernard.iremonger@intel.com" , Matan Azrad , Shahaf Shuler , Slava Ovsiienko CC: "dev@dpdk.org" Thread-Topic: [PATCH v3 08/11] net/mlx5: support match on IPv6 fragment packets Thread-Index: AQHWmvLPXXrfgyxW6EyVng9srIDRQKmIs31A Date: Mon, 5 Oct 2020 08:51:45 +0000 Message-ID: References: <066be66d2d4166ec593712030a39fae9d2de9632.1601886720.git.dekelp@nvidia.com> In-Reply-To: <066be66d2d4166ec593712030a39fae9d2de9632.1601886720.git.dekelp@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: [147.236.152.129] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 134a6ea3-fd60-4ee7-b6ad-08d8690be3c8 x-ms-traffictypediagnostic: MN2PR12MB4503: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:935; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kCRDrlVUFhvr4RmnM7AYc+5nHrCpQkqoI3DDsfYw4V7SprkjEsJdMSgN95WYI8S6YZiuFueZFzo1q6NPXPBT0D6GzU/uYCC1QU8uXOg/CWcnh8aPvSeYjQoQxaGwF/5fgTfRkhTn0xz6qgAagu82dPO7iFOlEsJ3Bzxqpv1YzACeKx7yODsZ1Ek8ZpEqlu2Vl5/Zr2svfRY17ZF2YR7UoN+y40yPaVQNlm8oz42nahcFXI+qH+9R3mZrkMz8k8Ryl6avYFYXGD+56VElxUw6XPDvDD4zSt9tLlufqVZsq3+FqrrSEhsUUsGIOoHop/VsGY4148bxhmBpCUzn/4K4IYoLHeYIN9+NGBAOC2NuU0DkHCEujyO1MdxzaOpytnxgdWP0S07TxQkl0enrQWHnxg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR12MB4286.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(366004)(396003)(376002)(39860400002)(4326008)(45080400002)(6636002)(478600001)(86362001)(33656002)(55016002)(8936002)(9686003)(8676002)(2906002)(110136005)(76116006)(52536014)(66446008)(64756008)(66476007)(66556008)(5660300002)(71200400001)(66946007)(83380400001)(7696005)(26005)(6506007)(186003)(53546011)(316002)(966005)(921003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: u8PBxjnN+8VqB1B5znjicEhy0+Kg3rOzXUPSWNfjYPRAg1ueCbWKs1tGmpkrf4rg4eLniGJT5fzZmOQVCgEsI3OEBeAkuwvUb99sWoY8exxGoEoyz5pPqRDZaLtH1wEhpqF5G3kOY3lXrFhn5dOUNnXXxxucKPEMOhxYiv2o3Xo27feJokyTX22smjC9vel7c3JVupCBe9dPrkzg7A8meYsAYpRZ3ZaNe7AUIb/SPU3MsSHftLSNQFlyyU/UnUoDTCVAtDj5fUo3Gseav9Mh3kQV/KgWerIrt7sSx1pkUjjbVtms1n636udQ8EVqU9XB0eVwBd8JUXhippy/vkcaGtUkh0PIkEZHnpf7a0K4Tj+TezJ17fhkustyVezS5QhdMTHcDdlwrEF4bq+yrPLZaVBu66txxiQ0g54yFi2r+se7X1P85vTBwzhYBHS69EozXZujb4JsfQlVtj1UHTR4BfdBJQAA8vb0cxha9j7nxcjfsLlazyWg6o5ztzOcbKxmPNDoz69KBepPYle3DiwCl8E1ZHTv3WY5G+x9CTd/E0OyFb+SVfcp40GyZTUPklOftYvS6nnT7+QDdBqKzSntDJDvDBIObfZ5VS2dIEDyvW5MaTEzJkbFSMDy3YObUURVaDl4RxwJjlT1wBgFSrLowg== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4286.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 134a6ea3-fd60-4ee7-b6ad-08d8690be3c8 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2020 08:51:45.7773 (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: lCYmhQJxESVRilbSlSO6urxqkPlrEOPsy7/z7CVmW7BwZJjUcMHDaM0uvfpJPpug6oVER6L9x+kFQyLoz3SNJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4503 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601887801; bh=DZh50L7puuRhXR2AlBh8Wxm/bgbocVaDJNT2im2reC4=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=qA5tuRCnbTAcx8coiZ/G+oXBxuHnEwubP9S40yi1EI451tJY4slzkjtuiojeWFRQE hOiB9PFtF+RkejO5Mw1NPstE9JTF2fu7yTONpQ+1YAV25R4s92RTURIc4XdS7ojVSZ ooSGpimbiPKQ8xSJB7IekxE8apBesoPg8tvNxYRFrtbjfnmaCBFKe4m5uuYJBr4L63 aocCG6Wontd/e+UgXLxN5DMd4tNW7xpz1Gh71NBp13gauVa+9h/Q2o3lVl6GiKZIIh lANRo5H7JJ4ML1KnAQqx3Jedpa+zMqiJQnExnBipz0k3kS8S9+FmOd64uSLbBCeXx1 NOaIABJtUeJuA== Subject: Re: [dpdk-dev] [PATCH v3 08/11] net/mlx5: support match on IPv6 fragment packets 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: Dekel Peled > Sent: Monday, October 5, 2020 11:36 AM > Subject: [PATCH v3 08/11] net/mlx5: support match on IPv6 fragment packet= s >=20 > This patch adds to MLX5 PMD the support of matching on IPv6 > fragmented and non-fragmented packets, using the new field > frag_ext_exist, added to rte_flow following RFC [1]. >=20 > [1] > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fmails= .dp > dk.org%2Farchives%2Fdev%2F2020- > August%2F177257.html&data=3D02%7C01%7Corika%40nvidia.com%7Cbdd7c > 0dab63e4dee1c5a08d86909f193%7C43083d15727340c1b7db39efd9ccc17a%7C > 0%7C1%7C637374838713645970&sdata=3DDqFljgZKStcjqIiwKYh63by%2FmC > 1t9slR5bobh7jcM70%3D&reserved=3D0 >=20 > Signed-off-by: Dekel Peled > --- > drivers/net/mlx5/mlx5_flow_dv.c | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/drivers/net/mlx5/mlx5_flow_dv.c > b/drivers/net/mlx5/mlx5_flow_dv.c > index 3379caf..4403abc 100644 > --- a/drivers/net/mlx5/mlx5_flow_dv.c > +++ b/drivers/net/mlx5/mlx5_flow_dv.c > @@ -5211,6 +5211,7 @@ struct field_modify_info modify_tcp[] =3D { > .proto =3D 0xff, > .hop_limits =3D 0xff, > }, > + .frag_ext_exist =3D 1, > }; > const struct rte_flow_item_ecpri nic_ecpri_mask =3D { > .hdr =3D { > @@ -6519,6 +6520,10 @@ struct field_modify_info modify_tcp[] =3D { > ipv6_m->hdr.hop_limits); > MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_ttl_hoplimit, > ipv6_v->hdr.hop_limits & ipv6_m->hdr.hop_limits); > + MLX5_SET(fte_match_set_lyr_2_4, headers_m, frag, > + !!(ipv6_m->frag_ext_exist)); > + MLX5_SET(fte_match_set_lyr_2_4, headers_v, frag, > + !!(ipv6_v->frag_ext_exist & ipv6_m->frag_ext_exist)); > } >=20 > /** > -- > 1.8.3.1 Acked-by: Ori Kam Thanks, Ori