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 D8944A0C44; Wed, 12 May 2021 14:10:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB5B4410DF; Wed, 12 May 2021 14:10:11 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2088.outbound.protection.outlook.com [40.107.93.88]) by mails.dpdk.org (Postfix) with ESMTP id 075494003E; Wed, 12 May 2021 14:10:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I6K40CLF8NNYmi36uBmgqd//WN3vwK/0KIOZUpXv9zcX9rbK68u05sfeZbR0CMgNENmsnT+WHy9famUNQtaULIudUNfgGdhLnu4tcv1sPHLoydeOjssL1htoz21Kbj5oeildJXAD4tlq3RlFX1Qb2AMN+F4+635vfbkcb6mbl3NB49SfNjfMoCUMY4lvp3AFcO5mR5mNStBzB+u371dCIZriKY+jTIx1KTeWAR428QnlG8SUkj9rXa1oWCwVuvYK6wYJx3kfsm7hgkxIyP8xzyj2/Nbgq7oyOPdiKkUpGWih8KBOIo3ZMfKskFThKYHKk4uRZiMvQwxF16OuA9rNHA== 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=TJ5tariRZ6QavpTg7PFA5lMj9QrI61cGUpm22Haa9wvO/xHlWipeQO2CS3+Xw1EuM5YywfpjL1IlgJq1JwONtV9i7ryOpwyJnqJMT85xd4HAkO+ZGCNumPl8PP4t5BqbA/o5qiu9XxSeeynwa4ZAXHql1VdMRBqUiq8LznkW+YuInhu/MtFVoPHQvmqF2OVdAGuGDA2J8hdb8M+Mdov0W6tVVkKsjPYSuyvsLLb0OK5YhR5SwYui5h3MQ/Yapwuw2zE3pBSts/yHjF8di6fUfRmHkFrZpbQiZmcxWS81O8Gf49KnJ6kCt18MFMl9F0StB48P2TntfFmrV8nnh02luQ== 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=aD3u+Dof9vYGlIjY3HCobu9Kh5tWkEysOp/Diwu3wO++Yhlfvwosk10+Z1ayoNzXTR+VxLLHaRAEGP6Pmu0nE3I5UZX5lP3usQOJyWHICW+NcePuzJyMfigITrzZLUk0nyqADd9AeCLDZZDpyXDwC+CuP+3Fg39tAmyWsARdJEQqoGLFDAXGq1iLhHlr9V2Ge81+2FyywJNNgn4ll+IANest/CVr1ZHpmCunaPxb3imCQ7nep1uo4FEcrx1eAVh0NapQClbtifiwq4MMBxs1NgDUJHcm1x9Ka05T+kN4PdngRBrS4ndLag0MOnYZngLDH9X7oXBStRCj3aP9vY4qdg== Received: from BN6PR18CA0003.namprd18.prod.outlook.com (2603:10b6:404:121::13) by BN6PR12MB1650.namprd12.prod.outlook.com (2603:10b6:405:3::19) 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 12:10:09 +0000 Received: from BN8NAM11FT061.eop-nam11.prod.protection.outlook.com (2603:10b6:404:121:cafe::de) by BN6PR18CA0003.outlook.office365.com (2603:10b6:404:121::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Wed, 12 May 2021 12:10:09 +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 BN8NAM11FT061.mail.protection.outlook.com (10.13.177.144) 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 12:10:09 +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 12:10:04 +0000 From: Jiawei Wang To: , , , , , Shahaf Shuler , Dekel Peled CC: , , Date: Wed, 12 May 2021 15:09:50 +0300 Message-ID: <20210512120951.14982-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: e3e5f7da-74c3-4263-2049-08d9153ee377 X-MS-TrafficTypeDiagnostic: BN6PR12MB1650: 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: NpdTZQ5Umczdi+sTonxtIW2vUu9rbZ1tMWoZiONumwGWFuXtXB6IBIGKvrP8vEd7TJisu3y456Eooms8B7TRtr/BXoJnBu3aELC9/wQ+bjxRn7BHbxhzR0k0dM3/R45aAT/ahsW73l9aWIvr8XoXUx68YZveEQXXyQbyg4UaICM66zlcdxeeeI5177oJrunNS7aS+xwRu0wu3tqUAfIq3/eToHUDKhvPo/Q/B+tBlZIDwgPnldGXfxKfrgiNyTswWI1CQ4sz5J7x+09W9vgXQ2mtKHIq/TbZQzz7/eRqEcvkKJBTwvORIRCN/xy9rKtZzJL7CPtfbZ4CvKDdcPvaI24y1LNkju2A8MkMxj6C+CVmwzZe3YGrLQxl4FpOH22FB9biV997lWujdluEbwCDESvrtpeQEnXs2pquly1AvJUSrdcvO3+nxt2KPBERUlJDPfmmzhc84gEvVz3FnW2To9y26BVBhPZZs2T64Eom2AKYjwTkj2O9yLLVhGiW756lRLL2SPdey+GQCqK+GEmXsS7XDhYcKTLV7WXTcPJNEncjVpa149Rfv4ep1itQ1tYWRPSonOp4ww0NRk/lGr5C1rJcYsLfvrcCgVnJGpRTGAa+mQJDzy7kHTrbfU7KTBR7RsPfOi55WB84BTcZ4EI56g== 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)(376002)(396003)(136003)(346002)(39860400002)(36840700001)(46966006)(70586007)(70206006)(6286002)(2616005)(55016002)(478600001)(7636003)(356005)(54906003)(83380400001)(36860700001)(82310400003)(26005)(82740400003)(47076005)(16526019)(110136005)(336012)(2906002)(7696005)(8936002)(1076003)(8676002)(5660300002)(6666004)(36906005)(426003)(6636002)(186003)(36756003)(4326008)(86362001)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2021 12:10:09.6307 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e3e5f7da-74c3-4263-2049-08d9153ee377 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: BN8NAM11FT061.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1650 Subject: [dpdk-dev] [PATCH v3 1/2] net/mlx5: fix age action in transfer root group 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" 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