diff options
author | Ilya Maximets <i.maximets@ovn.org> | 2019-11-06 21:38:33 +0000 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2019-11-20 16:48:26 +0100 |
commit | e8f5634484e8c9c77d389a25b6f38d4abeb435b5 (patch) | |
tree | 31d4dd56bfe48750183097a04b443fdd9c9fc83a /tests/system-afxdp-macros.at | |
parent | 4ae8c4617fd34422ac7edabe4d63a78c6442dbd5 (diff) | |
download | openvswitch-e8f5634484e8c9c77d389a25b6f38d4abeb435b5.tar.gz |
netdev-afxdp: Best-effort configuration of XDP mode.
Until now there was only two options for XDP mode in OVS: SKB or DRV.
i.e. 'generic XDP' or 'native XDP with zero-copy enabled'.
Devices like 'veth' interfaces in Linux supports native XDP, but
doesn't support zero-copy mode. This case can not be covered by
existing API and we have to use slower generic XDP for such devices.
There are few more issues, e.g. TCP is not supported in generic XDP
mode for veth interfaces due to kernel limitations, however it is
supported in native mode.
This change introduces ability to use native XDP without zero-copy
along with best-effort configuration option that enabled by default.
In best-effort case OVS will sequentially try different modes starting
from the fastest one and will choose the first acceptable for current
interface. This will guarantee the best possible performance.
If user will want to choose specific mode, it's still possible by
setting the 'options:xdp-mode'.
This change additionally changes the API by renaming the configuration
knob from 'xdpmode' to 'xdp-mode' and also renaming the modes
themselves to be more user-friendly.
The full list of currently supported modes:
* native-with-zerocopy - former DRV
* native - new one, DRV without zero-copy
* generic - former SKB
* best-effort - new one, chooses the best available from
3 above modes
Since 'best-effort' is a default mode, users will not need to
explicitely set 'xdp-mode' in most cases.
TCP related tests enabled back in system afxdp testsuite, because
'best-effort' will choose 'native' mode for veth interfaces
and this mode has no issues with TCP.
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Acked-by: William Tu <u9012063@gmail.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Diffstat (limited to 'tests/system-afxdp-macros.at')
-rw-r--r-- | tests/system-afxdp-macros.at | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/system-afxdp-macros.at b/tests/system-afxdp-macros.at index f0683c0a9..5ee2ceb1a 100644 --- a/tests/system-afxdp-macros.at +++ b/tests/system-afxdp-macros.at @@ -30,10 +30,3 @@ m4_define([CONFIGURE_VETH_OFFLOADS], AT_CHECK([ethtool -K $1 txvlan off], [0], [ignore], [ignore]) ] ) - -# OVS_START_L7([namespace], [protocol]) -# -# AF_XDP doesn't work with TCP over virtual interfaces for now. -# -m4_define([OVS_START_L7], - [AT_SKIP_IF([:])]) |