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 0A772A04E7 for ; Thu, 5 Nov 2020 16:02:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E7718C8D2; Thu, 5 Nov 2020 16:02:44 +0100 (CET) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by dpdk.org (Postfix) with ESMTP id 0B5C9C7E8; Thu, 5 Nov 2020 16:02:39 +0100 (CET) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 05 Nov 2020 07:02:37 -0800 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 5 Nov 2020 15:02:39 +0000 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (104.47.44.50) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 5 Nov 2020 15:02:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B43xvl3yWgj+k+5F7dMsULWOaHBYCdDT27+NeBfFshh59MFrgU/jPmGiFpYx3Si6KbYRVMx7kVhXU7r6T5GvUCQNkja/1BWUb1rFjAISztmXBWKBV7vNPxm7nX3A2OSUqSNmTD5JdmPlWNyCMMhV4QaMOa2CZeUsHCPmbrlcHV0fgOXg8alulPj+pohNWlV+WNziz2cQt3dgwurbFcngW9DdjZFLL4MlsdQEIT+KuldXed2Nlhw7tMyo0W/B0uvy5DMxjqeluHaNPMgTCEcXevXCmX84B33plj/kHPYr3MIMXIj4cfx518+Uippvr3VnqmjszxqM6HjuDSdYW0ozhw== 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=N5gCc0VwimI0saZCCfggI+IHkIRaSaIPqS1B78ebA9I=; b=LHeLF5Cy3zKlfb6OHE66PvxmCKTKoAQsn1Tl1AIKIq8Yl9eBjTmcs6/TynxIcw/8dlPNvL0itY+gvaUk4ZhaPKaaxlWxL7uRxuTYxrzFv+5YIZzza2mHQyRDSPN6l5t6c3Umcq2kA6hxU/EjvwKzyqK4sC7qtw+0Ok/NOyYJ9FW2XcppqSNb1NWXLdyyx/HtrAXxvnaFrBWf3wgKcmKS019DSKcu+kV0S9Q4z5f2YZLB1po0umumPketkbSLnk6BBMxdD0P/3MjSdoyY5JPzed/EBUyhyoWsEmBzxkHJMjA0jRhXS3sxVxPjbzYNADIxZvtCglsbCnawmX+5rcjsmQ== 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 DM6PR12MB2748.namprd12.prod.outlook.com (2603:10b6:5:43::28) by DM6PR12MB4417.namprd12.prod.outlook.com (2603:10b6:5:2a4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.27; Thu, 5 Nov 2020 15:02:38 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::2115:9e13:d36f:af51]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::2115:9e13:d36f:af51%6]) with mapi id 15.20.3541.021; Thu, 5 Nov 2020 15:02:38 +0000 From: Raslan Darawsheh To: Bing Zhao , Slava Ovsiienko , Matan Azrad CC: "dev@dpdk.org" , Ori Kam , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix eCPRI previous layer checking Thread-Index: AQHWsaQw0hMXl1LvpEaZ/aczr+uElam5peNg Date: Thu, 5 Nov 2020 15:02:37 +0000 Message-ID: References: <1604382154-336373-1-git-send-email-bingz@nvidia.com> In-Reply-To: <1604382154-336373-1-git-send-email-bingz@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.161.229.12] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7f8436c9-1ded-4a73-b060-08d8819bd5d5 x-ms-traffictypediagnostic: DM6PR12MB4417: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:785; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1qrWijeJdgwPVUQzivnxTckCrDXKxiIdZC+roUoqRGG8wAqdCPkWloUpR501WI4z5IJ1wHSPHDuCjHLzh1hG9ATD5SiNvZbDgRqUT9xYbNgm1x9kVfJkk0fxiUYtIODTXJnQ6AG/uZdtkbOsxmTn/JM/rKb1EnVWJxWH+w9234++hxe4CzI2GJHIUchwY/mxIoCyLgmeGelsxQnUp+VqUhtb95kmT6a+Mw5YanyzuefEQOHMfKyuhxfBjV1jGPo58uoCjWjyuCm7xaSwyEyde0N8FXkv0zZOgRjAlLJBDfxnEyEp/h8LzQ71Li/rkqzLhPACYMb+D1xRlTZw4Kj9jw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB2748.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(136003)(366004)(346002)(376002)(396003)(26005)(478600001)(6506007)(2906002)(33656002)(53546011)(450100002)(6636002)(4326008)(8936002)(8676002)(186003)(7696005)(71200400001)(66476007)(66556008)(4744005)(5660300002)(9686003)(54906003)(316002)(76116006)(83380400001)(86362001)(52536014)(66446008)(64756008)(66946007)(55016002)(110136005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 5cds+GHG2KDvEZPlk8zzIl456tnmnrqpXab5qZZNv7gj9U5NQ6b4FwuNdb4lXuafQCHHi+22iHdCVwcNGOKxJcRizkKsqMXa0yOZxsBO60rJUfqD+SfOwBQOkU0J84sFc34rTMQdr02Kjz5xaa8XoE4zgbHkCvpr+Ye2z2cth9zget2b3CIoo4eF9vM8cCLmBVfSjNZ8nnBft0B0Qojhy0BKzEsU7kFYGBhi1X1s5xxl+n8aXCSKNebk+S1l3eoV1YOwQhhTZJfkmKo78ldbbZtweJ1voqgeOrvHTeeZF2c1uQOvbBdfA1yjofa2gs/FDAIl7luM6JwAZTOHTtvRhxpNzX2LGZJTsDwqVr2wGKv7o9KVHfNFLtkflNzQfAEHikvAg8MfHd1XJk72Bu5RiQC5U18eMb74FTBVtfAZgPu0kawGatDJsboAfW93Kh2av5yXiWgaik3M7sB+/+ImxF0NQHn70zjrnHZ3XjIbkCyZtCTonH7T8XG2itUrlz9iZhtUlSbpe7zukYiQuUUkTsHu8wbuSupgHMXX68QIJBYbTMaU6EUbHt84XwayqvmTZF5eKWazh0L6v0P9zwGwNRZoQ+sjpge1/WQko/1VHJDnz8vJbj96/D5pG5em0oOg2Vr8PKgy54trp2MRyIxLhQ== 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: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f8436c9-1ded-4a73-b060-08d8819bd5d5 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2020 15:02:37.9421 (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: HWLJPXST5HssiioZ9yQHfrLqmcEg9ftjXOnWM3p6dLDKci9Svmq+AAgxEZk7oicgy6F5FJNj5+eWtxx07txLEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4417 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1604588557; bh=N5gCc0VwimI0saZCCfggI+IHkIRaSaIPqS1B78ebA9I=; 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-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=E8ow0h1jRxrsbHzD2kigQK8zPPzVMj6r7My/TDRj7KQb189lM47P3DHMs0ZaHiXex r2rG+NyDhY7iCNCUimVIA1JMAtXdsW3p+7+qnY8dkHnsxnngpfn3VJrR04zUijGNtH 06FCeBnmivZ9s295pk52+J31KGQ0PCP91fBlAV4Siyr2l5zq4Vs+dA1JjsinmpW1fC xRjWrj5VAsy1RIl4dD0VjSkkKKZG2Q6IJeTmoREhVsDlXCYdUh520xaqex/8jDBVWE lFnGF/IKHZpq/qk+5N141t9TCky2MB92V24EI06qmjbcnQHkgpss6QLHOY7ouD6Z5u I0i+JWtmA7ARg== Subject: Re: [dpdk-stable] [PATCH] net/mlx5: fix eCPRI previous layer checking X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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" Hi, > -----Original Message----- > From: Bing Zhao > Sent: Tuesday, November 3, 2020 7:43 AM > To: Slava Ovsiienko ; Matan Azrad > > Cc: dev@dpdk.org; Ori Kam ; Raslan Darawsheh > ; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix eCPRI previous layer checking >=20 > Based on the specification, eCPRI can only follow ETH (VLAN) layer > or UDP layer. When creating a flow with eCPRI item, this should be > checked and invalid layout of the layers should be rejected. >=20 > Fixes: c7eca23657b7 ("net/mlx5: add flow validation of eCPRI header") >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: Bing Zhao > Acked-by: Viacheslav Ovsiienko > --- > drivers/net/mlx5/mlx5_flow.c | 29 ++++++++++++++++++----------- > 1 file changed, 18 insertions(+), 11 deletions(-) Patch applied to next-net-mlx, Kindest regards Raslan Darawsheh =