From 5a20c17fceffcbb977f713579a22fdb22f16cc74 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 23 Dec 2020 14:19:40 +0100 Subject: xdp: T2666: move CLI node to "interfaces ethernet xdp" --- src/conf_mode/interfaces-ethernet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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!') -- cgit v1.2.3