From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 73332A04DD; Tue, 20 Oct 2020 10:51:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 17B7ABBD6; Tue, 20 Oct 2020 10:49:14 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id CE605ACC9 for ; Tue, 20 Oct 2020 10:48:57 +0200 (CEST) Received: from mx1-us1.ppe-hosted.com (unknown [10.7.65.60]) by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 54B9460055 for ; Tue, 20 Oct 2020 08:48:56 +0000 (UTC) Received: from us4-mdac16-52.ut7.mdlocal (unknown [10.7.66.23]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 53F4F2009A for ; Tue, 20 Oct 2020 08:48:56 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.7.66.33]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id BDFED1C0052 for ; Tue, 20 Oct 2020 08:48:55 +0000 (UTC) Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 73F30A80070 for ; Tue, 20 Oct 2020 08:48:55 +0000 (UTC) Received: from ukex01.SolarFlarecom.com (10.17.10.4) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 20 Oct 2020 09:48:49 +0100 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 20 Oct 2020 09:48:49 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (ukv-loginhost.uk.solarflarecom.com [10.17.10.39]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id 09K8mlnW030780; Tue, 20 Oct 2020 09:48:49 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1]) by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id AC92B1613A9; Tue, 20 Oct 2020 09:48:47 +0100 (BST) From: Andrew Rybchenko To: CC: Date: Tue, 20 Oct 2020 09:47:27 +0100 Message-ID: <1603183709-23420-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.6.1012-25736.003 X-TM-AS-Result: No-3.177400-8.000000-10 X-TMASE-MatchedRID: fjzKeIqGNDydQVJt8T89TW/BUkaRdR0JG0Oe0T+pTlFPIi6bm6Wq5qdm AgMyOH7Yq64l+8SGdzgOnpqGwNbZeh2k1vtl2oj3z/7rpiFAj3+FUOeR/MPu5pGhAvBSa2i/W0q m0WEYWrIFMvc3zLJP1xAWZZ3fWQOJ21EpRVl2rZRR+pHf1lsiVQM8HHgJ/SSze/eKgB30qtKNdG dbBgYTOmzpp3oVQQrjaTP3AxHN3oqj9HPhXvu25Mbr3d9/yP1kA8VzTZMDNrLKqTgKUXUInjBXX b/qS2630VoiXrjah1e2WmCbZLienYZmskxZzd/WyPPRU9ScEDVrTWaGefu3pG82zvsXicharw5c isR01H0Ka+KeKWIfyvSzDnWUFqmLmuM9fNKqyJBIcJTn2HkqsQ/54kgfiLhL31GU/N5W5BDcru+ PSMhej+UZ4LV9ny+d7Gwv1cOg4ZMfE8yM4pjsDwtuKBGekqUpm+MB6kaZ2g5N/cMwYFNVwKyHsY bwKU5IwUMtD+DbF8cFevfwJHNqPEesPbW6jPCIXXmip2gyh0hiXcprQNObylrZXari7S1rh51m9 02qXPLkA8OrYHdwDGfYlY/yoV/0Up6EHOb2+c7kHZDO53QSwuPlwCWV27Nr X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-3.177400-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.6.1012-25736.003 X-MDID: 1603183736-nyPTKNnridyE X-PPE-DISP: 1603183736;nyPTKNnridyE Subject: [dpdk-dev] [PATCH 00/62] net/sfc: support flow API transfer rules X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Transfer rules for Alveo SN1000 SmartNICs support matching on various inner and outer packet headers, traffic source items like PORT_ID, PHY_PORT, PF and VF and actions to route traffic to destination (PORT_ID, PHY_PORT, PF, VF or DROP), MARK, FLAG and apply VLAN push/pop transformations. Andrew Rybchenko (2): common/sfc_efx/base: add MAE definitions to MCDI doc: advertise flow API transfer rules support in net/sfc Ivan Malov (60): common/sfc_efx/base: indicate support for MAE net/sfc: add a stub for attaching to MAE common/sfc_efx/base: add MAE init/fini APIs drivers: init/fini MAE on attach/detach common/sfc_efx/base: add an MAE limit query API net/sfc: add the concept of MAE (transfer) rules common/sfc_efx/base: add match spec init/fini APIs net/sfc: add pattern parsing stub to MAE backend common/sfc_efx/base: add a match spec validate API net/sfc: validate match spec in MAE backend common/sfc_efx/base: add a match specs class comparison API net/sfc: add verify method to flow validate path common/sfc_efx/base: add action set spec init/fini APIs net/sfc: add actions parsing stub to MAE backend common/sfc_efx/base: support setting a PPORT in a match spec net/sfc: support flow item PHY PORT in MAE backend common/sfc_efx/base: add MAE match fields for Ethernet net/sfc: support flow item ETH in MAE backend common/sfc_efx/base: support adding DELIVER action to a set net/sfc: support flow action PHY PORT in MAE backend common/sfc_efx/base: add MAE action set provisioning APIs common/sfc_efx/base: add MAE action rule provisioning APIs net/sfc: implement flow insert/remove in MAE backend common/sfc_efx/base: support adding VLAN POP action to a set net/sfc: support flow action OF POP VLAN in MAE backend common/sfc_efx/base: support adding VLAN PUSH action net/sfc: add facilities to handle bundles of actions net/sfc: support VLAN PUSH actions in MAE backend common/sfc_efx/base: support adding FLAG action to a set net/sfc: support flow action FLAG in MAE backend common/sfc_efx/base: support adding MARK action to a set net/sfc: support flow action MARK in MAE backend common/sfc_efx/base: add named constant for invalid VF common/sfc_efx/base: add an API to get MPORT of a PF/VF net/sfc: support flow items PF and VF in transfer rules net/sfc: support flow actions PF and VF in transfer rules common/sfc_efx/base: add an API for adding action DROP net/sfc: support flow action DROP in transfer rules common/sfc_efx/base: refactor version / boot info get helper common/sfc_efx/base: add an API for querying board info net/sfc: add HW switch ID helpers net/sfc: support the concept of RTE switch domains/ports net/sfc: support flow action PORT ID in transfer rules net/sfc: support flow item PORT ID in transfer rules common/sfc_efx/base: add MAE match fields for VLAN net/sfc: support flow item VLAN in transfer rules common/sfc_efx/base: add MAE match fields for IPv4 net/sfc: support flow item IPV4 in transfer rules common/sfc_efx/base: add MAE match fields for IPv6 net/sfc: support flow item IPV6 in transfer rules common/sfc_efx/base: add MAE match fields for TCP and UDP net/sfc: support flow item TCP in transfer rules net/sfc: support flow item UDP in transfer rules common/sfc_efx/base: indicate MAE support for encapsulation common/sfc_efx/base: add MAE encap. match fields common/sfc_efx/base: add MAE match field VNET ID for tunnels common/sfc_efx/base: add an API to compare match specs common/sfc_efx/base: validate and compare outer match specs common/sfc_efx/base: support outer rule provisioning net/sfc: support encap. flow items in transfer rules doc/guides/nics/sfc_efx.rst | 59 +- doc/guides/rel_notes/release_20_11.rst | 3 +- drivers/common/sfc_efx/base/ef10_nic.c | 15 + drivers/common/sfc_efx/base/efx.h | 337 ++- drivers/common/sfc_efx/base/efx_check.h | 6 + drivers/common/sfc_efx/base/efx_impl.h | 86 + drivers/common/sfc_efx/base/efx_mae.c | 1906 ++++++++++++++ drivers/common/sfc_efx/base/efx_mcdi.c | 194 +- drivers/common/sfc_efx/base/efx_mcdi.h | 34 + drivers/common/sfc_efx/base/efx_nic.c | 46 + drivers/common/sfc_efx/base/efx_regs_mcdi.h | 2232 ++++++++++++++++ drivers/common/sfc_efx/base/meson.build | 1 + drivers/common/sfc_efx/base/siena_nic.c | 2 + drivers/common/sfc_efx/efsys.h | 2 + .../sfc_efx/rte_common_sfc_efx_version.map | 30 + drivers/net/sfc/meson.build | 2 + drivers/net/sfc/sfc.c | 52 + drivers/net/sfc/sfc.h | 10 + drivers/net/sfc/sfc_ethdev.c | 7 + drivers/net/sfc/sfc_flow.c | 124 +- drivers/net/sfc/sfc_flow.h | 30 + drivers/net/sfc/sfc_mae.c | 2340 +++++++++++++++++ drivers/net/sfc/sfc_mae.h | 208 ++ drivers/net/sfc/sfc_switch.c | 334 +++ drivers/net/sfc/sfc_switch.h | 53 + 25 files changed, 8039 insertions(+), 74 deletions(-) create mode 100644 drivers/common/sfc_efx/base/efx_mae.c create mode 100644 drivers/net/sfc/sfc_mae.c create mode 100644 drivers/net/sfc/sfc_mae.h create mode 100644 drivers/net/sfc/sfc_switch.c create mode 100644 drivers/net/sfc/sfc_switch.h -- 2.17.1