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 D5394A0C44 for ; Wed, 12 May 2021 13:54:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CCA09410E3; Wed, 12 May 2021 13:54:28 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2074.outbound.protection.outlook.com [40.107.223.74]) by mails.dpdk.org (Postfix) with ESMTP id 3A4914003E; Wed, 12 May 2021 13:54:26 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hmnvs87jScrDxgdugw6q2hDg1ELprnEx51OoHLh9VvgIop+dkYKkg+eL+7nY+riPg1lOytOcdM2maFt0ObPObFgHH5Qotqo4Ug80KVuy57+NGYRay40GdAKTsHiTcNGmHXgYR9PlksI4O6nbvDWFSPIDscwjrMEyfScHE9d4UaFVcdSDIgeJQwV2iaBXYEWyAVoOdDT3Yx3ETL/vuWIfrolxYpfueVYVriyeBrnIfPzIlIRlDr8R550ZlbnS7/DOHw/7HOgPuSaCIiv3yXKGl6da00npchPXo2EzgVMbOtEVmpZezRs4AQVawNVxSMk/pdj07u/8ms7M1Db7Muu6iQ== 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=Ik5sYUeouJZav/v51PGaaeMfGXD5A1vJi4bQnxmU0yU=; b=ZU3jdlTqnbriziqVPFKz9O5mzPRABxDtHo9z556AlND8vOx6yfzexAVl19w0yRJVFrVr2UTuk1wNX54IIZKOj7Py5SK0tcSAWUqqwXrsDos5LwS5Rw+jdwUm/+iH5pJe53ioiGMvCq+pXc8v+fwYpVKAA9RlPBugR/6GkBbzoIkWNB6Yrta06lGyudewsz132jVPanyig0oTYpTmePY309wqxMBFg6JPP04QkTZPxgBYe5bkIgBKEPPgiH7zd+BrfiFw3gX9OJ4Rtx4oACLGFZNMiLT+UO70iJ7EGyqaNbLwtZgiblWaUVtApx9cIBjH3tEKltv8kNXBX+G0XwTNCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); 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=Ik5sYUeouJZav/v51PGaaeMfGXD5A1vJi4bQnxmU0yU=; b=TRbgNQsX+A3gA3Z1AoeXjDCKJe3yweQP8XEgfboleydQ1bgKJdWy2EJI7uWe4qLDOJiyiPLk5IWLlyCNlHd46or1PRfXJSCaJwk5MC+ne/jWQdOTmSwLws0541zfmoVpqGAhu6rzvFIaXvgSKriD1cJPMODyLDVJ2F+hF/KpSpR06sYowEVfdWHs6jvZ7ios0695T+6orUh3Ze8zkYvJ71n+iaxndaIUdNqgC/VGTkaDBE448Q6cc/h1t5m+v/QsBWO5zZv/ttJ3zqvToiBrMtkBRbDMC/LTpaVmsBFKpTKYn/fMpD9fHpjwKw8uX1gbj93ejHupxf91q6gVSzwgsw== Received: from BN6PR11CA0007.namprd11.prod.outlook.com (2603:10b6:405:2::17) by DM6PR12MB4731.namprd12.prod.outlook.com (2603:10b6:5:35::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Wed, 12 May 2021 11:54:25 +0000 Received: from BN8NAM11FT059.eop-nam11.prod.protection.outlook.com (2603:10b6:405:2:cafe::39) by BN6PR11CA0007.outlook.office365.com (2603:10b6:405:2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.50 via Frontend Transport; Wed, 12 May 2021 11:54:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT059.mail.protection.outlook.com (10.13.177.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4129.25 via Frontend Transport; Wed, 12 May 2021 11:54:24 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 12 May 2021 11:54:21 +0000 From: Jiawei Wang To: , , , , , Shahaf Shuler , Dekel Peled CC: , , Date: Wed, 12 May 2021 14:52:36 +0300 Message-ID: <20210512115239.12783-1-jiaweiw@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20210511042407.5742-1-jiaweiw@nvidia.com> References: <20210511042407.5742-1-jiaweiw@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 99c70681-bd69-4828-7f6e-08d9153cb04b X-MS-TrafficTypeDiagnostic: DM6PR12MB4731: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GH6gzg7IGfB/oo9bzljyF1Vg+lhGM5lU9nIVHFHDFl82E6VhMu/t0xUekfPNc1oID6pSZuZnFVf5Y8QNF7WgQpmzacaTLfuJ8ne/pkzOxNEpeCn/GqqeAVi3jdtv9bLxuc+r+j6w5EnZgd0YsA33D32QXZBvt644blEpJNAdiIAFIwOsrMAlaOFSywhBrRZUEXxR5Ftc39tpbTOeZaycrXr5RjppJn1cddYkr9s+JidxIJvZg5dlwsw/soVGaMMDC3fUt4z5cS9G/NUR9ULAmA4abhPDxAyoUeiByRoZWAYs68KgrCG6LS8rr2zZMaYphyOSyYnK1WDc41Hwtv7uTxW5umXbPktJZPP9RkFsYMZ7iYqfEtPpiH/SIaFj9rSwBNoWDmxkSAJmssXuFGz7UHfkVdw+YWrASccE+qPSEIVD+zqObaB5evdt9kG4pJR0zcV7VKbIA25kmcKQsxu1CPEE7MlSa56ttFgXmVvtKgYQ/YLsVi7M77Uv8Fcxrh/MBFrMcb4MiR9cg73glEazrQlRZL3rM1JX3zIxsvWvi/8PlcPxFHu+m3eVFuWUvxyG+OyT12hRFs8WX4AOWq/8CDh4vlqVf+kjP4e/aMLOpG3I44JU2IddGQqDaSoIdo1Q0pfmGpKZmDjti1gsU/A/ZA== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(396003)(39860400002)(136003)(346002)(376002)(46966006)(36840700001)(2906002)(36906005)(316002)(70586007)(478600001)(36860700001)(186003)(5660300002)(36756003)(26005)(16526019)(82310400003)(54906003)(70206006)(110136005)(8936002)(356005)(47076005)(7636003)(4326008)(6286002)(82740400003)(6666004)(7696005)(86362001)(426003)(6636002)(336012)(83380400001)(2616005)(8676002)(55016002)(1076003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2021 11:54:24.7855 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 99c70681-bd69-4828-7f6e-08d9153cb04b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT059.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4731 Subject: [dpdk-stable] [PATCH v2 1/2] net/mlx5: fix age action in transfer root group 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" Current the ASO age action was supported in the non-root table, and the counter based age action was be used in the root table. The FDB table skips group 0 on MLX5 PMD by adding implicit rule that jump to non-root table, but PMD code use the original group value for checking. This patch adds the transfer checking for ASO age action. Fixes: f9bc5274a6f9 ("net/mlx5: allow age modes combination") Cc: stable@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_flow_dv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 70e8d0b113..1e6cc8d01f 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -12615,7 +12615,7 @@ flow_dv_translate(struct rte_eth_dev *dev, if ((non_shared_age && count && !count->shared) || !(priv->sh->flow_hit_aso_en && - attr->group)) { + (attr->group || attr->transfer))) { /* Creates age by counters. */ cnt_act = flow_dv_prepare_counter (dev, dev_flow, -- 2.18.1