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 9A1D9A0032; Fri, 21 Oct 2022 10:05:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 601E742C5E; Fri, 21 Oct 2022 10:03:14 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2116.outbound.protection.outlook.com [40.107.243.116]) by mails.dpdk.org (Postfix) with ESMTP id 130514281C for ; Fri, 21 Oct 2022 10:03:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gM/PQMXZvL4knnHKoM8/kSY/kllVCzwxcxRZi2UO6kqAVLXKN9kBUON1EU7ZQd9p7uxH4DmxTP1msgNGjZMIHFY0ZqSVSyBsOSgLGCM2nSDXqGRPxYQBJrSAHupRwMZmjrHrZWQRPWYanD5VvPDlmmGVS7zXv8u5yz5Gqyj4/fVzvAcXgua7aEBnk7cDHQYSfzgHrV5A5HCWLo/1WAKWuZkCoizQmiL3+klAYMrb/oFEBwj6yA1h4WaKmkSB0ew8RozJZAwxXOE3stcrVvhBezLxTkF5R9+XoeMkCG+C1j1r2aKRjfGp40m7wAwY3gscrft2wEoEziN6UFq+RNAFbA== 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=iKqr40ommLIUxEOLFyQ5SNIDTZ+kTGZO8SB/10MUpTQ=; b=TgaJ4z8oI8+uvt680FVlg6rO8IpuDLQYXcW3HDa3K8E4+AjMVsDgWozUJNMkg879GK5Q3OZ4DpLMpLSQbSd6cEibWRlojI9SN5TzoJb8yP3iW1DYXDQZYQUTK0rkqQm9GTQwUgTw8jo+BWi19iMDCkOxc+7NGKmc+31NT8X27lzuK5xwZDSIg+j55tL2g0QCznqQ2U7MdOQL603vH6zDNxsitmIldEzmII62XRIHPALojZV9d6PIKrnZgefmeobC0nMEOhnG9Z3Oq8hsdqW7crjjwETYX1h/gMfVZWEY/YN6v7fqVOQ1TI5tVxgEF3uplqlWRIskvwfvKS2TJsKVow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iKqr40ommLIUxEOLFyQ5SNIDTZ+kTGZO8SB/10MUpTQ=; b=Savw/OcHJq0LyzisTBVl9WhIS+6Iy/9YHVdSut1sMqXzxc0+lB2FDQpxwFYQeNmJ+Wbk+dCEtkV8HgWF6If13GeUW/GTlvl8ko4JtkX+8ciHNC6NhOstQ0PPPaunmbz3C3oCkXY5CHI1/5s8beu6wcT4JkzPiaa3PfNAacWi9is= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by BL3PR13MB5162.namprd13.prod.outlook.com (2603:10b6:208:339::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.17; Fri, 21 Oct 2022 08:03:05 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7c26:1a0b:2825:6f4b]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7c26:1a0b:2825:6f4b%4]) with mapi id 15.20.5723.014; Fri, 21 Oct 2022 08:03:05 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH v6 22/27] net/nfp: support DST IPv6 flow action Date: Fri, 21 Oct 2022 16:01:58 +0800 Message-Id: <1666339323-24016-23-git-send-email-chaoyong.he@corigine.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1666339323-24016-1-git-send-email-chaoyong.he@corigine.com> References: <1666232391-29152-1-git-send-email-chaoyong.he@corigine.com> <1666339323-24016-1-git-send-email-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI2PR01CA0051.apcprd01.prod.exchangelabs.com (2603:1096:4:193::6) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BL3PR13MB5162:EE_ X-MS-Office365-Filtering-Correlation-Id: e01eac2c-c351-4051-d4b8-08dab33aaf13 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Hztru0VDJFIex7V4NBLYRYLNWRrQwg5KyrGSn2IfqCg+C3TIr8rbq/iX/qNnK7ZfG/4kVenfmqAZhSnl5j/HTM2St/SlYYDZ42OoPP69BppBMMVbbR1IV/EipYRPznjXrFp4+0uKW+1geupzOisbsh9q4v1SPgrbNGe0ZoUiDwQy2YR9V/ApBfJrnutu4YPGREz6PNcnR4FgW4GoOaE8tQhk84Xar9nF7rUbYKpfaeiEa/UGPFby0iOeOWCgAPuyfzWQjLK6KqLn+812PAugeaNgtN8YlGt/4sHKutH4uXLCLO+lgb8+nH/Pj+wo8z26NUilW45YvZQsAwOM+d27rpOMnxQUobEYy52AwIl0l0n2Q+sgCjurSxVz/GA1mjpIO7/+Q0sCOM8zVjym3vrEDd6FxfikzI4mprmgcwqOePYDf3HUnzhL6lUAAsRHFzYhh3TEYfBEWu9QhbPxt0Oqbt6TqiJKZhNI1FxQM1oeojvOFHp8faKPyzi/qu32zpNG1SePyxh2OC7+Lq4a5fHZfz8KfV621Ydt7q8FwBtAo8NzzF3ztjo3jQbuU11ZIAbBn7GpHvu43ARk6LQzvYz2ut9pvyCIbILuMq7uitWP0tCumKiy4c0pe5CjNpoRSP1gwMFvl4+gDcWku/C3CibYV01Ru8H0tjN5MgFOY52i6/CYClgY6sbSt+BCV0k9BxURngcU5gjZUavsg+HUdQyscHtiIXIW7MNygnEEB2+pK0uSSILRypEQeGnkWrevYvjzGjERJUeyNEix9sYJJKJ9JA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(396003)(346002)(136003)(39840400004)(366004)(451199015)(2616005)(6916009)(38350700002)(6512007)(6506007)(52116002)(8936002)(66946007)(4326008)(186003)(107886003)(8676002)(41300700001)(2906002)(66556008)(316002)(66476007)(38100700002)(44832011)(26005)(5660300002)(6666004)(83380400001)(478600001)(6486002)(86362001)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bm1BT2c0NDJnMzNORTNhcGxLN2I3MzdDQXROYUZaYWpaMVBTQWY1N1lYckJR?= =?utf-8?B?QzNpejBNQUoxcmZFZGpkZ2s2cFJlSC9oU25ZT2Q2RXpMKy9QZ243cDJxKzE2?= =?utf-8?B?RzJMaWZzeGI0ZUlZMWxnT2JPaHAwR2hLbXVRUWZkKzNjUFRxcnJYWHprU2U3?= =?utf-8?B?U2ovVXkySVRpU3lWMmxmZXhheDB3c2xoeHhnTzh2aFgvR3E0UEUxYmw3d1VX?= =?utf-8?B?Z3VvOUNUK2IvMWQwV3haS1kwMENmbWo2c0MzQ2RRa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b1oxcTVGaHM1QkhKM1BrazE2cVdiMW9vaWtiWjIvaHpmZnBRRmJC?= =?utf-8?B?UjhEU1hUcU94V2F4Qk9YYnFNK3YzRHU1RUxZNXQ5SEprUWVtVVF1RVM1dURa?= =?utf-8?B?Zmc9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: e01eac2c-c351-4051-d4b8-08dab33aaf13 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2022 08:03:05.6102 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8i8EI3G3zs3DWPMkzhK67ZC97raNRBxSXvImsBFOYsD+62YHwWhU8+NXsZHmOdOv+E2gVhDPYS2mP1JMjcsXJQwvNxaSMHOX/FtLg5NaUHA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR13MB5162 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 the corresponding logics to support the offload of set dest IPv6 address action. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/doc/guides/nics/features/nfp.ini b/doc/guides/nics/features/nfp.ini index b17c701..5fcece7 100644 --- a/doc/guides/nics/features/nfp.ini +++ b/doc/guides/nics/features/nfp.ini @@ -46,6 +46,7 @@ of_set_vlan_vid = Y port_id = Y set_ipv4_dst = Y set_ipv4_src = Y +set_ipv6_dst = Y set_ipv6_src = Y set_mac_dst = Y set_mac_src = Y diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c index 6821e29..e077ed3 100644 --- a/drivers/net/nfp/nfp_flow.c +++ b/drivers/net/nfp/nfp_flow.c @@ -635,6 +635,10 @@ struct nfp_mask_id_entry { PMD_DRV_LOG(DEBUG, "RTE_FLOW_ACTION_TYPE_SET_IPV6_SRC detected"); key_ls->act_size += sizeof(struct nfp_fl_act_set_ipv6_addr); break; + case RTE_FLOW_ACTION_TYPE_SET_IPV6_DST: + PMD_DRV_LOG(DEBUG, "RTE_FLOW_ACTION_TYPE_SET_IPV6_DST detected"); + key_ls->act_size += sizeof(struct nfp_fl_act_set_ipv6_addr); + break; default: PMD_DRV_LOG(ERR, "Action type %d not supported.", action->type); return -ENOTSUP; @@ -1485,6 +1489,11 @@ struct nfp_mask_id_entry { nfp_flow_action_set_ipv6(position, action, true); position += sizeof(struct nfp_fl_act_set_ipv6_addr); break; + case RTE_FLOW_ACTION_TYPE_SET_IPV6_DST: + PMD_DRV_LOG(DEBUG, "Process RTE_FLOW_ACTION_TYPE_SET_IPV6_DST"); + nfp_flow_action_set_ipv6(position, action, false); + position += sizeof(struct nfp_fl_act_set_ipv6_addr); + break; default: PMD_DRV_LOG(ERR, "Unsupported action type: %d", action->type); return -ENOTSUP; -- 1.8.3.1