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 46EA4A0A0E for ; Thu, 13 May 2021 11:55:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2FDA8410FD; Thu, 13 May 2021 11:55:52 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2078.outbound.protection.outlook.com [40.107.220.78]) by mails.dpdk.org (Postfix) with ESMTP id BD47F4003F; Thu, 13 May 2021 11:55:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ca7uzrdUoT36EbGJTx4vrrfTiiuC0L+xKucBRHnPcbzVAIjhwWuSGcVxgEAhQMUg5lYQkLkuIfIaFmM5HHR+xAce25ZIQpDI8U9/cJHLJc03/pPljCy42M07ge0qg/tKIiwNSUI54sBJNNckw2t0Q6HnweuRtYekJSwoRg9KC7/UG8KB2xKU4z8zwK59oyemLBXfa1YE5HPgT5wdFRrnyExA9gTbNQ+/HYSNWWmDScMi1RxBKAV2AI3vhQDNuB+QwqUPSISS1oK9Ha/sEzt5C6kGg25wJqlZfgEj1LydLs1YsEr0a9QKfwWo6AbBBbDIUfIByepKiInsj3eQ8x4Xcg== 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=C5dJcPnmr3zjceXB6r6UQv27gVlh94GUrBK2uOgOVI8=; b=k80XEdXbTHwPDrh+18BpnNt57SkoZO/XAL+qPLHh/rBBYByiPbckoILBGvxs5azUo3VZ35Svbov4NGVyxV9RXLXI0S+hbTlFK0I/7lloJr6QSsfC29F82AWzCo4QxrO+0K+en5ynwmMw6ghm6DvHs/2EOX+4Ya2YQgUF41lQEtFVFIgu9wt2eiYzszQAUIQysqa/mAHIp5NGdGHTK8TgFzx4UftUmm3E4pXNoFQXO9zHXeXq4tYWociKH+K76KEKLkYbqfvrl20AhaCOxCjp36K0XuTXw8s3rSqN1e+U20fTQvZdIuZpQ8vFoQcAe4PmP6wor7UnU6GknGfwBdqKFg== 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=C5dJcPnmr3zjceXB6r6UQv27gVlh94GUrBK2uOgOVI8=; b=oklE11VzYHFTMnZ5ohHBvH+ei1HjFIzj5dwJMXirvlINybTAZWyXOe5c4MQ1BvfyslIMYE3c0egnkav68d49nNivqPQDWYHK3/qrHcQ59C9h3xsDIq11jKoJ//kcHX7/tbMXqxwKHNy4NUoeEmdtjD3IolNnDEUPp4f2a/JMtw1zh+rB5kxNsmycVaZHaBnDIFOF1a8bAlYQJZkUaBV3Y9sqwe6xg1Q78FESM9h/ThlCxSQtXiovuDcAoQjMJCZV0zNczkOEYq5FFUzR+WgKPQWd7cMpi0Ko0UCzHhj3jikERHOrHTLvUfMTjtnBy4oinnBa+JhtEJ6KNu+d3+VP8A== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM6PR12MB5518.namprd12.prod.outlook.com (2603:10b6:5:1b9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Thu, 13 May 2021 09:55:48 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4%6]) with mapi id 15.20.4108.031; Thu, 13 May 2021 09:55:48 +0000 From: Matan Azrad To: Suanming Mou , Slava Ovsiienko CC: Raslan Darawsheh , "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix counter offset detection Thread-Index: AQHXR87EJ8OoebMKU0KszQ/YiqFDh6rhLBow Date: Thu, 13 May 2021 09:55:48 +0000 Message-ID: References: <20210513080515.10644-1-suanmingm@nvidia.com> In-Reply-To: <20210513080515.10644-1-suanmingm@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: [79.178.58.116] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d2bce092-e7f8-4935-f53d-08d915f548e8 x-ms-traffictypediagnostic: DM6PR12MB5518: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cIyDh2Ahqg/Wo3yfiI+5W0fhmrumDGMd1aayV+V+R0gNhU8FhxUn0jbNPb+X0V8xttu7WXEMJ0EDC0TRc/Iy6v4C8MizgPN0Td0Gj+xKz7tDjeLqy4RGJtDK00OIxOVTZZhwAFRKeFGCCHDjaC7+ztQLDOtV9k7FKbEIyHIPLccDFDaj4KB/+5n0Tiu1hh5S0M8DhbITqj486tt0hlwbD1t8qKCuSmLTArjdzxD0vuFqqYFKAztygjrboQR5KHTR6E1r7vD3CUFYHGgtlAaAT5hBcY8oweSbfMewwu0fIrRD85LnTNfUcXS62BqAs06FDOLHhpdyx6HnlfTdj7m7hevVA9L47Dh0dW0/80TnYLwop/aUsorA3jes6Zrik4KcWqNClaEsgDYFb2vRNtbbSzbL1RHu2lH3iOSIVIhlMDu7zwRtAN+NydWEpcbqP7dZIr6arLs14JZeJ+Op6gdj8MGsdDMT8MmOZmnC1eVcImUfAK5tWkLhctZphO/ikE1M4rrYwfrbS+S6pvSJwyJixDekOrnlb83ikg6BG9oZ4AxTnLaNVwEWLUW/9QHYm5s12wuWKlqLmXx5LrLve0N5lxTZMMRrWOSEF9uUgUclFnQ= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(366004)(396003)(346002)(376002)(136003)(66446008)(4744005)(7696005)(66476007)(64756008)(186003)(66946007)(66556008)(110136005)(122000001)(2906002)(8936002)(316002)(52536014)(450100002)(9686003)(478600001)(76116006)(55016002)(5660300002)(38100700002)(33656002)(6636002)(8676002)(4326008)(26005)(54906003)(86362001)(6506007)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?djTfUNFggzfYiKEnCeHSsQpY2ZiWnMev564SfPSDQJTGh4s0l4Z/YcpuJ4cR?= =?us-ascii?Q?j5Vl5t7o7kFMgi+sWN/xdQ8E1SJagKoYIGg1o6Z/w+ua1UGUYNHJ859+PU27?= =?us-ascii?Q?fSnsYaTkcimUOa3ITgEeGuWgDv6DV+g9xXLohWbxRHw6Zc4vdFBGhOVZI6MW?= =?us-ascii?Q?XxN5iqTXgaNcLY/AFSu6fIAiu1+K6gz27n4VsAEbaUBOOlOMcSapj6OA4tp7?= =?us-ascii?Q?oj0udFXqRkRxDz9pBS99a1m/64P3SA1CK6I2hrTiVYKGFzUS3DQkMCIHltbb?= =?us-ascii?Q?yX7U4xp1nqJ/OhZz7ovekJGPIYdQUu5olUSv1lPXPch4hZwrlhXZZOXEyAtI?= =?us-ascii?Q?N3JY6XtaPbi3OeUmATCVs6k0ZZfbszD5ivnyjFe6jBWs/R3/Um9b6yyA1/Ij?= =?us-ascii?Q?GUU+YDA4M2EEnu0vZBWKvLRDtFCJykiJZLnOrKLJJtQumdnadrTBs9RymEX+?= =?us-ascii?Q?SFDulkvP71KK2rzbblC44KboZH5dR8Wv2LArJ8j2w9/bMf8xNZ7d5TvOjw6i?= =?us-ascii?Q?sty6fKTo7aZAFgICJcFf2L4XohL3LHufPr3H0F4VByKVSEjPlKcRpy9lVdrT?= =?us-ascii?Q?y3XVT4e1tTMXv8vZqKbHrvS2VyysKx6AKZ64in9ZRVxoC8Wmsl3oE8xRP1wH?= =?us-ascii?Q?6bamgLNXQ6ei26ZzCetb+7GWeVy0z/tTSmwmfvIPEKXPZ5mPD0FGmWA5NIE+?= =?us-ascii?Q?LQsRuUM8neqrPssQpG5Hii36evAHExw74DlNIcpTx3NhRrqfpEC1USHithbB?= =?us-ascii?Q?Fj9uNjlou6T2R8VYAe4P0acllAJ3EwlQT0YAFjhNGnhXyqeRHwR4HjhuUeCW?= =?us-ascii?Q?XBnEbWKNiFab3gqhfnBAd9nQbrFQNVNd8mud5OgI56xSqVnKaT1pl89dQYOR?= =?us-ascii?Q?14o37XdIWVcc+9RGXALfwP03QE8srbw/re+mNCQMGJCuNaa8tcWV+P4NROdU?= =?us-ascii?Q?l82gooFSS7c9BD6OQT90jfVzGzljhXzLW03LMMyZ0LHuMD9Y4jBkMvj6dzZt?= =?us-ascii?Q?p6F8b7Bnxgexe1nEd9hpf8QDDLxuMnBJ0WD2jpaiMQxK1CUl1MHwJLE1ItEo?= =?us-ascii?Q?ZoRwM9oplAySijQFfGx55SQvyGhWomvspsTg2EGbevn9i/J+pZ91/R3fIwFd?= =?us-ascii?Q?viaTq/tYUxLxBFrDgKsQZJdy1S7499p3qT7cQiiDy8PoF9QakR++ewu9W9JU?= =?us-ascii?Q?qj7oDtk4n/hT2nU4+PRs4SQYVCoAR6eWndLoFbXRppeWgoYbRb4EqpFfddVV?= =?us-ascii?Q?/hOhnPL9DxPPuGueT34BaZNgpQodnD06UFYY0vNq5ywmBw1uXZDLxPnxMiwM?= =?us-ascii?Q?WhTFMcJcMRjqxxFFQ7PZSoCF?= 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: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2bce092-e7f8-4935-f53d-08d915f548e8 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2021 09:55:48.2251 (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: dgY5DTL1AVVOa3LzrCMM77fHUycx4eznPGsB8iH7bLK9NDfCTjn5v1MTCGR11ozmdonsdePyOwdXE6QOl8fUZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB5518 Subject: Re: [dpdk-stable] [PATCH] net/mlx5: fix counter offset detection 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" From: Suanming Mou > Currently, the counter offset support is discovered by creating the rule = with > invalid offset counter and drop action in root table. If the rule creatio= n fails > with EINVAL errno, that mean counter offset is not supported in root tabl= e. >=20 > However, drop action may not be supported in some rdma-core version in > root table. In this case, the discover code will not work properly. >=20 > This commits changes flow attribute to egress. That removes all the extra > fate actions in the flow to avoid any unsupported fate actions make the > discover code fail time to time. >=20 > Fixes: 994829e695c0 ("net/mlx5: remove single counter container") > Cc: stable@dpdk.org >=20 > Signed-off-by: Suanming Mou Acked-by: Matan Azrad