net/mlx5: top-level IP-in-IP flow validation rejected since 3d80d35b118e (DV, 25.11.3)
Hi,
On ConnectX-5 / ConnectX-6 with dv_flow_en=1, DPDK 25.11.3 rejects top-level IP-in-IP patterns in flow_dv_validate().
These include:
* eth / ipv4 proto is 4 / ipv4,
* eth / ipv6 proto is 4 / ipv4,
* eth / ipv6 proto is 4 and
* eth / ipv6 proto is 41 / ipv6.
DPDK-22.11.2 accepts them.
Problem reproduction -
* On testpmd, use the below flow rule:
* flow validate 0 ingress pattern eth / ipv6 proto is 4 / end actions queue index 0 / end
Result:
* This fails with "multiple tunnel not supported", or "multiple L3 layers not supported" for proto 41.
The cause is commit 3d80d35b118e ("net/mlx5: fix IPIP tunnel verification"). It changed the pre-validation check in flow_dv_validate() from l3_tunnel_inner to l3_tunnel_outer for IPv4 and IPv6. Which fixed eth / ipv4 / udp / vxlan / eth / ipv4 proto is 4, but a first-level proto 4/41 item is l3_tunnel_outer by definition.
gdb does show item_flags = 0x800001 on entry to the first IPv6 item, and the validator then returns "multiple tunnel". The translate path still uses inner before translation and outer after.
The testpmd console logs are copied to this email below, DPDK-22.11.2 and DPDK-25.11.3.
Regards,
-Rohit.
# testpmd -v -l 2-3,6-7,12-47,50-51,54-55,60-95 \ --proc-type=primary \ --file-prefix=dpdk_numa0 \ --socket-mem=32768,32768 \ -a 0000:3b:00.0,mr_mempool_reg_en=0 \ --log-level=pmd.net.mlx5:debug \ -- \ -i --numa --burst=64 --cmdline-file=/tmp/flow.txt \ --rxd=4096 --txd=4096 \ --rxq=4 --txq=4 \ --nb-cores=4 \ --forward-mode=io \ --auto-start EAL: Detected CPU lcores: 96 EAL: Detected NUMA nodes: 2 EAL: RTE Version: 'DPDK 22.11.2' EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/dpdk_numa0/mp_socket EAL: Forcing IOVA as 'PA' because KNI module is loaded EAL: Selected IOVA mode 'PA' EAL: VFIO support initialized EAL: Probe PCI driver: mlx5_pci (15b3:1017) device: 0000:3b:00.0 (socket 0) mlx5_net: cannot bind mlx5 socket: No such file or directory mlx5_net: Cannot initialize socket: No such file or directory mlx5_net: Checking device "mlx5_6" mlx5_net: Checking device "mlx5_1" mlx5_net: Checking device "mlx5_3" mlx5_net: Checking device "mlx5_5" mlx5_net: Checking device "mlx5_7" mlx5_net: Checking device "mlx5_0" mlx5_net: PCI information matches for device "mlx5_0" mlx5_net: Checking device "mlx5_2" mlx5_net: Checking device "mlx5_4" mlx5_net: naming Ethernet device "0000:3b:00.0" mlx5_net: DV flow is supported. mlx5_net: Enhanced MPW is supported. mlx5_net: MPLS over GRE/UDP tunnel offloading is not supported. mlx5_net: Checksum offloading is supported. mlx5_net: VLAN stripping is supported. mlx5_net: Maximum Rx indirection table size is 2048 mlx5_net: SWP support: 7 mlx5_net: min_single_stride_log_num_of_bytes: 6 mlx5_net: max_single_stride_log_num_of_bytes: 13 mlx5_net: min_single_wqe_log_num_of_strides: 3 mlx5_net: max_single_wqe_log_num_of_strides: 16 mlx5_net: min_stride_wqe_log_size: 14 mlx5_net: supported_qpts: 256 mlx5_net: Device supports Multi-Packet RQ. mlx5_net: Tunnel offloading is supported for [VXLAN][GRE][GENEVE] mlx5_net: Timestamp counter frequency 78125 kHz. mlx5_net: Packet pacing is supported. mlx5_net: Cross channel ops are supported. mlx5_net: WQE index ignore is supported. mlx5_net: Non-wire SQ feature is supported. mlx5_net: Static WQE SQ feature is supported (24) mlx5_net: WQE rate PP mode is not supported. mlx5_net: WQE rate mode is required for packet pacing. mlx5_net: E-Switch DV flow is not supported. mlx5_net: LRO is allowed. mlx5_net: LRO minimal size of TCP segment required for coalescing is 1348 bytes. mlx5_net: FCS stripping configuration is supported mlx5_net: "tx_pp" is 0. mlx5_net: "tx_skew" is 0. mlx5_net: "reclaim_mode" is 0. mlx5_net: "dv_esw_en" is 0. mlx5_net: "dv_flow_en" is 1. mlx5_net: "dv_xmeta_en" is 0. mlx5_net: "dv_miss_info" is 0. mlx5_net: "l3_vxlan_en" is 0. mlx5_net: "vf_nl_en" is 1. mlx5_net: "lacp_by_user" is 0. mlx5_net: "decap_en" is 1. mlx5_net: "allow_duplicate_pattern" is 1. mlx5_net: "fdb_def_rule_en" is 1. mlx5_net: "repr_matching_en" is 1. mlx5_net: dev_port=1 bus=pci pci=0000:3b:00.0 master=0 representor=0 pf_bond=-1
mlx5_net: dev_port-1 new domain_id=0
mlx5_net: The REG_C meter uses is 6mlx5_net: Sampler enabled!mlx5_net: enhanced MPS is enabledmlx5_net: LRO session timeout set to 8 usec.mlx5_net: Rx CQE compression is supported.mlx5_net: Tx VLAN insertion is supportedmlx5_net: min tx inline configured: 0mlx5_net: VLAN insertion in WQE is not supported.mlx5_net: "rxq_pkt_pad_en" is 0.mlx5_net: "rxq_cqe_comp_en" is 1.mlx5_net: "cqe_comp_fmt" is 0.mlx5_net: "rx_vec_en" is 1.mlx5_net: Standard "delay_drop" is 0.mlx5_net: Hairpin "delay_drop" is 0.mlx5_net: "max_dump_files_num" is 128.mlx5_net: "log_hp_size" is 4294967295.mlx5_net: "mprq_en" is 0.mlx5_net: "mprq_log_stride_num" is 6.mlx5_net: "mprq_log_stride_size" is 0.mlx5_net: "mprq_max_memcpy_len" is 128.mlx5_net: "rxqs_min_mprq" is 12.mlx5_net: "lro_timeout_usec" is 8.mlx5_net: "txq_mpw_en" is 2.mlx5_net: "txqs_min_inline" is -1.mlx5_net: "txq_inline_min" is 0.mlx5_net: "txq_inline_max" is -1.mlx5_net: "txq_inline_mpw" is -1.mlx5_net: "tx_wqe_field_ntstore" is 0.mlx5_net: "vec_rx_wqe_field_ntstore" is 0.mlx5_net: port 0 MAC address is 98:03:9B:97:4F:C6mlx5_net: port 0 MTU is 5102mlx5_net: port 0 forcing Ethernet interface upmlx5_net: Port 0 Rx CQE compression is enabled, format 0.
:
:
testpmd>
testpmd>
testpmd>
testpmd> flow validate 0 ingress pattern eth / ipv4 proto is 4 / ipv4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd> flow validate 0 ingress pattern eth / ipv6 proto is 4 / ipv4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd> flow validate 0 ingress pattern eth / ipv6 proto is 4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd> flow validate 0 ingress pattern eth / ipv6 proto is 41 / ipv6 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd> flow validate 0 ingress pattern eth / ipv4 proto is 41 / ipv6 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd> flow validate 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 proto is 4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd> flow validate 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 proto is 41 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd> flow validate 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv6 proto is 4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd>
testpmd>
testpmd> flow validate 0 ingress pattern eth / ipv4 proto is 4 / ipv4 proto is 4 / ipv4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7ffd782c9cd0, multiple tunnel not supported: Invalid argument testpmd> flow validate 0 ingress pattern eth / ipv6 proto is 4 / ipv4 proto is 4 / ipv4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7ffd782c9cd0, multiple tunnel not supported: Invalid argument testpmd>
testpmd>
testpmd> flow validate 0 ingress pattern eth / ipv6 / ipv4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7ffd782c9cd0, multiple L3 layers not supported: Operation not supported testpmd>
# testpmd -v -l 16-123,140-247 \ --proc-type=primary \ --file-prefix=dpdk_numa0 \ --socket-mem=32768,32768,32768,32768 \ -a 0000:41:00.0,mr_mempool_reg_en=0 \ --log-level=pmd.net.mlx5:debug \ -- \ -i --numa --burst=64 \ --rxd=4096 --txd=4096 \ --rxq=4 --txq=4 \ --nb-cores=4 \ --forward-mode=io \ --auto-start EAL: Detected CPU lcores: 248 EAL: Detected NUMA nodes: 4 EAL: RTE Version: 'DPDK 25.11.3' EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/dpdk_numa0/mp_socket EAL: Selected IOVA mode 'PA' EAL: VFIO support initialized mlx5_net: cannot bind mlx5 socket: No such file or directory mlx5_net: Cannot initialize socket: No such file or directory mlx5_net: Checking device "mlx5_6" mlx5_net: Checking device "mlx5_1" mlx5_net: Checking device "mlx5_3" mlx5_net: Checking device "mlx5_5" mlx5_net: Checking device "mlx5_7" mlx5_net: Checking device "mlx5_0" mlx5_net: Checking device "mlx5_2" mlx5_net: Unable to get Multiport E-Switch state by Netlink. mlx5_net: PCI information matches for device "mlx5_2" mlx5_net: Checking device "mlx5_4" mlx5_net: IB device mlx5_2 has 1 uplinks, 0 host PFs mlx5_net: naming Ethernet device "0000:41:00.0" mlx5_net: DV flow is supported. mlx5_net: Enhanced MPW is supported. mlx5_net: MPLS over GRE/UDP tunnel offloading is not supported. mlx5_net: Checksum offloading is supported. mlx5_net: VLAN stripping is supported. mlx5_net: Maximum Rx indirection table size is 2048 mlx5_net: SWP support: 7 mlx5_net: min_single_stride_log_num_of_bytes: 6 mlx5_net: max_single_stride_log_num_of_bytes: 13 mlx5_net: min_single_wqe_log_num_of_strides: 3 mlx5_net: max_single_wqe_log_num_of_strides: 16 mlx5_net: min_stride_wqe_log_size: 14 mlx5_net: supported_qpts: 256 mlx5_net: Device supports Multi-Packet RQ. mlx5_net: Tunnel offloading is supported for [VXLAN][GRE][GENEVE] mlx5_net: Timestamp counter frequency 1000000 kHz. mlx5_net: Packet pacing is supported. mlx5_net: Cross channel ops are supported. mlx5_net: WQE index ignore is supported. mlx5_net: Non-wire SQ feature is supported. mlx5_net: Static WQE SQ feature is supported (24) mlx5_net: WQE rate PP mode is not supported. mlx5_net: WQE rate mode is required for packet pacing. mlx5_net: E-Switch DV flow is not supported. mlx5_net: LRO is allowed. mlx5_net: LRO minimal size of TCP segment required for coalescing is 1348 bytes. mlx5_net: FCS stripping configuration is not supported mlx5_net: "tx_pp" is 0. mlx5_net: "tx_skew" is 0. mlx5_net: "reclaim_mode" is 0. mlx5_net: "dv_esw_en" is 0. mlx5_net: "dv_flow_en" is 1. mlx5_net: "dv_xmeta_en" is 0. mlx5_net: "dv_miss_info" is 0. mlx5_net: "l3_vxlan_en" is 0. mlx5_net: "vf_nl_en" is 1. mlx5_net: "lacp_by_user" is 0. mlx5_net: "decap_en" is 1. mlx5_net: "allow_duplicate_pattern" is 1. mlx5_net: "fdb_def_rule_en" is 1. mlx5_net: "txq_mem_algn" is 12. mlx5_net: Physical device is created, guid=10128940821501244160. mlx5_net: ASO register: REG_C3 mlx5_net: dev_port=1 bus=pci pci=0000:41:00.0 master=0 representor=0 pf_bond=-1 mpesw_port=-1 mpesw_uplink=0 mlx5_net: dev_port-1 new domain_id=0
mlx5_net: Flow Hit ASO is supported.mlx5_net: CT ASO is supported.mlx5_net: Sampler enabled!mlx5_net: LAG Rx Port Affinity enabledmlx5_net: The number of lag ports is 0mlx5_net: enhanced MPS is enabledmlx5_net: LRO session timeout set to 8 usec.mlx5_net: Rx CQE compression is supported.mlx5_net: Tx VLAN insertion is supportedmlx5_net: min tx inline configured: 0mlx5_net: VLAN insertion in WQE is not supported.mlx5_net: "rxq_pkt_pad_en" is 0.mlx5_net: "rxq_cqe_comp_en" is 1.mlx5_net: "cqe_comp_fmt" is 0.mlx5_net: "enh_cqe_comp" is 0.mlx5_net: "rx_vec_en" is 1.mlx5_net: Standard "delay_drop" is 0.mlx5_net: Hairpin "delay_drop" is 0.mlx5_net: "max_dump_files_num" is 128.mlx5_net: "log_hp_size" is 4294967295.mlx5_net: "mprq_en" is 0.mlx5_net: "mprq_log_stride_num" is 6.mlx5_net: "mprq_log_stride_size" is 4294967295.mlx5_net: "mprq_max_memcpy_len" is 128.mlx5_net: "rxqs_min_mprq" is 12.mlx5_net: "lro_timeout_usec" is 8.mlx5_net: "txq_mpw_en" is 2.mlx5_net: "txqs_min_inline" is -1.mlx5_net: "txq_inline_min" is 0.mlx5_net: "txq_inline_max" is -1.mlx5_net: "txq_inline_mpw" is -1.mlx5_net: "tx_wqe_field_ntstore" is 0.mlx5_net: "vec_rx_wqe_field_ntstore" is 0.mlx5_net: port 0 minimum MTU is 68mlx5_net: port 0 maximum MTU is 9978mlx5_net: port 0 MAC address is 8C:91:3A:88:F3:00mlx5_net: port 0 MTU is 1500mlx5_net: port 0 forcing Ethernet interface upmlx5_net: Port 0 Rx CQE compression is enabled, format 0.mlx5_net: metadata mode 0
:
:
testpmd>
testpmd>
testpmd>
testpmd> flow validate 0 ingress pattern eth / ipv4 proto is 4 / ipv4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7fff788f3e08, multiple tunnel not supported: Invalid argument testpmd> flow validate 0 ingress pattern eth / ipv6 proto is 4 / ipv4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7fff788f3e08, multiple tunnel not supported: Invalid argument testpmd> flow validate 0 ingress pattern eth / ipv6 proto is 4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7fff788f3e08, multiple tunnel not supported: Invalid argument testpmd> flow validate 0 ingress pattern eth / ipv6 proto is 41 / ipv6 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7fff788f3e28, multiple L3 layers not supported: Operation not supported testpmd> flow validate 0 ingress pattern eth / ipv4 proto is 41 / ipv6 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7fff788f3e28, multiple L3 layers not supported: Operation not supported testpmd>
testpmd>
testpmd>
testpmd> flow validate 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 proto is 4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd> flow validate 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 proto is 41 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd> flow validate 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv6 proto is 4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0
Flow rule validated
testpmd>
testpmd>
testpmd> flow validate 0 ingress pattern eth / ipv4 proto is 4 / ipv4 proto is 4 / ipv4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7fff788f3e08, multiple tunnel not supported: Invalid argument testpmd> flow validate 0 ingress pattern eth / ipv6 proto is 4 / ipv4 proto is 4 / ipv4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7fff788f3e08, multiple tunnel not supported: Invalid argument testpmd>
testpmd>
testpmd> flow validate 0 ingress pattern eth / ipv6 / ipv4 / end actions queue index 0 / endmlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARDmlx5_net: port 0 group=0 table=0port_flow_complain(): Caught PMD error type 13 (specific pattern item): cause: 0x7fff788f3e28, multiple L3 layers not supported: Operation not supported testpmd>
Disclaimer:
This communication (including any attachments) is intended for the use of the intended recipient(s) only and may contain information that is considered confidential, proprietary, sensitive and/or otherwise legally protected. Any unauthorized use or dissemination of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. Thank you for your cooperation. Please note that if the recipient of this communication is counterparty under a contract (or any other business relationship) with Sandvine Corporation or Procera Networks, Inc. (or any of their affiliates) (each, a "Sandvine Entity"), this communication is made by AppLogic Networks OpCo I LLC (or any of its applicable affiliates) (collectively, a "AppLogic Entities") solely on behalf of the applicable Sandvine Entity pursuant to the terms of the Transition Services Agreement executed between the Sandvine Entities and AppLogic Entities.
'