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 658D3A0032; Fri, 21 Oct 2022 10:03:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8995242C00; Fri, 21 Oct 2022 10:02:42 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2137.outbound.protection.outlook.com [40.107.94.137]) by mails.dpdk.org (Postfix) with ESMTP id F22A542BEA for ; Fri, 21 Oct 2022 10:02:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EserOWTHWRC/OyIy2b0zMk6yoxbLfwC2OaiBWzCkaxz9sHcosgWiFVeBgudS9j0XtwD/GVHCsOZ+B7pjmFipIKsjfID5dc62cvIN7na4qMa1SBjFn6XY40PrJDJreGoOmS6BI8WFzIEniyP2x+KDFwwGE3IfGhwBlbj+xLgcl80z+K3vGDBoD7ZYfSJkj764G/9g0qDHR417Zy62IHeOswxvd1PHKy29bT3grmQPCY/cdWWO7oNUmrRT08ktbtbpnTiacP1YAueCmaISS6Jq2ltxqfbUNHMCffxDTHzlY/anyzLrZd7N8hgZ8TrHKOZgHwaG8ozrWx4u00Xav8dkDQ== 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=YCuKwi0F5Gde6TgALaMji9tSv6zwRB0v8nACFgMjxQY=; b=m4Sv+ihZc7E6/eBNubuiOoXNNFyCugx2ZBJ0qiFXXX45Brka+hAFqPTDbgz8/9hK4JusF5zHJWH8XRA/ZDiAF976zsY7ZOc2l2CmuG6QwXuHm1vI8FWQXAI1IYhfytOO6uAX7S0+EGf6LxScUN2GNymiiK9QBuZlmVUHP7la8axOdd/uv/APcZGQphxtDhxEkEgQOMXzWXWiUI2BUyHCSWn4dXqR+5TlTUw8ECAqMsUg9NMIZJR757He1Ois9ZHd9ftVsri2ktYhkDiHrTXsCdJ//086kMDb/2B0FJ8vNlp3eyw+XJlWPROEOO0EZO44STxiDdBTWboP97dbxzex8Q== 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=YCuKwi0F5Gde6TgALaMji9tSv6zwRB0v8nACFgMjxQY=; b=JsQSbNCzhDfQtaAhFBsdT5KHW1ajKjfZ3OCVCqN1ePLesrtlIG/y8DA+8vPeWgUt+RPzjACxvBJNvsYflozysJxap8XhX5ed+jqPDUw7eunn8XcK1YKuC+FDIJ7fOce1MTRZw5QxS0MJhVmcxzakCMj1pMCgUlbRdqXS8zSTF7g= 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 DM6PR13MB4493.namprd13.prod.outlook.com (2603:10b6:5:1b9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.22; Fri, 21 Oct 2022 08:02:37 +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:02:37 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH v6 08/27] net/nfp: support basic flow actions Date: Fri, 21 Oct 2022 16:01:44 +0800 Message-Id: <1666339323-24016-9-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_|DM6PR13MB4493:EE_ X-MS-Office365-Filtering-Correlation-Id: 45208d00-c0b3-4509-9d38-08dab33a9e2f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SuMkGIX49xhuadVsBvCAA06VVScOed0506d4bxjJFsyDK9ix1+DSCYIsVGW0GZKr5zHOVnmHp/FAKeUxyyt33dy30klN4zoaubgpPUKyzRih2c2X+HwK/Kxv7ZKkK57JB1nM9wG1LEyVlP9PLRqmATFKq7rTqvXn+da16y2RhjY3NWnhgbTVZT+ccuVizpmMBZh1XTcIybfHAXvt/xqCFyM49YWOAAnH+XLeAbOkjzt5vFZCJ7OedbznPss7Fcv1PGTwFoTwkjMvXaFxFyb9sCy2tgMXu6cVCx8E8g7SDGKuSHz5kP0UQaOZkve9P5RBTzMW28YO2PNx6zETO5FgR7Dj5UICgK7CiNCvjAFvu2Jb+SuygZ/N1d37zRTt56XM3hrCAaYhUw4/ZTVn9PNdDMMdMZ3Ux/sj7Y3BvSSmXw2gVWt2GzNhMXkDvN/NAgFbk8SnIH0Hcm2C+DDQiS857HybgD51R/Gs94XN6JxfNgbGkwa/ZKzsyNWdsykvt5z2EnheriJ4eUOfSZJ3Ix9NdC6Nw0FdXOSlvg13e0eETL+nYjP/ACuX8jxTd9/pA93LhtPJhAohLYnZt9MKwpIgbM1Hye/0gFKFMgf0EbhtO75AxrRdQEsDzT5AULI7jy2L9cGvKz1u1l/mQjzw0jPgm8LdbtKbsoyVHEdHoST3J7L2AKDsOsmIJFVeKzjOLo0wblJhwbZMQ8lkDNV/NAZRLC0feTK87xJKeWlC6sq8mx0HlHx8BOZGcA5V07VqPpmz0IqDQghxNh5SVj2q3MAr3A== 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)(346002)(366004)(136003)(396003)(376002)(39830400003)(451199015)(36756003)(8936002)(66556008)(86362001)(41300700001)(478600001)(83380400001)(2906002)(5660300002)(186003)(6916009)(38350700002)(2616005)(4326008)(6512007)(66476007)(52116002)(66946007)(316002)(8676002)(6666004)(6506007)(26005)(107886003)(38100700002)(6486002)(44832011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dm9qRVhmRVR1Q1o3TU1DbEdnejdjYW1qcTl4TzduMTNScHNRbHFEWUJWd1g4?= =?utf-8?B?Q2t5WTBTYVdCbnlXY2g4WU5uRCtNRGJVM2JhWDJuTWsxTldQS0kxR2hSMVM1?= =?utf-8?B?RnZRcjFJRU9XMkEwZFpaV29VTk91MEVqWEFua29OdE9ZTlhwRTZsMlR3T0N3?= =?utf-8?B?aWtWSjZ6Sjk4dlNLMWFnNnNtZWpSQ3ZuVW5vM05PWkQzTTZrdzkvbWdDS1lz?= =?utf-8?B?MjZNdmtpbEhhYnhpdEk4MmhqblpCQ3pPelZnbndPT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FgrKzRmWVluRW1MR09XQUx5ZldiL0F3Q1N6Qm5JQUZpWmdR?= =?utf-8?B?bEJ3MzQvTDUrZ2dPSnVLTU9HRWMrZWJucHNDSko5Wm1ZUXJNZnJLREwrK2NQ?= =?utf-8?B?YXc9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45208d00-c0b3-4509-9d38-08dab33a9e2f 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:02:37.2711 (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: 2pigt8K14eiMWJI/ncBWioJHPnehKoMFuu3Eum9K3313DleOV9uEkycYXJTMHMUqRvcFuCfh3ogUsWh7LyGY3YHdB+Z3CUSgkEAy6uJaGbU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR13MB4493 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 offload support of very basic actions: count, drop and output. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 5 ++ drivers/net/nfp/flower/nfp_flower_cmsg.h | 11 ++++ drivers/net/nfp/nfp_flow.c | 100 +++++++++++++++++++++++++++++++ drivers/net/nfp/nfp_flow.h | 37 ++++++++++++ 4 files changed, 153 insertions(+) diff --git a/doc/guides/nics/features/nfp.ini b/doc/guides/nics/features/nfp.ini index 4460cf0..f91da82 100644 --- a/doc/guides/nics/features/nfp.ini +++ b/doc/guides/nics/features/nfp.ini @@ -29,3 +29,8 @@ Usage doc = Y [rte_flow items] eth = Y port_id = Y + +[rte_flow actions] +count = Y +drop = Y +port_id = Y diff --git a/drivers/net/nfp/flower/nfp_flower_cmsg.h b/drivers/net/nfp/flower/nfp_flower_cmsg.h index 75a3b91..d776e37 100644 --- a/drivers/net/nfp/flower/nfp_flower_cmsg.h +++ b/drivers/net/nfp/flower/nfp_flower_cmsg.h @@ -253,6 +253,17 @@ struct nfp_flower_mac_mpls { rte_be32_t mpls_lse; }; +struct nfp_fl_act_head { + uint8_t jump_id; + uint8_t len_lw; +}; + +struct nfp_fl_act_output { + struct nfp_fl_act_head head; + rte_be16_t flags; + rte_be32_t port; +}; + int nfp_flower_cmsg_mac_repr(struct nfp_app_fw_flower *app_fw_flower); int nfp_flower_cmsg_repr_reify(struct nfp_app_fw_flower *app_fw_flower, struct nfp_flower_representor *repr); diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c index ea5b359..36b1221 100644 --- a/drivers/net/nfp/nfp_flow.c +++ b/drivers/net/nfp/nfp_flow.c @@ -546,6 +546,16 @@ struct nfp_mask_id_entry { case RTE_FLOW_ACTION_TYPE_VOID: PMD_DRV_LOG(DEBUG, "RTE_FLOW_ACTION_TYPE_VOID detected"); break; + case RTE_FLOW_ACTION_TYPE_DROP: + PMD_DRV_LOG(DEBUG, "RTE_FLOW_ACTION_TYPE_DROP detected"); + break; + case RTE_FLOW_ACTION_TYPE_COUNT: + PMD_DRV_LOG(DEBUG, "RTE_FLOW_ACTION_TYPE_COUNT detected"); + break; + case RTE_FLOW_ACTION_TYPE_PORT_ID: + PMD_DRV_LOG(DEBUG, "RTE_FLOW_ACTION_TYPE_PORT_ID detected"); + key_ls->act_size += sizeof(struct nfp_fl_act_output); + break; default: PMD_DRV_LOG(ERR, "Action type %d not supported.", action->type); return -ENOTSUP; @@ -773,6 +783,90 @@ struct nfp_mask_id_entry { return 0; } +static int +nfp_flow_action_output(char *act_data, + const struct rte_flow_action *action, + struct nfp_fl_rule_metadata *nfp_flow_meta) +{ + size_t act_size; + struct rte_eth_dev *ethdev; + struct nfp_fl_act_output *output; + struct nfp_flower_representor *representor; + const struct rte_flow_action_port_id *port_id; + + port_id = action->conf; + if (port_id == NULL || port_id->id >= RTE_MAX_ETHPORTS) + return -ERANGE; + + ethdev = &rte_eth_devices[port_id->id]; + representor = (struct nfp_flower_representor *)ethdev->data->dev_private; + act_size = sizeof(struct nfp_fl_act_output); + + output = (struct nfp_fl_act_output *)act_data; + output->head.jump_id = NFP_FL_ACTION_OPCODE_OUTPUT; + output->head.len_lw = act_size >> NFP_FL_LW_SIZ; + output->flags = rte_cpu_to_be_16(NFP_FL_OUT_FLAGS_LAST); + output->port = rte_cpu_to_be_32(representor->port_id); + + nfp_flow_meta->shortcut = rte_cpu_to_be_32(representor->port_id); + + return 0; +} + +static int +nfp_flow_compile_action(__rte_unused struct nfp_flower_representor *representor, + const struct rte_flow_action actions[], + struct rte_flow *nfp_flow) +{ + int ret = 0; + char *position; + char *action_data; + bool drop_flag = false; + uint32_t total_actions = 0; + const struct rte_flow_action *action; + struct nfp_fl_rule_metadata *nfp_flow_meta; + + nfp_flow_meta = nfp_flow->payload.meta; + action_data = nfp_flow->payload.action_data; + position = action_data; + + for (action = actions; action->type != RTE_FLOW_ACTION_TYPE_END; ++action) { + switch (action->type) { + case RTE_FLOW_ACTION_TYPE_VOID: + break; + case RTE_FLOW_ACTION_TYPE_DROP: + PMD_DRV_LOG(DEBUG, "Process RTE_FLOW_ACTION_TYPE_DROP"); + drop_flag = true; + break; + case RTE_FLOW_ACTION_TYPE_COUNT: + PMD_DRV_LOG(DEBUG, "Process RTE_FLOW_ACTION_TYPE_COUNT"); + break; + case RTE_FLOW_ACTION_TYPE_PORT_ID: + PMD_DRV_LOG(DEBUG, "Process RTE_FLOW_ACTION_TYPE_PORT_ID"); + ret = nfp_flow_action_output(position, action, nfp_flow_meta); + if (ret != 0) { + PMD_DRV_LOG(ERR, "Failed when process" + " RTE_FLOW_ACTION_TYPE_PORT_ID"); + return ret; + } + + position += sizeof(struct nfp_fl_act_output); + break; + default: + PMD_DRV_LOG(ERR, "Unsupported action type: %d", action->type); + return -ENOTSUP; + } + total_actions++; + } + + if (drop_flag) + nfp_flow_meta->shortcut = rte_cpu_to_be_32(NFP_FL_SC_ACT_DROP); + else if (total_actions > 1) + nfp_flow_meta->shortcut = rte_cpu_to_be_32(NFP_FL_SC_ACT_NULL); + + return 0; +} + static struct rte_flow * nfp_flow_process(struct nfp_flower_representor *representor, const struct rte_flow_item items[], @@ -823,6 +917,12 @@ struct nfp_mask_id_entry { goto free_flow; } + ret = nfp_flow_compile_action(representor, actions, nfp_flow); + if (ret != 0) { + PMD_DRV_LOG(ERR, "nfp flow action process failed."); + goto free_flow; + } + nfp_flow_meta = nfp_flow->payload.meta; mask_data = nfp_flow->payload.mask_data; mask_len = key_layer.key_size; diff --git a/drivers/net/nfp/nfp_flow.h b/drivers/net/nfp/nfp_flow.h index 4adcc36..2fdffa1 100644 --- a/drivers/net/nfp/nfp_flow.h +++ b/drivers/net/nfp/nfp_flow.h @@ -34,6 +34,43 @@ /* The firmware expects lengths in units of long words */ #define NFP_FL_LW_SIZ 2 +#define NFP_FL_SC_ACT_DROP 0x80000000 +#define NFP_FL_SC_ACT_USER 0x7D000000 +#define NFP_FL_SC_ACT_POPV 0x6A000000 +#define NFP_FL_SC_ACT_NULL 0x00000000 + +/* Action opcodes */ +#define NFP_FL_ACTION_OPCODE_OUTPUT 0 +#define NFP_FL_ACTION_OPCODE_PUSH_VLAN 1 +#define NFP_FL_ACTION_OPCODE_POP_VLAN 2 +#define NFP_FL_ACTION_OPCODE_PUSH_MPLS 3 +#define NFP_FL_ACTION_OPCODE_POP_MPLS 4 +#define NFP_FL_ACTION_OPCODE_USERSPACE 5 +#define NFP_FL_ACTION_OPCODE_SET_TUNNEL 6 +#define NFP_FL_ACTION_OPCODE_SET_ETHERNET 7 +#define NFP_FL_ACTION_OPCODE_SET_MPLS 8 +#define NFP_FL_ACTION_OPCODE_SET_IPV4_ADDRS 9 +#define NFP_FL_ACTION_OPCODE_SET_IPV4_TTL_TOS 10 +#define NFP_FL_ACTION_OPCODE_SET_IPV6_SRC 11 +#define NFP_FL_ACTION_OPCODE_SET_IPV6_DST 12 +#define NFP_FL_ACTION_OPCODE_SET_IPV6_TC_HL_FL 13 +#define NFP_FL_ACTION_OPCODE_SET_UDP 14 +#define NFP_FL_ACTION_OPCODE_SET_TCP 15 +#define NFP_FL_ACTION_OPCODE_PRE_LAG 16 +#define NFP_FL_ACTION_OPCODE_PRE_TUNNEL 17 +#define NFP_FL_ACTION_OPCODE_PRE_GS 18 +#define NFP_FL_ACTION_OPCODE_GS 19 +#define NFP_FL_ACTION_OPCODE_PUSH_NSH 20 +#define NFP_FL_ACTION_OPCODE_POP_NSH 21 +#define NFP_FL_ACTION_OPCODE_SET_QUEUE 22 +#define NFP_FL_ACTION_OPCODE_CONNTRACK 23 +#define NFP_FL_ACTION_OPCODE_METER 24 +#define NFP_FL_ACTION_OPCODE_CT_NAT_EXT 25 +#define NFP_FL_ACTION_OPCODE_PUSH_GENEVE 26 +#define NFP_FL_ACTION_OPCODE_NUM 32 + +#define NFP_FL_OUT_FLAGS_LAST RTE_BIT32(15) + /* Tunnel ports */ #define NFP_FL_PORT_TYPE_TUN 0x50000000 -- 1.8.3.1