Message ID | 1603185222-14831-1-git-send-email-arybchenko@solarflare.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2B374A04DD; Tue, 20 Oct 2020 11:20:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 41E1DC824; Tue, 20 Oct 2020 11:14:15 +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 5FE54C325 for <dev@dpdk.org>; Tue, 20 Oct 2020 11:14:06 +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 E483760084 for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:04 +0000 (UTC) Received: from us4-mdac16-3.ut7.mdlocal (unknown [10.7.65.71]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id E47852009A for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:04 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.7.66.41]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 4EA6F1C0051 for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:04 +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 034DB4C0071 for <dev@dpdk.org>; Tue, 20 Oct 2020 09:14:04 +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 10:13:59 +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 10:13:59 +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 09K9DwHL028301 for <dev@dpdk.org>; Tue, 20 Oct 2020 10:13:58 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1]) by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id D71931613A9 for <dev@dpdk.org>; Tue, 20 Oct 2020 10:13:58 +0100 (BST) From: Andrew Rybchenko <arybchenko@solarflare.com> To: <dev@dpdk.org> Date: Tue, 20 Oct 2020 10:12:40 +0100 Message-ID: <1603185222-14831-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1603183709-23420-1-git-send-email-arybchenko@solarflare.com> References: <1603183709-23420-1-git-send-email-arybchenko@solarflare.com> 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 02qXPIvOSq+nxEQtagePGmIEwXO/4UC4n7D3uWJl6tigvYfL0ersMJuvMO5 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: 1603185244-ux8kfJKm2iJI X-PPE-DISP: 1603185244;ux8kfJKm2iJI Subject: [dpdk-dev] [PATCH v2 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
net/sfc: support flow API transfer rules
|
|
Message
Andrew Rybchenko
Oct. 20, 2020, 9:12 a.m. UTC
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
Comments
On 10/20/2020 10:12 AM, Andrew Rybchenko wrote: > 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 Series applied to dpdk-next-net/main, thanks. (Some of the commit logs were longer than 72 chars that I am trying to limit, but I didn't dare to break Ivan's perfect alignment, so I let them be.)
On 10/21/20 2:13 PM, Ferruh Yigit wrote: > On 10/20/2020 10:12 AM, Andrew Rybchenko wrote: >> 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 > > Series applied to dpdk-next-net/main, thanks. > > (Some of the commit logs were longer than 72 chars that I am trying to > limit, but I didn't dare to break Ivan's perfect alignment, so I let > them be.) Thanks, I'm wondering why check-git-log.sh does not complain on it.