summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-23 14:19:40 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-23 14:20:21 +0100
commit5a20c17fceffcbb977f713579a22fdb22f16cc74 (patch)
tree60d1ed5932962175ca22478fde027305339a458c /src/conf_mode
parent24cce893acf0a5f62230c7f12f07e569b9233db0 (diff)
downloadvyos-1x-5a20c17fceffcbb977f713579a22fdb22f16cc74.tar.gz
vyos-1x-5a20c17fceffcbb977f713579a22fdb22f16cc74.zip
xdp: T2666: move CLI node to "interfaces ethernet <eth> xdp"
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-ethernet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-ethernet.py b/src/conf_mode/interfaces-ethernet.py
index 18ee85178..b358e9725 100755
--- a/src/conf_mode/interfaces-ethernet.py
+++ b/src/conf_mode/interfaces-ethernet.py
@@ -69,7 +69,7 @@ def verify(ethernet):
verify_vrf(ethernet)
# XDP requires multiple TX queues
- if dict_search('offload.xdp', ethernet) != None:
+ if 'xdp' in ethernet:
queues = glob('/sys/class/net/{ifname}/queues/tx-*'.format(**ethernet))
if len(queues) < 2:
raise ConfigError('XDP requires additional TX queues, too few available!')