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 4722D428F8 for ; Sun, 9 Apr 2023 17:29:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 418A54114A; Sun, 9 Apr 2023 17:29:28 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2086.outbound.protection.outlook.com [40.107.102.86]) by mails.dpdk.org (Postfix) with ESMTP id 20729410EE for ; Sun, 9 Apr 2023 17:29:26 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B3PwsIASLHujV2UYJBKKsWuXR9xNSOXdeMbOFY0jmq+qkUu7vGPyX0xlGFPdxOaUOJ7Mh0cI9wdqkbH98OcYOPSbzMo9vLNUDfoUDawUwCmqbeHK83k5kNp2prdGOWbHKTYGlX7oZRt0+47STONSQcHK4pk0RGQ1tH67WJwtogV8tXW7kfjG8bsPjiXZpRtFubF5VHam7rxVdG9ZlYtGMUODWjRKDFGTZ6R2cM2zlVNt/+H9bXIbbK9vkBx41p/9NpCpq6o7fPnMai474JWyKPrdAFeqLpveVcjPE4xR+c1X6cIEYO1Nz6fYBYEnbVvzbSyHnA97P6fsPBHglhOpjQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eH78jQu5ZoAe9I15B2yrLjzjkxxPZYkCUHY4Ap7/B00=; b=Or/E2rM8gRjieIfaK2lEo4dZAhmGGhp8SG9WW+YNqxNoqNkrFIAcZ3v4cTo/G3c+J6jL/CjI+eMjhuvdXgAI3d6Y22r0YjRxkFnII9XSFk0apFdWQKLYy9orQEZ9zZTLTCr75C4WhB2CBhsQU4gpXuOb1qNYLuyHILDOH7UcdS282VKmL/BCHGYsqBCR/65r1LoVZp8X04gSlOC0uNIR2N1ZGIJVmWgfC+DpkoLgK31PNxaSKZfD3tDfvHYIYyysSyaFgbw+SUenCKGZuaUOwFMyLp4e3bbAAh/get1BKyNKA5nwQPcj2ddClxe1Fc91axdTWXfXw7rhhQMevL/mJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=corigine.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=eH78jQu5ZoAe9I15B2yrLjzjkxxPZYkCUHY4Ap7/B00=; b=q7gUGdPHHsBLUVHhAk8I1SnChwe5p8+0TUwDOLSMM8KMSQrbxF4ejwBHIy/rKF1k5ct9o1wVqbcScZgIBfX4Qb8/BxJzqKQnnkRPsUwg3L/4qwvY7raxrBCyuI41MDQNkfBYRjIMyne3NzQQMPcFYdvgcPFRvoQG3NMRGaKwjemZOBvFa5D2I0DuFyQJB02BtnepEvqSGOp9rKPIOOZZYI2BJjqS8es7sO7gLQFA4MkStG33w++7gn9KKi2idDcawJ+q/squmymEj+tjAZ7jnMel2EI0im4iQUshDlG+oJ1LkolrXM+/Z5JNac1tX9SleQQG4gUrO3n4eNiCFCIfug== Received: from DS7PR03CA0211.namprd03.prod.outlook.com (2603:10b6:5:3ba::6) by DM6PR12MB4957.namprd12.prod.outlook.com (2603:10b6:5:20d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.34; Sun, 9 Apr 2023 15:29:23 +0000 Received: from DM6NAM11FT048.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3ba:cafe::75) by DS7PR03CA0211.outlook.office365.com (2603:10b6:5:3ba::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.36 via Frontend Transport; Sun, 9 Apr 2023 15:29:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT048.mail.protection.outlook.com (10.13.173.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Sun, 9 Apr 2023 15:29:22 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Sun, 9 Apr 2023 08:29:12 -0700 Received: from nvidia.com (10.126.231.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 9 Apr 2023 08:29:11 -0700 From: Xueming Li To: Chaoyong He CC: =?UTF-8?q?Niklas=20S=C3=B6derlund?= , "dpdk stable" Subject: patch 'net/nfp: fix set IPv6 flow action' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:23:49 +0800 Message-ID: <20230409152529.5308-42-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT048:EE_|DM6PR12MB4957:EE_ X-MS-Office365-Filtering-Correlation-Id: 2dfece27-6176-474b-f425-08db390f3196 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VJ6hAjGqliFN/FjES0VPGgKw+O/L0+whlP4kok26DQVeYtAJfnPSI98GpzJRIVEzOSdBBiyNQyH6dlAxxtut4pHyoEJRxlm+5KumUFSwlC66bt2wBAePS8dCvv4MjWhPFFZtsDNwL/gvl+AB2Q/Cj6YmnRpx8rXFbAn0mcofD5CChNfZe/1oFuOK5AinPwIpAdkREblrOasTpNUQKKIp2XxJrTUI73pCDQikQ3DdUdcywcJgFZBD8v7QWJE6BxjqcPALJGR4F5j70lbiqknEMSlrA5AH7CuAd/dM9pca/OMEpypZ5imE8EZ2nV9iQAUArHDHr4zDqQqopu7YISUKOf7oYajiouTEMlupVcSojK+g1mHugx+8QkDpjk87lcHElYYFBQNNSi7Vxkqx2UL4gl6mRktCYCWZG0nnv6oB7dZGLZdn/gdaeO1VUq9zrS+aQ62chdPT2yp0PLwYdSoq+k0yvjK0wjuzevmGBn/KfM6ilMYH57fAxY2I2UhOOMlbUGQFeeDlXSXE2keN/1c1haKcGgZb7aOyYcSCUY8BduIXeZnxmdcPDH6oYLqZqlPBTjfP1+DdJ3ruY9mY8AjIfIo5lCQnAbj+gSYhlbLB9NB9gJNBhtVKXUvMGnyDHnFUwrwSWTdrgki/Btg5gvip/IZ6DEIQgLVDwW6CJHSXvtSaPROtwrTjtes9vX/7x7eeywHjUXFh34bGYzF/vmRMUDW5BtmT47WxTnUWPWhjhiEGjPNN02uONdEXRlygFhnahwWozJ6SPgWEVXG8kTd1/jeKyQhYGDhLL7OvLsViygI8GBRn7zcKsuufS/NcbNUCykaJ6WBdLEFvEwHWnnkFJA== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(396003)(39860400002)(376002)(346002)(136003)(451199021)(40470700004)(36840700001)(46966006)(336012)(83380400001)(356005)(426003)(82740400003)(6916009)(47076005)(5660300002)(70586007)(8676002)(70206006)(7636003)(2906002)(41300700001)(54906003)(4326008)(316002)(66574015)(2616005)(8936002)(36860700001)(478600001)(86362001)(6666004)(36756003)(26005)(1076003)(40460700003)(186003)(966005)(6286002)(16526019)(53546011)(55016003)(40480700001)(7696005)(82310400005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:29:22.0763 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2dfece27-6176-474b-f425-08db390f3196 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT048.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4957 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 Hi, FYI, your patch has been queued to stable release 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/11/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the 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 rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/dcc0be2c8a8ffa634c5b2128f27708f0887b5925 Thanks. Xueming Li --- >From dcc0be2c8a8ffa634c5b2128f27708f0887b5925 Mon Sep 17 00:00:00 2001 From: Chaoyong He Date: Tue, 21 Feb 2023 18:35:10 +0800 Subject: [PATCH] net/nfp: fix set IPv6 flow action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit 784835e690e011754a67a240fdc6154ea349ec20 ] The former logic of set IPv6 source/destination address flow action don't consider the mask filed of control message passed to the firmware. This caused the firmware skip the set action logic, and the offloaded packets don't have the right IPv6 address as expected. Fixes: 596ae2217214 ("net/nfp: support IPv6 source flow action") Fixes: 51384f79b264 ("net/nfp: support IPv6 destination flow action") Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_flow.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c index 14c949d730..d6ab0a1e8d 100644 --- a/drivers/net/nfp/nfp_flow.c +++ b/drivers/net/nfp/nfp_flow.c @@ -2152,8 +2152,10 @@ nfp_flow_action_set_ipv6(char *act_data, set_ip->head.len_lw = act_size >> NFP_FL_LW_SIZ; set_ip->reserved = 0; - for (i = 0; i < 4; i++) - set_ip->ipv6[i].exact = set_ipv6->ipv6_addr[i]; + for (i = 0; i < 4; i++) { + set_ip->ipv6[i].exact = set_ipv6->ipv6_addr[i * 4]; + set_ip->ipv6[i].mask = RTE_BE32(0xffffffff); + } } static void -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:39.839150500 +0800 +++ 0041-net-nfp-fix-set-IPv6-flow-action.patch 2023-04-09 21:45:38.629042200 +0800 @@ -1 +1 @@ -From 784835e690e011754a67a240fdc6154ea349ec20 Mon Sep 17 00:00:00 2001 +From dcc0be2c8a8ffa634c5b2128f27708f0887b5925 Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit 784835e690e011754a67a240fdc6154ea349ec20 ] @@ -16 +18,0 @@ -Cc: stable@dpdk.org @@ -25 +27 @@ -index 39493ce98d..d1fe744758 100644 +index 14c949d730..d6ab0a1e8d 100644 @@ -28 +30 @@ -@@ -2163,8 +2163,10 @@ nfp_flow_action_set_ipv6(char *act_data, +@@ -2152,8 +2152,10 @@ nfp_flow_action_set_ipv6(char *act_data,