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 A2506A034C; Wed, 21 Dec 2022 09:43:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1791541141; Wed, 21 Dec 2022 09:43:38 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2089.outbound.protection.outlook.com [40.107.220.89]) by mails.dpdk.org (Postfix) with ESMTP id B844241141 for ; Wed, 21 Dec 2022 09:43:36 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mv8odhrhHeLotyrkyaHdaGsEn0IyINsCFLI8Z8CAQpuS0dV2YuzkLfBQ+u+1sNeme9naEwx8pMO6Wq5e2sKOTtJ5ByneYilL6CENtklioygxv0it+K+qhZxGQK513/Gv31cskbxavK1p8RkqbHAqHKyXZCsp/AjGpO+ilm2+0isBw1WY07JHd3WNTGsIC4ZOv7AzYh2/5Y0kRI/x4PkVeDQrEyuQjH8owZQnijlrdj3i7BDf33PsjNZY73IknPiGjwGbdPmcZb/L1vcpIOdiDvQeEyBpgwtjl13G6x512zqNub4V8otORycByHHxKkRfrwvIvPhRGc8pywFtWwARTQ== 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=jPAhiSZLSsTS0RwMXXpF9UCbiGT8VYw8V8b/gfymZTo=; b=Sk7ZqzcWES3NaD8021l3Tme7vkBbKXi55nc5cjBAWuUQdRdQz69xNXeMBfZFR0x/k6nQ7wThRD2rCgMbykbj9jM8Oi1w3Hqc0VAcR7SmO8nf8TvXW7Xurz1WkJQVTbwRjIxOJl4NUWk+dJgVKtUUU19YcCdmBEPbUD6ASVx104hw/CKVcXytk4+SK6nZwuOr9kIJYgD4dMYevcRbS9H/zttr7Nv4kvpOyXcvKT3b09Nkk2SF18TJ07oKqlwZPrN+vMeHWRBJqIfHhic1NbMZDFD3DQj5pa7U/TGtgbcb2ixBwsm3xSbw2XJxWGUN1k/9AwpDVZuw3jFldE3Yay/fpQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=monjalon.net 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=jPAhiSZLSsTS0RwMXXpF9UCbiGT8VYw8V8b/gfymZTo=; b=aiqNoFtddpZsuJj3KfTGzhSVXvb6kv1slsIRkH6WA+AZyvNiZAlN9AwyNjRYLdPs16zEnQDtznvZhKJJgBylgJKjSvl6gD31gEkx8JMhK/RgHJmUZ9/VhOWA5ClcKdreUqmt2Mxu5pcHPweC8K7Fs2U/AhEmx4whklCbQNFn594DsN2sUOSt9yZyyfjrHrgtw6sgB5EHmwcLMUH45gS6wJtr/xfN7kCH86JViuBZqWQXSVJ1xZQYZAsLHmqwZVOBn3FRc7gxkqZkgL56rgCj0icU0X3Tv0FJxWmB4rxuw8QPm5iPJMGR55+MvdEk7LYOTMs5WbqoJOUyTZ668XfYkQ== Received: from DM6PR07CA0119.namprd07.prod.outlook.com (2603:10b6:5:330::11) by DS0PR12MB6439.namprd12.prod.outlook.com (2603:10b6:8:c9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Wed, 21 Dec 2022 08:43:34 +0000 Received: from DM6NAM11FT011.eop-nam11.prod.protection.outlook.com (2603:10b6:5:330:cafe::a3) by DM6PR07CA0119.outlook.office365.com (2603:10b6:5:330::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.21 via Frontend Transport; Wed, 21 Dec 2022 08:43:34 +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 DM6NAM11FT011.mail.protection.outlook.com (10.13.172.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.10 via Frontend Transport; Wed, 21 Dec 2022 08:43:34 +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.36; Wed, 21 Dec 2022 00:43:25 -0800 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.36; Wed, 21 Dec 2022 00:43:23 -0800 From: Rongwei Liu To: , , , , Aman Singh , Yuying Zhang CC: , Subject: [RFC 2/9] app/testpmd: add IPv6 routing extension header support Date: Wed, 21 Dec 2022 10:42:57 +0200 Message-ID: <20221221084304.3680690-3-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221221084304.3680690-1-rongweil@nvidia.com> References: <20221221084304.3680690-1-rongweil@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT011:EE_|DS0PR12MB6439:EE_ X-MS-Office365-Filtering-Correlation-Id: 150a19f1-a055-4b97-0146-08dae32f726b 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: zHIs6uwiW+Rwn1qN0iRVciteyBKCIqC6K7NeZW+qdqMJlBXOnOtHkPzUPh2onygNY8PTJ2R3MNOzXDdCnXs+fjV0w2n7ZHJvXdsX31lzU8/oXGGvTGHFcV/AR0H/AfxO/6NLu4kceguynhq/oRVJTlxSlPW7hJJq8NEbIGxTtntZZL7tGKs1HmpCibkS08iUP5495pDO7fWyvE+ORT4DAh8BFUgGZJmyqeyRIqXPo86u4hZ6eOLnTU3jrLMpk8Sws1J7WPdkA65LK7u9ROzkppM+Uo5ErIdA7lfJ9ehPH5mwvMbMQ71/cdfn7PxHyXEDXQRuXtZAnjwlX4oZ4470e4/eNuz8bd8z3RgvvghNuZJkiJ+yUa30DzjJ6TDvbR9/IfC890Ett58S+CneY9w13ZMmj0TjBg77UT6HSO6YoN+Zu5RF26vp9vld2wG1fPvCaxjZbVO4qr+Z+Cc+nep2QSCxvIBxSXqqMOkEyfe1HA+cV0Ib0K4Iv2joNzd/TwzHwTEZn85ML3m/YIj37n+SWDfxLYPgawYdHZqP0cdZsoDlz0bBgm7MpBf4ruy10lmlNm29/RdJioMzzyV62dyDWiCRMBEtJamInenovRbqZid4pG32VtvMXJmJVvqwN33UblX/WCY6wYl8KM5lP7r+F+oSJ8MjsK2XNlSj9bAZ7PZJ3w2EYteTQYbGbNInzRuXA6HnDkcrbwmJ42RgXiTg8w== 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:(13230022)(4636009)(39860400002)(376002)(346002)(396003)(136003)(451199015)(36840700001)(40470700004)(46966006)(82310400005)(40480700001)(55016003)(41300700001)(70586007)(2906002)(356005)(5660300002)(4326008)(8676002)(7636003)(54906003)(70206006)(86362001)(316002)(110136005)(8936002)(26005)(7696005)(186003)(6286002)(82740400003)(107886003)(6666004)(36756003)(426003)(16526019)(47076005)(1076003)(2616005)(336012)(40460700003)(36860700001)(478600001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2022 08:43:34.7367 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 150a19f1-a055-4b97-0146-08dae32f726b 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: DM6NAM11FT011.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB6439 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 Add command line support for IPv6 routing extension header matching: type/nexthdr/segment_list. Signed-off-by: Rongwei Liu --- app/test-pmd/cmdline_flow.c | 41 ++++++++++++++++++++++++++ doc/guides/rel_notes/release_22_03.rst | 6 ++++ 2 files changed, 47 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 88108498e0..70685aafb1 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -298,6 +298,10 @@ enum index { ITEM_IPV6_SRC, ITEM_IPV6_DST, ITEM_IPV6_HAS_FRAG_EXT, + ITEM_IPV6_ROUTING_EXT, + ITEM_IPV6_ROUTING_EXT_TYPE, + ITEM_IPV6_ROUTING_EXT_NEXT_HDR, + ITEM_IPV6_ROUTING_EXT_SEG_LEFT, ITEM_ICMP, ITEM_ICMP_TYPE, ITEM_ICMP_CODE, @@ -1326,6 +1330,7 @@ static const enum index next_item[] = { ITEM_ARP_ETH_IPV4, ITEM_IPV6_EXT, ITEM_IPV6_FRAG_EXT, + ITEM_IPV6_ROUTING_EXT, ITEM_ICMP6, ITEM_ICMP6_ND_NS, ITEM_ICMP6_ND_NA, @@ -1435,6 +1440,10 @@ static const enum index item_ipv6[] = { ITEM_IPV6_SRC, ITEM_IPV6_DST, ITEM_IPV6_HAS_FRAG_EXT, + ITEM_IPV6_ROUTING_EXT, + ITEM_IPV6_ROUTING_EXT_TYPE, + ITEM_IPV6_ROUTING_EXT_NEXT_HDR, + ITEM_IPV6_ROUTING_EXT_SEG_LEFT, ITEM_NEXT, ZERO, }; @@ -3844,6 +3853,38 @@ static const struct token token_list[] = { .args = ARGS(ARGS_ENTRY_BF(struct rte_flow_item_ipv6, has_frag_ext, 1)), }, + [ITEM_IPV6_ROUTING_EXT] = { + .name = "ipv6_routing_ext", + .help = "match IPv6 routing extension header", + .priv = PRIV_ITEM(IPV6_ROUTING_EXT, + sizeof(struct rte_flow_item_ipv6_routing_ext)), + .next = NEXT(item_ipv6), + .call = parse_vc, + }, + [ITEM_IPV6_ROUTING_EXT_TYPE] = { + .name = "ipv6_routing_ext_type", + .help = "match IPv6 routing extension header type", + .next = NEXT(item_ipv6, NEXT_ENTRY(COMMON_UNSIGNED), + item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_ipv6_routing_ext, + hdr.type)), + }, + [ITEM_IPV6_ROUTING_EXT_NEXT_HDR] = { + .name = "ipv6_routing_ext_next_hdr", + .help = "match IPv6 routing extension header next header type", + .next = NEXT(item_ipv6, NEXT_ENTRY(COMMON_UNSIGNED), + item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_ipv6_routing_ext, + hdr.nexthdr)), + }, + [ITEM_IPV6_ROUTING_EXT_SEG_LEFT] = { + .name = "ipv6_routing_ext_seg_left", + .help = "match IPv6 routing extension header segment left", + .next = NEXT(item_ipv6, NEXT_ENTRY(COMMON_UNSIGNED), + item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_ipv6_routing_ext, + hdr.segments_left)), + }, [ITEM_ICMP] = { .name = "icmp", .help = "match ICMP header", diff --git a/doc/guides/rel_notes/release_22_03.rst b/doc/guides/rel_notes/release_22_03.rst index cc050ff3e7..6208f2677c 100644 --- a/doc/guides/rel_notes/release_22_03.rst +++ b/doc/guides/rel_notes/release_22_03.rst @@ -58,6 +58,12 @@ New Features Added ``gre_option`` item in rte_flow to support checksum/key/sequence matching in GRE packets. +* **Added rte_flow support for matching IPv6 routing extension header fields.** + + Added ``ipv6_routing_ext`` ``ipv6_routing_ext_type`` ``ipv6_routing_ext_seg_left`` + and ``ipv6_routing_ext_next_hdr`` items in rte_flow to match IPv6 routing extension + header. + * **Added new RSS offload types for L2TPv2 in RSS flow.** Added ``RTE_ETH_RSS_L2TPV2`` macro so that he L2TPv2 session ID field can be used as -- 2.27.0