net/enic: support GTP header flow matching
PATCH 1/1 net/enic: support GTP header flow matching
The GTP, GTP-U, GTP-C header fields can be matched, however NIC does not support GTP tunneling so no items after the GTP header can be specified. If a GTP-U or GTP-C item is specified without a preceding UDP item, the UDP destination port is implicitly matched. For GTP, the destination UDP port must be specified but its value is not enforced.
--- doc/guides/nics/enic.rst | 2 + doc/guides/nics/features/enic.ini | 3 + doc/guides/rel_notes/release_21_11.rst | 4 + drivers/net/enic/enic_fm_flow.c | 119 +++++++++++++++++++++++++ 4 files changed, 128 insertions(+)
doc/guides/nics/enic.rst +2 -0
@@ -473,6 +473,8 @@ RTE_MBUF_F_RX_VLAN_STRIPPED mbuf flags would not be set. This mode is enabled wi packets and then receive them normally. These require 1400 series VIC adapters and latest firmware. - RAW items are limited to matching UDP tunnel headers like VXLAN. + - GTP, GTP-C and GTP-U header matching is enabled, however matching items within + the tunnel is not supported. - For 1400 VICs, all flows using the RSS action on a port use same hash configuration. The RETA is ignored. The queues used in the RSS group must be sequential. There is a performance hit if the number of queues is not a power of 2.
doc/guides/nics/features/enic.ini +3 -0
@@ -40,6 +40,9 @@ Usage doc = Y [rte_flow items] eth = Y +gtp = Y +gtpc = Y +gtpu = Y ipv4 = Y ipv6 = Y raw = Y
doc/guides/rel_notes/release_21_11.rst +4 -0
@@ -154,6 +154,10 @@ New Features * Implement support for tunnel offload. * Updated HWRM API to version 1.10.2.44 +* **Updated Cisco enic driver.** + + * Added rte_flow support for matching GTP, GTP-C and GTP-U headers. + * **Updated Intel e1000 emulated driver.** * Added Intel e1000 support on Windows.
drivers/net/enic/enic_fm_flow.c +119 -0
137 lines not on this page · raw message
Signature · 1 line
2.26.2
PATCH v2 1/1 net/enic: support GTP header flow matching
The GTP, GTP-U, GTP-C header fields can be matched, however NIC does not support GTP tunneling so no items after the GTP header can be specified. If a GTP-U or GTP-C item is specified without a preceding UDP item, the UDP destination port is implicitly matched. For GTP, the destination UDP port must be specified but its value is not enforced.
---
v2: Fixed specification of the max enic flowman item
doc/guides/nics/enic.rst | 2 + doc/guides/nics/features/enic.ini | 3 + doc/guides/rel_notes/release_21_11.rst | 4 + drivers/net/enic/enic_fm_flow.c | 124 ++++++++++++++++++++++++- 4 files changed, 129 insertions(+), 4 deletions(-)
doc/guides/nics/enic.rst +2 -0
@@ -473,6 +473,8 @@ RTE_MBUF_F_RX_VLAN_STRIPPED mbuf flags would not be set. This mode is enabled wi packets and then receive them normally. These require 1400 series VIC adapters and latest firmware. - RAW items are limited to matching UDP tunnel headers like VXLAN. + - GTP, GTP-C and GTP-U header matching is enabled, however matching items within + the tunnel is not supported. - For 1400 VICs, all flows using the RSS action on a port use same hash configuration. The RETA is ignored. The queues used in the RSS group must be sequential. There is a performance hit if the number of queues is not a power of 2.
doc/guides/nics/features/enic.ini +3 -0
@@ -40,6 +40,9 @@ Usage doc = Y [rte_flow items] eth = Y +gtp = Y +gtpc = Y +gtpu = Y ipv4 = Y ipv6 = Y raw = Y
doc/guides/rel_notes/release_21_11.rst +4 -0
@@ -154,6 +154,10 @@ New Features * Implement support for tunnel offload. * Updated HWRM API to version 1.10.2.44 +* **Updated Cisco enic driver.** + + * Added rte_flow support for matching GTP, GTP-C and GTP-U headers. + * **Updated Intel e1000 emulated driver.** * Added Intel e1000 support on Windows.
drivers/net/enic/enic_fm_flow.c +120 -4
154 lines not on this page · raw message
Signature · 1 line
2.26.2
PATCH v3 1/1 net/enic: support GTP header flow matching
The GTP, GTP-U, GTP-C header fields can be matched, however NIC does not support GTP tunneling so no items after the GTP header can be specified. If a GTP-U or GTP-C item is specified without a preceding UDP item, the UDP destination port is implicitly matched. For GTP, the destination UDP port must be specified but its value is not enforced.
---
v2: Fixed specification of the max enic flowman item
v3: Fixed endianness of UDP dst port
doc/guides/nics/enic.rst | 2 + doc/guides/nics/features/enic.ini | 3 + doc/guides/rel_notes/release_21_11.rst | 4 + drivers/net/enic/enic_fm_flow.c | 123 ++++++++++++++++++++++++- 4 files changed, 128 insertions(+), 4 deletions(-)
doc/guides/nics/enic.rst +2 -0
@@ -473,6 +473,8 @@ RTE_MBUF_F_RX_VLAN_STRIPPED mbuf flags would not be set. This mode is enabled wi packets and then receive them normally. These require 1400 series VIC adapters and latest firmware. - RAW items are limited to matching UDP tunnel headers like VXLAN. + - GTP, GTP-C and GTP-U header matching is enabled, however matching items within + the tunnel is not supported. - For 1400 VICs, all flows using the RSS action on a port use same hash configuration. The RETA is ignored. The queues used in the RSS group must be sequential. There is a performance hit if the number of queues is not a power of 2.
doc/guides/nics/features/enic.ini +3 -0
@@ -40,6 +40,9 @@ Usage doc = Y [rte_flow items] eth = Y +gtp = Y +gtpc = Y +gtpu = Y ipv4 = Y ipv6 = Y raw = Y
doc/guides/rel_notes/release_21_11.rst +4 -0
@@ -154,6 +154,10 @@ New Features * Implement support for tunnel offload. * Updated HWRM API to version 1.10.2.44 +* **Updated Cisco enic driver.** + + * Added rte_flow support for matching GTP, GTP-C and GTP-U headers. + * **Updated Intel e1000 emulated driver.** * Added Intel e1000 support on Windows.
drivers/net/enic/enic_fm_flow.c +119 -4
153 lines not on this page · raw message
Signature · 1 line
2.26.2
Ferruh Yigit
AppliedQuoted 8 lines · John Daley
The GTP, GTP-U, GTP-C header fields can be matched, however NIC does not support GTP tunneling so no items after the GTP header can be specified. If a GTP-U or GTP-C item is specified without a preceding UDP item, the UDP destination port is implicitly matched. For GTP, the destination UDP port must be specified but its value is not enforced.
Signed-off-by John Daley <[email protected]>Reviewed-by Hyong Youb Kim <[email protected]>
Applied to dpdk-next-net/main, thanks.