net/ice: support GTPU TEID pattern for switch filter
PATCH 1/1 net/ice: support GTPU TEID pattern for switch filter
Enable GTPU pattern for CVL switch filter. This patch only supports outer l3/l4 filtering.
--- doc/guides/rel_notes/release_21_05.rst | 3 + drivers/net/ice/ice_switch_filter.c | 91 ++++++++++++++++++++++++++ 2 files changed, 94 insertions(+)
doc/guides/rel_notes/release_21_05.rst +3 -0
@@ -91,6 +91,9 @@ New Features * Added a command line option to configure forced speed for Ethernet port. ``dpdk-testpmd -c 0xff -- -i --eth-link-speed N`` +* **Updated Intel ice driver.** + + * Added GTP TEID support for DCF switch filter. Removed Items -------------
drivers/net/ice/ice_switch_filter.c +91 -0
121 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH v2 1/1 net/ice: support GTPU TEID pattern for switch filter
Enable GTPU pattern for CVL switch filter. Support teid and qfi field of GTPU pattern. Patterns without inner l3/l4 field support outer dst/src ip. Patterns with inner l3/l4 field only support inner dst/src ip and inner dst/src port.
+-----------------------------------+-------------------------------------+ | Pattern | Input Set | +-----------------------------------+-------------------------------------+ | pattern_eth_ipv4_gtpu | teid, dst/src ip | | pattern_eth_ipv6_gtpu | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | +-----------------------------------+-------------------------------------+
--- doc/guides/rel_notes/release_21_05.rst | 4 + drivers/net/ice/base/ice_protocol_type.h | 28 ++- drivers/net/ice/base/ice_switch.c | 184 +++++++++++++- drivers/net/ice/ice_switch_filter.c | 298 ++++++++++++++++++++++- 4 files changed, 492 insertions(+), 22 deletions(-)
doc/guides/rel_notes/release_21_05.rst +4 -0
@@ -136,6 +136,10 @@ New Features * Added flow filter to support GTPU inner L3/L4 fields matching. +* **Updated Intel ice driver.** + + * Added GTP TEID support for DCF switch filter. + Removed Items -------------
drivers/net/ice/base/ice_protocol_type.h +24 -4
@@ -75,6 +75,30 @@ enum ice_sw_tunnel_type {ICE_SW_TUN_GTP ,ICE_SW_TUN_IPV4_GTPU_NO_PAY ,ICE_SW_TUN_IPV6_GTPU_NO_PAY , +ICE_SW_TUN_IPV4_GTPU_IPV4 , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4 , +ICE_SW_TUN_IPV4_GTPU_IPV4_UDP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4_UDP , +ICE_SW_TUN_IPV4_GTPU_IPV4_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4_TCP , +ICE_SW_TUN_IPV4_GTPU_IPV6 , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6 , +ICE_SW_TUN_IPV4_GTPU_IPV6_UDP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6_UDP , +ICE_SW_TUN_IPV4_GTPU_IPV6_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6_TCP , +ICE_SW_TUN_IPV6_GTPU_IPV4 , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4 , +ICE_SW_TUN_IPV6_GTPU_IPV4_UDP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4_UDP , +ICE_SW_TUN_IPV6_GTPU_IPV4_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4_TCP , +ICE_SW_TUN_IPV6_GTPU_IPV6 , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6 , +ICE_SW_TUN_IPV6_GTPU_IPV6_UDP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6_UDP , +ICE_SW_TUN_IPV6_GTPU_IPV6_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6_TCP ,ICE_SW_TUN_PPPOE ,ICE_SW_TUN_PPPOE_PAY , ICE_SW_TUN_PPPOE_IPV4,
@@ -105,10 +129,6 @@ enum ice_sw_tunnel_type {ICE_SW_TUN_PPPOE_PAY_QINQ ,ICE_SW_TUN_PPPOE_IPV4_QINQ ,ICE_SW_TUN_PPPOE_IPV6_QINQ , -ICE_SW_TUN_IPV4_GTPU_IPV4 , -ICE_SW_TUN_IPV4_GTPU_IPV6 , -ICE_SW_TUN_IPV6_GTPU_IPV4 , -ICE_SW_TUN_IPV6_GTPU_IPV6 , ICE_ALL_TUNNELS /* All tunnel types including NVGRE */ };
drivers/net/ice/base/ice_switch.c +171 -13
222 lines not on this page · raw message
drivers/net/ice/ice_switch_filter.c +293 -5
364 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH v3 1/1 net/ice: support GTPU TEID pattern for switch filter
In reply to YuyingEnable GTPU pattern for CVL switch filter. Support teid and qfi field of GTPU pattern. Patterns without inner l3/l4 field support outer dst/src ip. Patterns with inner l3/l4 field only support inner dst/src ip and inner dst/src port.
+-----------------------------------+-------------------------------------+ | Pattern | Input Set | +-----------------------------------+-------------------------------------+ | pattern_eth_ipv4_gtpu | teid, dst/src ip | | pattern_eth_ipv6_gtpu | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | +-----------------------------------+-------------------------------------+
--- doc/guides/rel_notes/release_21_05.rst | 4 + drivers/net/ice/base/ice_protocol_type.h | 28 ++- drivers/net/ice/base/ice_switch.c | 275 ++++++++++++++++++++-- drivers/net/ice/ice_switch_filter.c | 288 ++++++++++++++++++++++- 4 files changed, 571 insertions(+), 24 deletions(-)
doc/guides/rel_notes/release_21_05.rst +4 -0
@@ -97,6 +97,10 @@ New Features * Added flow filter to support GTPU inner L3/L4 fields matching. +* **Updated Intel ice driver.** + + * Added GTP TEID support for DCF switch filter. + * **Updated NXP DPAA driver.** * Added support for shared ethernet interface.
drivers/net/ice/base/ice_protocol_type.h +24 -4
@@ -75,6 +75,30 @@ enum ice_sw_tunnel_type {ICE_SW_TUN_GTP ,ICE_SW_TUN_IPV4_GTPU_NO_PAY ,ICE_SW_TUN_IPV6_GTPU_NO_PAY , +ICE_SW_TUN_IPV4_GTPU_IPV4 , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4 , +ICE_SW_TUN_IPV4_GTPU_IPV4_UDP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4_UDP , +ICE_SW_TUN_IPV4_GTPU_IPV4_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4_TCP , +ICE_SW_TUN_IPV4_GTPU_IPV6 , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6 , +ICE_SW_TUN_IPV4_GTPU_IPV6_UDP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6_UDP , +ICE_SW_TUN_IPV4_GTPU_IPV6_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6_TCP , +ICE_SW_TUN_IPV6_GTPU_IPV4 , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4 , +ICE_SW_TUN_IPV6_GTPU_IPV4_UDP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4_UDP , +ICE_SW_TUN_IPV6_GTPU_IPV4_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4_TCP , +ICE_SW_TUN_IPV6_GTPU_IPV6 , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6 , +ICE_SW_TUN_IPV6_GTPU_IPV6_UDP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6_UDP , +ICE_SW_TUN_IPV6_GTPU_IPV6_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6_TCP ,ICE_SW_TUN_PPPOE ,ICE_SW_TUN_PPPOE_PAY , ICE_SW_TUN_PPPOE_IPV4,
@@ -105,10 +129,6 @@ enum ice_sw_tunnel_type {ICE_SW_TUN_PPPOE_PAY_QINQ ,ICE_SW_TUN_PPPOE_IPV4_QINQ ,ICE_SW_TUN_PPPOE_IPV6_QINQ , -ICE_SW_TUN_IPV4_GTPU_IPV4 , -ICE_SW_TUN_IPV4_GTPU_IPV6 , -ICE_SW_TUN_IPV6_GTPU_IPV4 , -ICE_SW_TUN_IPV6_GTPU_IPV6 , ICE_ALL_TUNNELS /* All tunnel types including NVGRE */ };
drivers/net/ice/base/ice_switch.c +260 -15
346 lines not on this page · raw message
drivers/net/ice/ice_switch_filter.c +283 -5
354 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH v4 1/1 net/ice: support GTPU TEID pattern for switch filter
In reply to YuyingEnable GTPU pattern for CVL switch filter. Support teid and qfi field of GTPU pattern. Patterns without inner l3/l4 field support outer dst/src ip. Patterns with inner l3/l4 field only support inner dst/src ip and inner dst/src port.
+-----------------------------------+-------------------------------------+ | Pattern | Input Set | +-----------------------------------+-------------------------------------+ | pattern_eth_ipv4_gtpu | teid, dst/src ip | | pattern_eth_ipv6_gtpu | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | +-----------------------------------+-------------------------------------+
--- doc/guides/rel_notes/release_21_05.rst | 1 + drivers/net/ice/base/ice_protocol_type.h | 20 ++ drivers/net/ice/base/ice_switch.c | 263 ++++++++++++++++++--- drivers/net/ice/base/ice_switch.h | 5 + drivers/net/ice/ice_switch_filter.c | 288 ++++++++++++++++++++++- 5 files changed, 544 insertions(+), 33 deletions(-)
doc/guides/rel_notes/release_21_05.rst +1 -0
@@ -125,6 +125,7 @@ New Features * **Updated Intel ice driver.** * Added Intel ice support on Windows. + * Added GTPU TEID support for DCF switch filter. * **Updated Marvell OCTEON TX2 ethdev driver.**
drivers/net/ice/base/ice_protocol_type.h +20 -0
@@ -76,6 +76,26 @@ enum ice_sw_tunnel_type {ICE_SW_TUN_GTP ,ICE_SW_TUN_IPV4_GTPU_NO_PAY ,ICE_SW_TUN_IPV6_GTPU_NO_PAY , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4 , +ICE_SW_TUN_IPV4_GTPU_IPV4_UDP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4_UDP , +ICE_SW_TUN_IPV4_GTPU_IPV4_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6 , +ICE_SW_TUN_IPV4_GTPU_IPV6_UDP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6_UDP , +ICE_SW_TUN_IPV4_GTPU_IPV6_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4 , +ICE_SW_TUN_IPV6_GTPU_IPV4_UDP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4_UDP , +ICE_SW_TUN_IPV6_GTPU_IPV4_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6 , +ICE_SW_TUN_IPV6_GTPU_IPV6_UDP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6_UDP , +ICE_SW_TUN_IPV6_GTPU_IPV6_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6_TCP ,ICE_SW_TUN_PPPOE ,ICE_SW_TUN_PPPOE_PAY , ICE_SW_TUN_PPPOE_IPV4,
drivers/net/ice/base/ice_switch.c +235 -28
343 lines not on this page · raw message
drivers/net/ice/base/ice_switch.h +5 -0
@@ -216,6 +216,11 @@ struct ice_adv_lkup_elem {union ice_prot_hdr m_u;/* Mask of header values to match */ }; +struct ice_prof_type_entry { +u16 prof_id; +enum ice_sw_tunnel_type type; +}; +struct ice_sw_act_ctrl {/* Source VSI for LOOKUP_TX or source port for LOOKUP_RX */ u16 src;
drivers/net/ice/ice_switch_filter.c +283 -5
354 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH v5 1/2 net/ice: support GTPU TEID pattern for switch filter
In reply to YuyingEnable GTPU pattern for CVL switch filter. Support teid and qfi field of GTPU pattern. Patterns without inner l3/l4 field support outer dst/src ip. Patterns with inner l3/l4 field only support inner dst/src ip and inner dst/src port.
+-----------------------------------+-------------------------------------+ | Pattern | Input Set | +-----------------------------------+-------------------------------------+ | pattern_eth_ipv4_gtpu | teid, dst/src ip | | pattern_eth_ipv6_gtpu | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | +-----------------------------------+-------------------------------------+
--- doc/guides/rel_notes/release_21_05.rst | 1 + drivers/net/ice/ice_switch_filter.c | 288 ++++++++++++++++++++++++- 2 files changed, 284 insertions(+), 5 deletions(-)
doc/guides/rel_notes/release_21_05.rst +1 -0
@@ -125,6 +125,7 @@ New Features * **Updated Intel ice driver.** * Added Intel ice support on Windows. + * Added GTPU TEID support for DCF switch filter. * **Updated Marvell OCTEON TX2 ethdev driver.**
drivers/net/ice/ice_switch_filter.c +283 -5
354 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH v5 2/2 net/ice/base: support GTPU for DCF switch filter
Enable GTPU filtering for DCF switch filter.
--- drivers/net/ice/base/ice_protocol_type.h | 20 ++ drivers/net/ice/base/ice_switch.c | 263 ++++++++++++++++++++--- drivers/net/ice/base/ice_switch.h | 5 + 3 files changed, 260 insertions(+), 28 deletions(-)
drivers/net/ice/base/ice_protocol_type.h +20 -0
@@ -76,6 +76,26 @@ enum ice_sw_tunnel_type {ICE_SW_TUN_GTP ,ICE_SW_TUN_IPV4_GTPU_NO_PAY ,ICE_SW_TUN_IPV6_GTPU_NO_PAY , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4 , +ICE_SW_TUN_IPV4_GTPU_IPV4_UDP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4_UDP , +ICE_SW_TUN_IPV4_GTPU_IPV4_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6 , +ICE_SW_TUN_IPV4_GTPU_IPV6_UDP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6_UDP , +ICE_SW_TUN_IPV4_GTPU_IPV6_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4 , +ICE_SW_TUN_IPV6_GTPU_IPV4_UDP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4_UDP , +ICE_SW_TUN_IPV6_GTPU_IPV4_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6 , +ICE_SW_TUN_IPV6_GTPU_IPV6_UDP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6_UDP , +ICE_SW_TUN_IPV6_GTPU_IPV6_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6_TCP ,ICE_SW_TUN_PPPOE ,ICE_SW_TUN_PPPOE_PAY , ICE_SW_TUN_PPPOE_IPV4,
drivers/net/ice/base/ice_switch.c +235 -28
343 lines not on this page · raw message
drivers/net/ice/base/ice_switch.h +5 -0
@@ -216,6 +216,11 @@ struct ice_adv_lkup_elem {union ice_prot_hdr m_u;/* Mask of header values to match */ }; +struct ice_prof_type_entry { +u16 prof_id; +enum ice_sw_tunnel_type type; +}; +struct ice_sw_act_ctrl {/* Source VSI for LOOKUP_TX or source port for LOOKUP_RX */ u16 src;
Signature · 1 line
2.25.1
PATCH v6 1/2 net/ice/base: support GTPU for DCF switch filter
In reply to YuyingEnable GTPU filtering for DCF switch filter.
--- drivers/net/ice/base/ice_protocol_type.h | 20 ++ drivers/net/ice/base/ice_switch.c | 263 ++++++++++++++++++++--- drivers/net/ice/base/ice_switch.h | 5 + 3 files changed, 260 insertions(+), 28 deletions(-)
drivers/net/ice/base/ice_protocol_type.h +20 -0
@@ -76,6 +76,26 @@ enum ice_sw_tunnel_type {ICE_SW_TUN_GTP ,ICE_SW_TUN_IPV4_GTPU_NO_PAY ,ICE_SW_TUN_IPV6_GTPU_NO_PAY , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4 , +ICE_SW_TUN_IPV4_GTPU_IPV4_UDP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4_UDP , +ICE_SW_TUN_IPV4_GTPU_IPV4_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV4_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6 , +ICE_SW_TUN_IPV4_GTPU_IPV6_UDP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6_UDP , +ICE_SW_TUN_IPV4_GTPU_IPV6_TCP , +ICE_SW_TUN_IPV4_GTPU_EH_IPV6_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4 , +ICE_SW_TUN_IPV6_GTPU_IPV4_UDP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4_UDP , +ICE_SW_TUN_IPV6_GTPU_IPV4_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV4_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6 , +ICE_SW_TUN_IPV6_GTPU_IPV6_UDP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6_UDP , +ICE_SW_TUN_IPV6_GTPU_IPV6_TCP , +ICE_SW_TUN_IPV6_GTPU_EH_IPV6_TCP ,ICE_SW_TUN_PPPOE ,ICE_SW_TUN_PPPOE_PAY , ICE_SW_TUN_PPPOE_IPV4,
drivers/net/ice/base/ice_switch.c +235 -28
343 lines not on this page · raw message
drivers/net/ice/base/ice_switch.h +5 -0
@@ -216,6 +216,11 @@ struct ice_adv_lkup_elem {union ice_prot_hdr m_u;/* Mask of header values to match */ }; +struct ice_prof_type_entry { +u16 prof_id; +enum ice_sw_tunnel_type type; +}; +struct ice_sw_act_ctrl {/* Source VSI for LOOKUP_TX or source port for LOOKUP_RX */ u16 src;
Signature · 1 line
2.25.1
PATCH v6 2/2 net/ice: support GTPU TEID pattern for switch filter
Enable GTPU pattern for CVL switch filter. Support teid and qfi field of GTPU pattern. Patterns without inner l3/l4 field support outer dst/src ip. Patterns with inner l3/l4 field only support inner dst/src ip and inner dst/src port.
+-----------------------------------+-------------------------------------+ | Pattern | Input Set | +-----------------------------------+-------------------------------------+ | pattern_eth_ipv4_gtpu | teid, dst/src ip | | pattern_eth_ipv6_gtpu | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | +-----------------------------------+-------------------------------------+
--- doc/guides/rel_notes/release_21_05.rst | 1 + drivers/net/ice/ice_switch_filter.c | 288 ++++++++++++++++++++++++- 2 files changed, 284 insertions(+), 5 deletions(-)
doc/guides/rel_notes/release_21_05.rst +1 -0
@@ -125,6 +125,7 @@ New Features * **Updated Intel ice driver.** * Added Intel ice support on Windows. + * Added GTPU TEID support for DCF switch filter. * **Updated Marvell OCTEON TX2 ethdev driver.**
drivers/net/ice/ice_switch_filter.c +283 -5
354 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 55 lines
-----Original Message-----
From: Zhang, Yuying <[email protected]>
Sent: Thursday, April 15, 2021 6:48 PM
To: [email protected]; Zhang, Qi Z <[email protected]>
Cc: Zhang, Yuying <[email protected]>
Subject: [PATCH v6 2/2] net/ice: support GTPU TEID pattern for switch filterEnable GTPU pattern for CVL switch filter. Support teid and qfi field of GTPU pattern. Patterns without inner l3/l4 field support outer dst/src ip. Patterns with inner l3/l4 field only support inner dst/src ip and inner dst/src port.
+-----------------------------------+-------------------------------------+ | Pattern | Input Set | +-----------------------------------+-------------------------------------+ | pattern_eth_ipv4_gtpu | teid, dst/src ip | | pattern_eth_ipv6_gtpu | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv4_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv4_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv4_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6 | teid, dst/src ip | | pattern_eth_ipv6_gtpu_ipv6_tcp | teid, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_ipv6_udp | teid, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src | port | pattern_eth_ipv4_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv4_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv4_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src | port | pattern_eth_ipv4_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv4 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv4_tcp | teid, qfi, dst/src ip, dst/src | port | pattern_eth_ipv6_gtpu_eh_ipv4_udp | teid, qfi, dst/src ip, dst/src port | | pattern_eth_ipv6_gtpu_eh_ipv6 | teid, qfi, dst/src ip | | pattern_eth_ipv6_gtpu_eh_ipv6_tcp | teid, qfi, dst/src ip, dst/src | port | pattern_eth_ipv6_gtpu_eh_ipv6_udp | teid, qfi, dst/src ip, | dst/src port | +-----------------------------------+-------------------------------------+
Quoted 1 line
Signed-off-by Yuying Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
Re: [dpdk-dev] [PATCH v6 1/2] net/ice/base: support GTPU for DCF switch filter
In reply to Yuying ZhangQuoted 9 lines
-----Original Message-----
From: Zhang, Yuying <[email protected]>
Sent: Thursday, April 15, 2021 6:48 PM
To: [email protected]; Zhang, Qi Z <[email protected]>
Cc: Zhang, Yuying <[email protected]>
Subject: [PATCH v6 1/2]net/ice/base: support GTPU for DCF switch filter
Quoted 3 lines
Enable GTPU filtering for DCF switch filter.
Signed-off-by Yuying Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi