smadaminov / ovs-dpdk-meson-issues

VMware Summer 2021
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

HW offload using rte_flow: E-Switch dr is not supported #83

Open williamtu opened 2 years ago

williamtu commented 2 years ago
09T06:24:46Z|00001|netdev_offload_dpdk(dp_netdev_flow_4)|WARN|p0: rte_flow creation failed: 1 (E-Switch dr is not supported).                            
2021-10-09T06:24:46Z|00002|netdev_offload_dpdk(dp_netdev_flow_4)|WARN|p0: Failed flow:   flow create 0 ingress priority 0 group 0 transfer pattern eth type is 0x0800 / ipv4 / end actions count / drop / end   

09T06:24:46Z|00003|netdev_offload_dpdk(dp_netdev_flow_4)|DBG|p0: rte_flow creation failed: 16 (action not supported).       
09T06:24:46Z|00004|netdev_offload_dpdk(dp_netdev_flow_4)|DBG|p0: Failed flow:   flow create 0 ingress priority 0 group 0 pattern eth type is 0x0800 / ipv4 / end actions mark id 1 / rss / end 

DPDK log

PS C:\Users\Administrator> grep offload C:\mydpdk.log                                                                                                            mlx5_net: tunnel offloading is not supported                                                                                                                     mlx5_net: MPLS over GRE/UDP tunnel offloading is no supported                                                                                                    mlx5_net: checksum offloading is supported                                                                                                                       mlx5_net: tunnel offloading is not supported                                                                                                                     mlx5_net: MPLS over GRE/UDP tunnel offloading is no supported                                                                                                    mlx5_net: checksum offloading is supported                                                                                                                       mlx5_net: port 0 has selected Tx function supporting offloads 0000/0000      

OVS init log

Core  0 on numa node 0 assigned port 'p0' rx queue 0 (measured processing cycles 0).                                 
netdev_offload|INFO|p0: Assigned flow API 'dpdk_flow_api'.                                                                            2021-10-
bridge br0: added interface p0 on port 1                            
williamtu commented 2 years ago

try "dv_xmeta_en=1" other_config : {dpdk-extra="-w 0000:83:00.0,representor=[0-1],dv_xmeta_en=1", dpdk-init="true", hw-offload="true"} https://community.mellanox.com/s/article/Basic-Debug-utilities-with-OVS-DPDK-offload-ASAP-Direct

williamtu commented 2 years ago
testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss / end
ETH IPV4 END
Flow rule #0 created

testpmd> flow create 1 ingress pattern eth / end actions drop / end

(crash here)
PS C:\dpdk\build\app>
williamtu commented 2 years ago
testpmd> flow create 0 ingress pattern eth / end actions rss / end
ETH END
ETH IPV4 END
ETH IPV6 END
port_flow_complain(): Caught PMD error type 1 (cause unspecified): hardware refuses to create flow: Unknown error
williamtu commented 2 years ago
Screen Shot 2021-10-15 at 3 46 12 PM

crash at "flow_db_apply"

williamtu commented 2 years ago

flow dump doesn't work

testpmd> flow dump 1 all
port_flow_complain(): Caught PMD error type -1388740670 (unknown type): cause: 0
0007FF7AE461F70, (no stated reason): Invalid argument
Failed to dump flow: Unknown error

testpmd> flow dump 0 all
port_flow_complain(): Caught PMD error type -1388740670 (unknown type): cause: 0
0007FF7AE461F70, (no stated reason): Invalid argument
Failed to dump flow: Unknown error
williamtu commented 2 years ago
testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss / end
ETH IPV4 END
Flow rule #0 created
testpmd> flow dump 0 rule 0
port_flow_complain(): Caught PMD error type -1388740670 (unknown type): cause: 0
0007FF7AE461F70, (no stated reason): Invalid argument