Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/134010/?format=api
http://patches.dpdk.org/api/patches/134010/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231109084057.452476-3-rongweil@nvidia.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20231109084057.452476-3-rongweil@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231109084057.452476-3-rongweil@nvidia.com", "date": "2023-11-09T08:40:57", "name": "[v1,2/2] net/mlx5/hws: fix srv6 mismatching", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "13e04f7a0cf66ba5139385dcbc00cad5554be71c", "submitter": { "id": 2223, "url": "http://patches.dpdk.org/api/people/2223/?format=api", "name": "rongwei liu", "email": "rongweil@nvidia.com" }, "delegate": { "id": 3268, "url": "http://patches.dpdk.org/api/users/3268/?format=api", "username": "rasland", "first_name": "Raslan", "last_name": "Darawsheh", "email": "rasland@nvidia.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231109084057.452476-3-rongweil@nvidia.com/mbox/", "series": [ { "id": 30212, "url": "http://patches.dpdk.org/api/series/30212/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30212", "date": "2023-11-09T08:40:55", "name": "fix IPv6 routing extension mismatching", "version": 1, "mbox": "http://patches.dpdk.org/series/30212/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/134010/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/134010/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 7ECDA432E1;\n\tThu, 9 Nov 2023 09:41:40 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 99B5E42E43;\n\tThu, 9 Nov 2023 09:41:30 +0100 (CET)", "from NAM11-DM6-obe.outbound.protection.outlook.com\n (mail-dm6nam11on2053.outbound.protection.outlook.com [40.107.223.53])\n by mails.dpdk.org (Postfix) with ESMTP id 7999842E3F;\n Thu, 9 Nov 2023 09:41:29 +0100 (CET)", "from DM6PR03CA0067.namprd03.prod.outlook.com (2603:10b6:5:100::44)\n by CH3PR12MB8457.namprd12.prod.outlook.com (2603:10b6:610:154::21) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.18; Thu, 9 Nov\n 2023 08:41:28 +0000", "from DS3PEPF000099D8.namprd04.prod.outlook.com\n (2603:10b6:5:100:cafe::c4) by DM6PR03CA0067.outlook.office365.com\n (2603:10b6:5:100::44) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.18 via Frontend\n Transport; Thu, 9 Nov 2023 08:41:28 +0000", "from mail.nvidia.com (216.228.117.160) by\n DS3PEPF000099D8.mail.protection.outlook.com (10.167.17.9) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.6977.16 via Frontend Transport; Thu, 9 Nov 2023 08:41:27 +0000", "from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com\n (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 9 Nov 2023\n 00:41:17 -0800", "from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com\n (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 9 Nov 2023\n 00:41:14 -0800" ], "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=aMBNQGOnulU7HQgKsvIu8loAz7z2qH2V4jOfxRo47hpt/exCDb6DzSzx0H21nRcxW7BNyp6SUP9OJz5/uM/U0ZS9NEMemJk4Gt66IwIA6iBjMXohzhl/bxu2abiEfzVw6/mCRo9zazFhL6+5jj5QTHsWXf4bbngDiZmpH3wuq14zykhmPV56mYEg1QVVMqfBkevUgYlExXw3I+NAIc+XJGqvU6KfyeNITQmId11Xy8b5saVQL+A8j7Ctcq5qllODkAJXwTQdzwbzlVdG85OpYRe0MP3rVUi7fX437iwMehrR5M05/Dwdsp+rbuRU5i5BfbLLqx8IFFZMb+WGBUyUZA==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n 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;\n bh=XLxJLkcY4vxf9jSgTbh3JQfT245zv/e/TXGhnqUdRfs=;\n b=KahYcXe+wtOFIvM6rpeFyB7t0wFrxCQi29ox7ulOPfZbtwEtog8DCKwgjueoiLrb1bw5kvBd8MbhW10Wog08WN+mrOAb9Z8Q/iBDjCdFJ0WfVvupa/2Z1zAap6F/PmhcpHSoQ8CHipONqfJ0PfsqmD0Vehc7LegfB83IvpuoppZnfRHaD/r0JbXlcFnjsn9fxpq2Ng+L4tHJshhIjfUkZTdSQqAvvm6MxCl9Fwz5icWj4xpQ6tKbmWJ7BL/VbBXq4hjG4I7IdjtXzKf/wUGWUcfuIFbjtAr/W96x5AhPK9wS+Z+QvhOmjOPOv7iT7j66fCwshHzNKbI7AG9r3BzIGw==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.117.160) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com;\n dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com;\n dkim=none (message not signed); arc=none (0)", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=XLxJLkcY4vxf9jSgTbh3JQfT245zv/e/TXGhnqUdRfs=;\n b=kB4Z6EY5nemOdWTuKlWhQdujk/TZAYWLupIjZQr84fJzF/eVD+mQVEL1LtvgCWV0dsqybzmqJhGQuASUifU4evnnlfUmbjyGbu/KRnAGA4h7rsTsvTIRzQW9xMuLpjF6pBBM7O/S7Ft9FRyKlCUaKQe5Ddv2PztOzpUaBvBsvt0EFgi71st++7yXfdWeBkq7ibQt1GbGN+1oebvThlhkq1KqgF0vRlEoe7tE4LNHtUBhJvEQAX2ZXK7bsbFn5BuSJR1KNK6x/JLDC8qH9DkmNeqmGXeC32RW16CVh6h5+2fsklXYjDuPtTI0F2o4F5rXT+e8QvoNpCZFN6KdkLeMsw==", "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.117.160)\n smtp.mailfrom=nvidia.com;\n dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=nvidia.com;", "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.117.160 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C", "From": "Rongwei Liu <rongweil@nvidia.com>", "To": "<dev@dpdk.org>, <matan@nvidia.com>, <viacheslavo@nvidia.com>,\n <orika@nvidia.com>, <suanmingm@nvidia.com>, <thomas@monjalon.net>", "CC": "<stable@dpdk.org>, Erez Shitrit <erezsh@nvidia.com>, Alex Vesker\n <valex@nvidia.com>", "Subject": "[PATCH v1 2/2] net/mlx5/hws: fix srv6 mismatching", "Date": "Thu, 9 Nov 2023 10:40:57 +0200", "Message-ID": "<20231109084057.452476-3-rongweil@nvidia.com>", "X-Mailer": "git-send-email 2.27.0", "In-Reply-To": "<20231109084057.452476-1-rongweil@nvidia.com>", "References": "<20231109084057.452476-1-rongweil@nvidia.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Originating-IP": "[10.126.231.35]", "X-ClientProxiedBy": "rnnvmail201.nvidia.com (10.129.68.8) To\n rnnvmail201.nvidia.com (10.129.68.8)", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-TrafficTypeDiagnostic": "DS3PEPF000099D8:EE_|CH3PR12MB8457:EE_", "X-MS-Office365-Filtering-Correlation-Id": "b8e6c9db-bf75-48ba-a212-08dbe0ffaa32", "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;", "X-Microsoft-Antispam-Message-Info": "\n eP5q0VOS9PrTmlCV87Ix8OvbQ0O2hddYTLCJ7ueJ62Jml2fclVEql3L+vIY36O6o3VnfWB3689s5xl4O+uGEvmZGyQ1fzu2OG+s6fPcBVJD4uex6tscYLBVXCklVv5HdNeAO49igH035jpl3Zp6FNdJo/EY80huXVazbMFBDV1+FuDItU2D8p7tOBiCH9/RxbJr7q2+QsY2q/jCXGtDQKbwN5IcfMaA4oRQSmSZvYeLlcG1TxKzFVTLzsP4JpzKdzih0pSdzPe7QAM1NqUaJWKpAZ0aBqtcJiXnvmgPwQT5c7T+H+PW4Ra5nQrnIdnxHH3Mj7PvoqHoL0TxDpdbzma7Di4hm6fQc7viwhnNXiwDts67EYsjD35SFRP5fKeRDlTC9SPwMJQJkQKEFTzFSKaI2UvgJpkS6HKSsUId+IhXhyyl96yTMUsqzLiuodTXioln+v7ikAB+/Wzrs+/hk3HsOWMGf/gEFlnC1ZM8+d5NtPG9oZEPW+N9ATtLYlaApUQUBk3wX46Bv3qLRIirM5vl5G3t0CDuaJIHuHGg1U11XgwyaR5eHfEMG4GmQy1mhlbjY8256xSmvYYtbN2dN1gs2RDIa0B88n96YnnnyJY8+Ss3Rcu+v0GtTAUfUeVpxkjyzoGi3j29rXRWHn7hSYLzOON6xLF0ariWmQgUsy+qSV+BZBOAMSBhV+0AdS3p0TFLTAgK/AJnkfaMO24Fz10kksgxBhzSlc7GIuopAq4SGwBEeconEXcmNre6XC0DV", "X-Forefront-Antispam-Report": "CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE;\n SFS:(13230031)(4636009)(39860400002)(376002)(396003)(346002)(136003)(230922051799003)(1800799009)(82310400011)(451199024)(64100799003)(186009)(36840700001)(40470700004)(46966006)(336012)(8676002)(8936002)(40460700003)(426003)(4326008)(36756003)(7696005)(5660300002)(1076003)(107886003)(86362001)(6666004)(2616005)(2906002)(16526019)(26005)(6286002)(36860700001)(7636003)(356005)(82740400003)(55016003)(83380400001)(70206006)(70586007)(54906003)(110136005)(47076005)(316002)(478600001)(41300700001)(40480700001);\n DIR:OUT; SFP:1101;", "X-OriginatorOrg": "Nvidia.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "09 Nov 2023 08:41:27.8221 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n b8e6c9db-bf75-48ba-a212-08dbe0ffaa32", "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160];\n Helo=[mail.nvidia.com]", "X-MS-Exchange-CrossTenant-AuthSource": "\n DS3PEPF000099D8.namprd04.prod.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "CH3PR12MB8457", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "When matching srv6 packets, the IPv6 protocol is set to\n0x2b by srv6 callback in fc[IP_PROTO].\n\nIn the next layer, TCP/UDP callback reset the fc again to\nthe corresponding values: 0x11/0x6.\n\nSigned-off-by: Rongwei Liu <rongweil@nvidia.com>\nFixes: 00e579166cc0 (\"net/mlx5: support IPv6 routing extension matching\")\nCc: stable@dpdk.org\n\nReviewed-by: Erez Shitrit <erezsh@nvidia.com>\nAcked-by: Suanming Mou <suanmingm@nvidia.com>\n---\n drivers/net/mlx5/hws/mlx5dr_definer.c | 21 +++++++++++++--------\n drivers/net/mlx5/hws/mlx5dr_definer.h | 1 +\n 2 files changed, 14 insertions(+), 8 deletions(-)", "diff": "diff --git a/drivers/net/mlx5/hws/mlx5dr_definer.c b/drivers/net/mlx5/hws/mlx5dr_definer.c\nindex c0ccde64e1..0b60479406 100644\n--- a/drivers/net/mlx5/hws/mlx5dr_definer.c\n+++ b/drivers/net/mlx5/hws/mlx5dr_definer.c\n@@ -1069,10 +1069,12 @@ mlx5dr_definer_conv_item_udp(struct mlx5dr_definer_conv_data *cd,\n \t/* Set match on L4 type UDP */\n \tif (!cd->relaxed) {\n \t\tfc = &cd->fc[DR_CALC_FNAME(IP_PROTOCOL, inner)];\n-\t\tfc->item_idx = item_idx;\n-\t\tfc->tag_set = &mlx5dr_definer_udp_protocol_set;\n-\t\tfc->tag_mask_set = &mlx5dr_definer_ones_set;\n-\t\tDR_CALC_SET(fc, eth_l2, l4_type_bwc, inner);\n+\t\tif (!fc->not_overwrite) {\n+\t\t\tfc->item_idx = item_idx;\n+\t\t\tfc->tag_set = &mlx5dr_definer_udp_protocol_set;\n+\t\t\tfc->tag_mask_set = &mlx5dr_definer_ones_set;\n+\t\t\tDR_CALC_SET(fc, eth_l2, l4_type_bwc, inner);\n+\t\t}\n \t}\n \n \tif (!m)\n@@ -1115,10 +1117,12 @@ mlx5dr_definer_conv_item_tcp(struct mlx5dr_definer_conv_data *cd,\n \t/* Overwrite match on L4 type TCP */\n \tif (!cd->relaxed) {\n \t\tfc = &cd->fc[DR_CALC_FNAME(IP_PROTOCOL, inner)];\n-\t\tfc->item_idx = item_idx;\n-\t\tfc->tag_set = &mlx5dr_definer_tcp_protocol_set;\n-\t\tfc->tag_mask_set = &mlx5dr_definer_ones_set;\n-\t\tDR_CALC_SET(fc, eth_l2, l4_type_bwc, inner);\n+\t\tif (!fc->not_overwrite) {\n+\t\t\tfc->item_idx = item_idx;\n+\t\t\tfc->tag_set = &mlx5dr_definer_tcp_protocol_set;\n+\t\t\tfc->tag_mask_set = &mlx5dr_definer_ones_set;\n+\t\t\tDR_CALC_SET(fc, eth_l2, l4_type_bwc, inner);\n+\t\t}\n \t}\n \n \tif (!m)\n@@ -2141,6 +2145,7 @@ mlx5dr_definer_conv_item_ipv6_routing_ext(struct mlx5dr_definer_conv_data *cd,\n \t\t\tfc->item_idx = item_idx;\n \t\t\tfc->tag_set = &mlx5dr_definer_ipv6_routing_hdr_set;\n \t\t\tfc->tag_mask_set = &mlx5dr_definer_ones_set;\n+\t\t\tfc->not_overwrite = 1;\n \t\t\tDR_CALC_SET(fc, eth_l3, protocol_next_header, inner);\n \t\t}\n \t} else {\ndiff --git a/drivers/net/mlx5/hws/mlx5dr_definer.h b/drivers/net/mlx5/hws/mlx5dr_definer.h\nindex 791154a7dc..6f1c99e37a 100644\n--- a/drivers/net/mlx5/hws/mlx5dr_definer.h\n+++ b/drivers/net/mlx5/hws/mlx5dr_definer.h\n@@ -166,6 +166,7 @@ struct mlx5dr_definer_fc {\n \tint bit_off;\n \tuint32_t bit_mask;\n \tenum mlx5dr_definer_fname fname;\n+\tuint8_t not_overwrite;\n \tvoid (*tag_set)(struct mlx5dr_definer_fc *fc,\n \t\t\tconst void *item_spec,\n \t\t\tuint8_t *tag);\n", "prefixes": [ "v1", "2/2" ] }{ "id": 134010, "url": "