On 2/4/2021 9:18 PM, William Tu wrote:
On Thu, Jul 30, 2020 at 7:55 PM Toshiaki Makita
<[email protected]> wrote:
The following commit will introduce another offload driver using XDP.
When using afxdp netdev, both of TC and XDP will be supported, so let's
add an other_config to specify which offload driver is preferable.
When not specified and multiple offload drivers can be used, TC will be
used if netdev supports it.
Signed-off-by: Toshiaki Makita <[email protected]>
---
The implementation looks good to me. Please also add "offload-driver"
to the vswitch.xml.
About the interface, currently people are just setting
$ ovs-vsctl set Open_vSwitch . other_config:hw-offload=true
and assume tc hw offload for linux device and DPDK rte_flow for OVS-DPDK.
Instead of boolean, another way is to
$ ovs-vsctl set Open_vSwitch . other_config:hw-offload={tc, rte_flow, xdp}
or just
$ ovs-vsctl set Open_vSwitch . other_config:offload={tc, rte_flow, xdp}
Let's wait for others feedback.
Those are global configs. Currently the flow_api is determined by the
port, which can support mixed configurations (some ports with TC, and
some with DPDK).
Both this proposal and the one in this commit will remove this support.
How about doing such "preferable" offload a port property (or at least
bridge)?
William
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev