scalablefunctions
scalablefunctions copied to clipboard
SF support for rte_flow offloading
Hi community and authors,
As in the official document [1] states, SFs support E-Switch representation offload like existing PF and VF representors. However, a simple rte_flow rule cannot be installed in a working SF setup (with Mellanox ConnectX-6 Dx). The installed the flow rule is simple:
flow create 1 ingress transfer pattern eth / end actions port_id id 0 / end
In this flow rule, port 1 is the representor of a PF and port 0 is the representor of a created SF. The following error was returned back:
port_flow_complain(): Caught PMD error type 15 (action configuration): cause: 0x7ffc5abd74a8, failed to obtain E-Switch port id for port: Invalid argument
testpmd app is started with the EAL parameters -a 0000:3b:00.0 -a auxiliary:mlx5_core.sf.21
.
So, it would be appreciated if someone could give a hint on the following questions
- to which extend, offloading is supported with SF?
- if offloading is well supported as for VF, what could be the reason such error is returned.
Thanks in advance.
[1] https://docs.nvidia.com/doca/archive/doca-v1.1/pdf/scalable-functions.pdf