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 52487A0C3F for ; Wed, 12 May 2021 03:54:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1BE0A4003E; Wed, 12 May 2021 03:54:40 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2070.outbound.protection.outlook.com [40.107.244.70]) by mails.dpdk.org (Postfix) with ESMTP id C37A24003E for ; Wed, 12 May 2021 03:54:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QWBiiz5Gn1y+4uia/sKMYhB3gXj7myOzqbxAHUpKtESUlvbfk58jhOqHdpqJwgDRWUo4uGrOdrZkGB41QbYjAGWUEmSlZNYvRY3jpbpSAoSt7qLekVcOd9OM1V4ttag2nXUslAhTyj97sOAxgZMhy4iakdDLbcJ4/TO+mixYx1L3QlImKzh+gYpRtN3oHM45E4/b/Yv8sscdQo6SdDwAn/ZWgVXnyRfFObWjt8TFfA5qb+Kf4Lc76IacZY25Lj+CjfotgNpmSWpdgV5c1y2//yB0vzMm2aN7m4iz9o0cSV2O/0uuoT75GgiJx/tG9z6nk1c+zFu9CLYBhb+3+yCbTA== 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=tWIjjc0dlTORrD9pEbMyPGs738Qrd2R9BX/y33KGt1I=; b=ib/jDDKGW0n3oI0LCZoMV44ALXrrCiIJfuQ+2RMxjQyyis16u3sikFtopmKPMVi9BnLkbEaQKni3anAs54swOgCRi0quPGE1gyN9ILmcRAgJ61iUaBfRQgg+ckp4YKGmfNOqZydmHYGOqJCWp8+/CbNnFAFVBmIHcUlqRPcUhxBS+3yBNjEQ0vBa/8UfY/IdRUqe/Ks3MUERZfjlvWfQXmhJv6ygAoPSoJrlZFDok6KJopQJpnGwxArGwtd6mlkB3C+Ly5seqdr9rI6R66H5sLIlGQzhA9nh1w04oZGp8Ncu3NRMjyM9sHVVbf3XXNZzSzwuLlXaiKV9AvUYhswbhA== 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=tWIjjc0dlTORrD9pEbMyPGs738Qrd2R9BX/y33KGt1I=; b=r+JB6yMx264ZVPpDopLyM8bVUcQKueScO6Psgr850JrmHgx46mFd3LA/XSrkosOi0u0kPVBY3z5+3WhAnl3R58TnUKC3wDn8xQ1Zic22kCgJoQt2bj7YUpk3E7nnv4JQTRSXwhXRvUwmAywrtStx8FAiNqKh8qVbB9Asve+PbeNvaLn6bhjjoGTVctOfv1kU/xYS89nGmW4973rwhOrBY8szMImMo2Ipb8IZ5COZakUE3cNYL7U9d/BVcZ573lWHp2XgCNfZ1uG48DbctVuzl+zUwnS/fw40M3ADtZxVqFpVS03RjDbMrgP+UqfOWz7QDiCwMoOuqhhfYTuvsUQyVg== Received: from BN9PR12MB5307.namprd12.prod.outlook.com (2603:10b6:408:104::5) by BN9PR12MB5097.namprd12.prod.outlook.com (2603:10b6:408:136::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Wed, 12 May 2021 01:54:37 +0000 Received: from BN9PR12MB5307.namprd12.prod.outlook.com ([fe80::e82b:c10a:e822:a78b]) by BN9PR12MB5307.namprd12.prod.outlook.com ([fe80::e82b:c10a:e822:a78b%4]) with mapi id 15.20.4129.025; Wed, 12 May 2021 01:54:37 +0000 From: Li Zhang To: "Xueming(Steven) Li" CC: Luca Boccassi , Slava Ovsiienko , dpdk stable , "Jiawei(Jonny) Wang" Thread-Topic: patch 'net/mlx5: fix flow actions index in cache' has been queued to stable release 20.11.2 Thread-Index: AQHXRbdvvICuwUMf2UOEH2DkECbX+6rfF/bw Date: Wed, 12 May 2021 01:54:36 +0000 Message-ID: References: <20210510160258.30982-1-xuemingl@nvidia.com> <20210510160258.30982-102-xuemingl@nvidia.com> In-Reply-To: <20210510160258.30982-102-xuemingl@nvidia.com> Accept-Language: zh-CN, 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: [139.227.253.12] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4cfc9c76-5dad-4130-1d6c-08d914e8e5f2 x-ms-traffictypediagnostic: BN9PR12MB5097: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OWDOcbArz8ozvypNbbjVwV6Cugs775rEp6ErlCSqky8bwacfdMVmAHtpA+Eqcd5qaZWGkEH3ThQdPv0oReNNp5NCTG3GCKAhtj9rt+DCsiWpJjKzvtd9c0FaVxecb767bB+I8BmJ3UBXT9+bPGw+HFwzS6iF+grm/O/4kdHFhIYDfoFiY7LVukdswX5wR2AhQW7b00dSQcMTAL9Ag4NdAq66v9wutf46jrA/ViYmfDT2qnv5910gktIsjJMqCOzKeSiD/lJNWF5KfqHPY/oLyAIn4g/mdazEr5WAerFSwPBHvIZs/IKJy0fpDXFUL6M2/96pHxq23Suv+b2bOiT1XOyYtLlJq+q2H47Y36auU8ynfecWgzHBFD52W3shlmedrJXSV/4/944Y+VFo15xTWXLXgwyTrHxkBh0k3Z4068igXrAggV1gOU64oUQH7d7XU0glGDcT75MzpT7W+/hFoHp3q/11Z4QEm1ZXxDowjrygJg2UoSVvjPd9fjJYR0KUAOed4obd/SxWTAEqAVxzIzwIZlAqCKINA3Pdw2eQjEc5zyqTVsOPqZ6dfLZkahPQFkPTRB8L8HVf5VfmSsFTSSO0XcgoftsFpqoKl7Uw8pvhkrxIB1XfzOwU4ZnUt7cU8rZ6dYHT46du6ywRfiS0An0Q53s+46vmqQdUAc/ISiKUlZSq87ZTmvVaLx1RDD3hcOjAFDCzPvb/kHXQenDwMbe6tyRLRnIwNIx85jfvA6c= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN9PR12MB5307.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(136003)(366004)(376002)(346002)(6862004)(26005)(186003)(8936002)(54906003)(122000001)(4326008)(316002)(38100700002)(107886003)(478600001)(53546011)(6636002)(55016002)(83380400001)(64756008)(2906002)(66446008)(52536014)(66476007)(966005)(66946007)(66556008)(86362001)(76116006)(71200400001)(7696005)(9686003)(5660300002)(33656002)(6506007)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?FEBjrhAZHGNJ6OIVLbsepNQ5YEc8X31bWt+iOBufqvPNSu3ZQqDsLMIrX8T2?= =?us-ascii?Q?1qFe6p1TEvxocWWnAndRbHGEZZzS3aDc3CK28OD5c2izKWqi+u8acWnvp2Ub?= =?us-ascii?Q?uVhy2Vd3f/QSo1QUe8Lqe8wbl5Mf0ANaeTf5IEHx5QHkqixoL+6NcY7BAnLx?= =?us-ascii?Q?5RR3fEAbSu+xPqiKGG79E8OOqJm7fdo1Um5idVrDETAQu12rFKE1tZ0s8ZEB?= =?us-ascii?Q?Ei5yfaBIdHw1fvgyzw8rMmsLOELYALq3Ysntq3tyGqRxv0H7vh13Y2Jvu1TW?= =?us-ascii?Q?feKJzYN+7YDCzBrHLP8Pq3WCJiznQkONZ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muB7pm9IeHMoMMbWtTzS0aN1lCRwef/PfS9y6SFJhvDvpxuZGv1A2Ls?= =?us-ascii?Q?qNsa8LYpGojkSLDKRqIV9WOxpX3jKWDHRUvg2R8dEbKxlMxYGQ9XQFE9Ml0v?= =?us-ascii?Q?3oE2cHk60p3dL0CnZzi/nSZu?= 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: BN9PR12MB5307.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cfc9c76-5dad-4130-1d6c-08d914e8e5f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2021 01:54:37.0094 (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: v3ai/8Yha5hiLc84x3t2y4ESSk+W1l/GFAG1/yzZirhHN216kfsFdbYJFjQc6EnQ X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5097 Subject: Re: [dpdk-stable] patch 'net/mlx5: fix flow actions index in cache' has been queued to stable release 20.11.2 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" Go it and Thanks Steven. Regards, Li Zhang > -----Original Message----- > From: Xueming(Steven) Li > Sent: Tuesday, May 11, 2021 12:01 AM > To: Li Zhang > Cc: Luca Boccassi ; Slava Ovsiienko > ; dpdk stable > Subject: patch 'net/mlx5: fix flow actions index in cache' has been queue= d to > stable release 20.11.2 >=20 > Hi, >=20 > FYI, your patch has been queued to stable release 20.11.2 >=20 > Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. > It will be pushed if I get no objections before 05/12/21. So please shout= if > anyone has objections. >=20 > Also note that after the patch there's a diff of the upstream commit vs t= he > patch applied to the branch. This will indicate if there was any rebasing > needed to apply to the stable branch. If there were code changes for reba= sing > (ie: not only metadata diffs), please double check that the rebase was co= rrectly > done. >=20 > Queued patches are on a temporary branch at: > https://github.com/steevenlee/dpdk >=20 > This queued commit can be viewed at: > https://github.com/steevenlee/dpdk/commit/229101313919b163516238b0d8 > 58dba9ff12a654 >=20 > Thanks. >=20 > Xueming Li >=20 > --- > From 229101313919b163516238b0d858dba9ff12a654 Mon Sep 17 00:00:00 > 2001 > From: Li Zhang > Date: Tue, 16 Mar 2021 14:05:17 +0200 > Subject: [PATCH] net/mlx5: fix flow actions index in cache > Cc: Luca Boccassi >=20 > [ upstream commit d406aba8f1e8568c1bf0b1aad1d5756cead5df21 ] >=20 > When using port id or push VLAN action index to find the action in cache,= it > will fail to find actions. > The root cause is the index is not saved in cache when creating the port = id > action or push vlan action. > To fix these issues, update the index in cache when creating. >=20 > Fixes: 0fd5f82aaa07 ("net/mlx5: make port ID action cache thread safe") > Fixes: 3422af2af2e4 ("net/mlx5: make push VLAN action cache thread safe") >=20 > Signed-off-by: Li Zhang > Acked-by: Viacheslav Ovsiienko > --- > drivers/net/mlx5/mlx5_flow_dv.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/net/mlx5/mlx5_flow_dv.c > b/drivers/net/mlx5/mlx5_flow_dv.c index 353a8df24c..347c3a1c13 100644 > --- a/drivers/net/mlx5/mlx5_flow_dv.c > +++ b/drivers/net/mlx5/mlx5_flow_dv.c > @@ -3039,6 +3039,7 @@ flow_dv_port_id_create_cb(struct mlx5_cache_list > *list, > "cannot create action"); > return NULL; > } > + cache->idx =3D idx; > return &cache->entry; > } >=20 > @@ -3130,6 +3131,7 @@ flow_dv_push_vlan_create_cb(struct > mlx5_cache_list *list, > "cannot create push vlan action"); > return NULL; > } > + cache->idx =3D idx; > return &cache->entry; > } >=20 > -- > 2.25.1 >=20 > --- > Diff of the applied patch vs upstream commit (please double-check if no= n- > empty: > --- > --- - 2021-05-10 23:59:29.260567300 +0800 > +++ 0103-net-mlx5-fix-flow-actions-index-in-cache.patch 2021-05-10 > 23:59:26.480000000 +0800 > @@ -1 +1 @@ > -From d406aba8f1e8568c1bf0b1aad1d5756cead5df21 Mon Sep 17 00:00:00 > 2001 > +From 229101313919b163516238b0d858dba9ff12a654 Mon Sep 17 00:00:00 > 2001 > @@ -4,0 +5,3 @@ > +Cc: Luca Boccassi > + > +[ upstream commit d406aba8f1e8568c1bf0b1aad1d5756cead5df21 ] > @@ -14 +16,0 @@ > -Cc: stable@dpdk.org > @@ -23 +25 @@ > -index 1a74d5ac2b..23e5849783 100644 > +index 353a8df24c..347c3a1c13 100644 > @@ -26 +28 @@ > -@@ -3612,6 +3612,7 @@ flow_dv_port_id_create_cb(struct mlx5_cache_list > *list, > +@@ -3039,6 +3039,7 @@ flow_dv_port_id_create_cb(struct mlx5_cache_list > +*list, > @@ -34 +36 @@ > -@@ -3703,6 +3704,7 @@ flow_dv_push_vlan_create_cb(struct > mlx5_cache_list *list, > +@@ -3130,6 +3131,7 @@ flow_dv_push_vlan_create_cb(struct > +mlx5_cache_list *list,