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 AD3B3A054F; Tue, 16 Mar 2021 13:21:29 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 390934069F; Tue, 16 Mar 2021 13:21:29 +0100 (CET) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on2062.outbound.protection.outlook.com [40.107.100.62]) by mails.dpdk.org (Postfix) with ESMTP id 84D4D4003D; Tue, 16 Mar 2021 13:21:27 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aCMwA519eB06qJ+rGu5gLiU7PK6nK7HKDWLUNl1CJyqruMj8/E4WY4mxqOxGYnIrp855XRGvsBb8BGF7wB/3ZQl5Yg3tlfeh9iimJ/wCZc2RXJauc21RTRYnSiG5VoQQyJ1bkcSUWn/iY0nSl9mqq/lD6anaYHt8zOpzlY3WxERDbt+D+BiMRhR/fGxjoWufEr4s95zx1P45ucKmTpI7NmROW7+aN6CQz2dkfQGRiwGii2aTCg1jmN+nH+y93Q0V7B4j6RlPcvKjmTNWMu0gqzcU4gP7pUn03vc5ppAkSNOg/rDgLa/yg2nuwKhTbwJdnnUWLQbtwfKR9lJ2S16bsg== 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=V57d5uOOe5ur/tFiOzey8itgkSSHkqn/8FIP1tS+SUg=; b=g6B2hJEl2YkfLt9MYkwVKoQctskYxLw+v3wgAfTC0UH57OIc+XODjaRAiGaOenXoK2of9I7nPmhq57fZgb+kckDJ0rWkCAnxR/i8IFUKLmrkdjc0r0u0zSItd11FPWJAQ8XRFMsDQL26UjtE8uP9LPUjuVz/kct5Q5T3wqNmwf5R/zRxBRf6R+0697B0jylA7SkjFNuwdwFeKUricd4+SAfkhkHM8mu2Y2zkurgl6Efj8zXsGRIoF0dNfV1ThyTOOxSrjPSv7eK2cbHdqb6ArPx3B9tCMz6gUe/btb8kYPRrg4E6LV0aCDFbppwLIEqo2V0lnHjnBTCXbbTKTTrpZg== 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=V57d5uOOe5ur/tFiOzey8itgkSSHkqn/8FIP1tS+SUg=; b=dnBx+DRgtY72quE+Bf4ZgXQX2j31093SNYq4rxD2BJF7+MRVC8QIz2tOhYJhEUFFmYlR57GjBopWC1s7CQn6K9lrKlk2xsmVzYlRostRuuqyPZMcHco2vM96dgswCfTNvCJmTjgIvV2a6YrB00hGMih+MgiJvlzIcdxheM2FT58a2zgRDBGPQalREZAzl1Ghl3WJjll/iImwnGKVHsqfXFAQcBiiluzcdUycCmcRxXPTZClxX6J1cHSdn66oApgspZYFHYuscQnBozxnHv++681jXJ59nXQ66wkAYfOb5GQjrOA1tQSeSuFpmd23sOhVcmA1gvv004Ch75WtJNpPow== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM5PR1201MB0170.namprd12.prod.outlook.com (2603:10b6:4:59::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.32; Tue, 16 Mar 2021 12:21:26 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::20f7:11fc:9d46:9258]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::20f7:11fc:9d46:9258%6]) with mapi id 15.20.3933.032; Tue, 16 Mar 2021 12:21:26 +0000 From: Slava Ovsiienko To: Li Zhang , "dev@dpdk.org" , Ori Kam , Matan Azrad , Suanming Mou CC: NBU-Contact-Thomas Monjalon , Raslan Darawsheh , "stable@dpdk.org" Thread-Topic: [PATCH v1 1/1] net/mlx5: fix port id / push VLAN actions index incorrect Thread-Index: AQHXGlypj+TiJjIKSkW6MtAlin/3vqqGiOuA Date: Tue, 16 Mar 2021 12:21:25 +0000 Message-ID: References: <20210316120517.683168-1-lizh@nvidia.com> In-Reply-To: <20210316120517.683168-1-lizh@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: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6168fe51-3076-4a79-84b4-08d8e8760506 x-ms-traffictypediagnostic: DM5PR1201MB0170: 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:6108; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xSvWSAfGjIG4th32V82eGgyDzg3LxFb3V1Bjt51+2AUa2Ku6MeHOYmNlCcP1vLGvHGP3ZLlzi28V+8G5LHPcp1wbNY+Pb5Vx2FhxHFGSqiWY6MjwL2x7vXZYb5410FF832l5b1htQ6A3WTdva8iGZ0GScLqQVEEX+2j+x05l+WRP8ieTP6piZuSLBNa2xqf+eUD0gKNLVH9tmXCWRFOo0UhfK3pey4xthvAw9fawPkWs6GFNY6ltvOoIa67vE0IbbR0jlqJnsRr+H/B8aSoWj/qj9h7PF15YlF+MPlgL81Drr20cTSOad0uafsllqF4OinyPFz26Yh/q4NX+owyuqv7RevHsaMCtjAI7xQoqqJa9vMOjOivSo/LLhmgrTV98RbCT4XDn5XAImlHxxD2PMt/gEEr6/ZCFHt5sdXVyHh9vCfjlYXpm8yX1KbmJTca+XWpnMpz555rTio7qod8NG4FY44/V5BTJeL6Ysah8Zf9ASYFpR+po/J+eROIeNDkHyWJ4jf4lkQRip2XJ3jqZiufZqc7tO4DdDraCCWwkfICCF6mWaE6ZBpV1ogAqs/AU 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)(376002)(136003)(346002)(39860400002)(366004)(396003)(8676002)(53546011)(55016002)(5660300002)(54906003)(7696005)(66476007)(6636002)(66946007)(8936002)(478600001)(33656002)(6506007)(9686003)(66556008)(71200400001)(66446008)(83380400001)(316002)(52536014)(2906002)(76116006)(186003)(110136005)(4326008)(26005)(64756008)(4744005)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?OedH+3gTy6aZZdoR3e4WBJx3bYGPYBgjij9HT/gxIrL9KuWm+hvA3zkqzQoM?= =?us-ascii?Q?Vgbz3xkjV1Y+cQWPJmNlQT8DRicfRvxXHHlx8HCPgfpp3+nAq2mxlb6xqObu?= =?us-ascii?Q?yW+lDfb62ydQsbLeLbukXZPp3GiInnV02R5bEtDjJsjVUh8uS4xyP5ZKs3xF?= =?us-ascii?Q?Pr94qZnvufSXLC62EVLPWF8p3D6aqYCMTAkedfPFcz5aUJbmY+RrKley7KJF?= =?us-ascii?Q?UHE76+BKPVCLRq5ABGFKtrYO0HDduJh/h4oGSW4DjSy1MFC8lhIMf/JoryoB?= =?us-ascii?Q?rCz7PhFwjaidm8OeF1UPkbXMXfaKyHpHlgyCTMtOx0/XOwt9fyjyYrix1Y5r?= =?us-ascii?Q?qD5TaBUUwIteRLexSl1akBp1wjj26YPqA+DAW6S1VMk6ae6eFCcoW//aAUJc?= =?us-ascii?Q?Vq3QU+DCio/ZjNzeU5o6/KyQ4CtTeXjor7NIT2wOB3xGJ3xL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/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: 6168fe51-3076-4a79-84b4-08d8e8760506 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Mar 2021 12:21:25.9274 (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: FNpKWDc0Md+uOkRZqzgDYbxrEUsp0VKm6tDuWICFiMteyGOSqKr8M1AOJ/e0gEOBX5TU4ItwZrUqJxe1O7kgyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0170 Subject: Re: [dpdk-dev] [PATCH v1 1/1] net/mlx5: fix port id / push VLAN actions index incorrect X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" > -----Original Message----- > From: Li Zhang > Sent: Tuesday, March 16, 2021 14:05 > To: dev@dpdk.org; Ori Kam ; Slava Ovsiienko > ; Matan Azrad ; Suanming > Mou > Cc: NBU-Contact-Thomas Monjalon ; Raslan > Darawsheh ; stable@dpdk.org > Subject: [PATCH v1 1/1] net/mlx5: fix port id / push VLAN actions index > incorrect >=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: 0fd5f82aaa0 ("net/mlx5: make port ID action cache thread safe") > Fixes: 3422af2af2e ("net/mlx5: make push VLAN action cache thread safe") > Cc: stable@dpdk.org >=20 > Signed-off-by: Li Zhang Acked-by: Viacheslav Ovsiienko