On Thu, Jul 30, 2020 at 7:55 PM Toshiaki Makita <toshiaki.maki...@gmail.com> 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 <toshiaki.maki...@gmail.com> > --- 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. William _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev