Message ID | 20241106021310.207-1-allen.chen@jaguarmicro.com |
---|---|
State | Changes Requested |
Delegated to: | Simon Horman |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=jaguarmicro.com header.i=@jaguarmicro.com header.a=rsa-sha256 header.s=selector2 header.b=GLqomDqN; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XjpfP5z4nz1xyW for <incoming@patchwork.ozlabs.org>; Wed, 6 Nov 2024 13:13:49 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 2990E40683; Wed, 6 Nov 2024 02:13:47 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Ped4nusKr47f; Wed, 6 Nov 2024 02:13:45 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 9FB0F403F6 Authentication-Results: smtp4.osuosl.org; dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=jaguarmicro.com header.i=@jaguarmicro.com header.a=rsa-sha256 header.s=selector2 header.b=GLqomDqN Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id 9FB0F403F6; Wed, 6 Nov 2024 02:13:45 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 76D16C08A6; Wed, 6 Nov 2024 02:13:45 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id C0E45C08A3 for <ovs-dev@openvswitch.org>; Wed, 6 Nov 2024 02:13:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 991C340254 for <ovs-dev@openvswitch.org>; Wed, 6 Nov 2024 02:13:43 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id nDAszQ-FxJ3s for <ovs-dev@openvswitch.org>; Wed, 6 Nov 2024 02:13:42 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a01:111:f403:200e::719; helo=apc01-psa-obe.outbound.protection.outlook.com; envelope-from=allen.chen@jaguarmicro.com; receiver=<UNKNOWN> DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 27CDE40204 Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=jaguarmicro.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 27CDE40204 Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=jaguarmicro.com header.i=@jaguarmicro.com header.a=rsa-sha256 header.s=selector2 header.b=GLqomDqN Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on20719.outbound.protection.outlook.com [IPv6:2a01:111:f403:200e::719]) by smtp2.osuosl.org (Postfix) with ESMTPS id 27CDE40204 for <ovs-dev@openvswitch.org>; Wed, 6 Nov 2024 02:13:41 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u1xxxx0iWLBTgjHPFJN4a78dmZtRvFrhU8nT8Un9cg+VJ88Z6wqsQCiAZMQxZXpgBWVtMcy5HE3h45CYlQcMBzLUSw2wPIkwV9dEXalK10Yh0lstJvTKl3OhXlczkHCJ76RbTA1Y+/4F5QFzp2xAi+gMjYORL9Kqan61t4+DLwBPQMPZLR9ntAhE+2wwmh50wVfo3qif17lNB0yZZem7onxtYopVmRp5ditJnWwx9zJBUA2D77g9dB3mFQVZNI1HHEK3wX88QZ+bk/R3MSPlvetvvRmr0zZ/Y8Z5ppYm+eVelwL3LYGm1+TzKIanUsEWFt2SVFFOXGoo/zocxuLdGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=rQ0+W6IB9efl36IzJplabNqS+G9KoOAobzkX54kSrPo=; b=LFkLJeJhx4XX0ZyUrSARz8blcPohOez+uaLTB9MTsJhpu+qfD8PXeX4nlYgbOJxx0N+7yuMmT/X2NZzikGzjT+aDFosmqF5BcsEAhUWGqLHKpeeLvqDNmhUohpwlPWSG64XW4PytxGMduC33fjRK92Uc6tvjQDHSYjlMc97WvIznt1tZu01oHV0R4mj/CUUNwWRl/vbA6hZvtg627xm6O46EOQK9wx2oK1Fji8At/FIDtzYI1syTj9bL7h55foTkC1neHOt7ZxaQfj2XJukUi1FdJPwlcuSNTz/MbzCa4u0r9vKxwEY9SHeDjUOekbks4yDUA9A/P92qactHBFOg7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jaguarmicro.com; dmarc=pass action=none header.from=jaguarmicro.com; dkim=pass header.d=jaguarmicro.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jaguarmicro.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rQ0+W6IB9efl36IzJplabNqS+G9KoOAobzkX54kSrPo=; b=GLqomDqNo/WFfb71aKLA66Hu0NX1BoqC5sfaPfJoaue4Pzdx9G/9KcFl/hF43ggvEPtXe0z3thiPXLNLS8ZyWs7fq7Gk1tBe3POEjWLBKrNoQcIkNS8Yae25rcPTj5b3yUDot822Fxud9fFtE4GshKxXeIWlh009I3hx4GZG7Ly8kNntIfcJPZTVVYicCTV/896R80PWe6mwAS1YFUkgJKXIblWRE4MqqmPuMRko6g2SQ5mKdopwoWxGDg5qyXe7tIK+UNWH3ag0eBujzs7yYmlrQhsIyH3bv4vc9bmTjBwoKbi2rnFPiW7TP1hSMAut6a8dyzvHQUi4wBteA6e0Sg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jaguarmicro.com; Received: from TYZPR06MB7170.apcprd06.prod.outlook.com (2603:1096:405:b4::8) by SEYPR06MB6984.apcprd06.prod.outlook.com (2603:1096:101:1de::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18; Wed, 6 Nov 2024 02:13:29 +0000 Received: from TYZPR06MB7170.apcprd06.prod.outlook.com ([fe80::7c1f:9482:dd43:eb1b]) by TYZPR06MB7170.apcprd06.prod.outlook.com ([fe80::7c1f:9482:dd43:eb1b%4]) with mapi id 15.20.8137.013; Wed, 6 Nov 2024 02:13:29 +0000 To: ovs-dev@openvswitch.org Date: Wed, 6 Nov 2024 10:13:10 +0800 Message-Id: <20241106021310.207-1-allen.chen@jaguarmicro.com> X-Mailer: git-send-email 2.33.0.windows.2 X-ClientProxiedBy: SI1PR02CA0026.apcprd02.prod.outlook.com (2603:1096:4:1f4::11) To TYZPR06MB7170.apcprd06.prod.outlook.com (2603:1096:405:b4::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB7170:EE_|SEYPR06MB6984:EE_ X-MS-Office365-Filtering-Correlation-Id: bfde339e-e57a-41ce-6b75-08dcfe089ac7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|366016|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: 56Hj1tESjpPTb0JHlsuZ6x9MeEc+pvx0KgdyQ5NbhwZrK+pY5dqothgjXvhzCcZTApmDEluXjJ0D9YTBKmSwnI0y31V7UCUf5hqkQTpWxllYiDw9dksz9dIWZkpTYaJGFedD+bPdxh/ngm6hDVnYd8RWi48jbe77iPvHFCbZ8ec1hLFNYBxr/AR5Dn8EepHCLALSYRRf7fnT9+aJtni2i5WtckrkJ+rtmgOU1PNn1A92XmfJ1Z0ma4QFNesYVI9YxMduz4/5+W4fySvgI2uS4PPsc/1FHpB0nKxFpl4AJGMiWV2XZM650IBC/33axQUXzHjXiYnLz5d4hQht2G38/t8E1nFiWr6h4Y51kYBSuu/cm4c5Si2jlM+4OvjJ0Sn4M/HjsHBtN+lI21X2dF1p84+HdQqWt4pZDaW+Pwo6Iay5WOpzP/H71VQzsqRgEgmm6zu7j5icnJAbAQf5t2QzzQtoU7ZstTryiFYu2Uj4X/UT4xs5dzcQtTBiZ0lXgn9VZfJuxXrcGGMQUgQozHVEFZoO1SvXN005y632DxL6Wq9POO7C1Zhw+MXaCNNU6zGxEvXspfXoZBJi1yucJctSiMf9w9UZysx3DZKigIB4pIn/tpxItUc7Xb1T4ibcNzHsJg1rTamMxLeatOWgM6nF/3glHiZH95cEwQ+5vckK2hK57MuPwRT8U9XxEDar2CKVz7w/QHexQ207Ag9CkX/UHQD1QqxX4S1B9wDljBF8v6nencnuylSyGJx9eYXWiok6f1GIGBeqPgiUZAjUxA2MWslAnQUBhqSoYVJLfP2w9VE0c+1gw/MgkAjZxVqltyiRwcoq9IBGBe8n7qVwCG0jRU57SzA4aF0mv9U467BK95Ep86r/IEkyDgBRUnx9ywnUgSMx15bTScnlE1WO9QD9q99rHCCru+9FDaBHs2VoMQSRyjoSdFFoHycVoAtX6p3qQlzOOT3IbsqTXJ9a2RrziYY6ocIQpf2UJx5v+A+F6ts2th83NH2LWmZZG6rA1QVLNXacnvebZd0Hl6jtVpfv4etS6SLXWz8VZpYvE+kHbkw8+oQbzdPth31/Qr5AF8Ga5w4aMhPTXTmR9UIcf5kvRbYAA3GkpRj5QF3RHJzCdX+CNUlKXOQLhYBwoUcTzx1KZNQK7iEEWFj6sHbaQyLd2JT65gwIbnGwDB2bjimHfDdFSHxauHu+Y8yGhE1wPBv5CzV8ayLhpZQS+czq5n5SeHNrsGSNuKckNAqy6GBBZ1DxPiergwzcec3/l5b1wMK1YqftUoLjPedWIHsYvSz2vXpK2SaDqWBHSfhdUTg8C1avVhpqSqRBS3+x6LNDjyma2HPzv5/fnObbfB9SQfGQsVoq/516h3AN9qtQjZoLnbc= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR06MB7170.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(52116014)(376014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: K6qPBHWjmC87HYxwi5e/tkRexxRDh7gpdcZOE1gQRG4ssbPc9kaUTvGwSEpYBY34RyoUgGUT6vHaui2+tFoHHUNNNkQir1945wT0XFmcB86w+lGoCmnHH9JKCUkmgrXK33xPxcfeFlEiuGNFbooKVy7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mZfbfbHYuIVw/ChRQYecPPBdDiDFZZfNKJE55ZQr3XTNNorzn+crFucVuOshSOi+f2ZLhHVo4ewNPUjkLHNTy63UQokMAYY9Ny8zISOD0NtTONQoPb3IYCem/YTjev+EWnmDDOSdMqScctaEol8R1NAvsBM27OaPtqWcKqwST7yT4QVaGPbXlcIJ0kfWts3xnBHZAY/pR4jaJwbW1Aii0D+M30jSGkR0BsBBIW5oDlPfcShYcdrpWdo7NHOQ0tbm9624HHpTQYxKIBzA1RuXad/DuQ5/TidQZjfwm93u/2pxKjE09n9pDkd9ceGamoZ8dUZ3v/vboq9d4HUFVkeWRljxfQKzXcBB0ftH1EdkoyEmK/ryxbVU0HtWWjr4wKhMi4FG6vmtZ8bA== X-OriginatorOrg: jaguarmicro.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfde339e-e57a-41ce-6b75-08dcfe089ac7 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB7170.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 02:13:29.2158 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1e45a5c2-d3e1-46b3-a0e6-c5ebf6d8ba7b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zevgjO4kaMeuVm6+fAb7t6Z3vW8c2MndeS9JcfgM/cSLyN0xklF5WW2Z3y1lOlxSZ7yQ2thBWlhnuq2aXvdT0Cjlwax7uyE1t6a1MEkSw4k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6984 Subject: [ovs-dev] [PATCH v2] netdev_offload_dpdk: Support icmpv6 offload. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> From: Allen Chen via dev <ovs-dev@openvswitch.org> Reply-To: Allen Chen <allen.chen@jaguarmicro.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
[ovs-dev,v2] netdev_offload_dpdk: Support icmpv6 offload.
|
expand
|
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | success | apply and check: success |
ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c index 1a6e100ff..19da8f4d4 100644 --- a/lib/netdev-offload-dpdk.c +++ b/lib/netdev-offload-dpdk.c @@ -1684,6 +1684,22 @@ parse_flow_match(struct netdev *netdev, consumed_masks->tp_dst = 0; add_flow_pattern(patterns, RTE_FLOW_ITEM_TYPE_ICMP, spec, mask, NULL); + } else if (proto == IPPROTO_ICMPV6) { + struct rte_flow_item_icmp6 *spec, *mask; + + spec = xzalloc(sizeof *spec); + mask = xzalloc(sizeof *mask); + + spec->type = (uint8_t) ntohs(match->flow.tp_src); + spec->code = (uint8_t) ntohs(match->flow.tp_dst); + + mask->type = (uint8_t) ntohs(match->wc.masks.tp_src); + mask->code = (uint8_t) ntohs(match->wc.masks.tp_dst); + + consumed_masks->tp_src = 0; + consumed_masks->tp_dst = 0; + + add_flow_pattern(patterns, RTE_FLOW_ITEM_TYPE_ICMP6, spec, mask, NULL); } add_flow_pattern(patterns, RTE_FLOW_ITEM_TYPE_END, NULL, NULL, NULL);
Support icmpv6 offload Signed-off-by: Allen Chen <allen.chen@jaguarmicro.com> --- lib/netdev-offload-dpdk.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)