diff options
author | Christian Breunig <christian@breunig.cc> | 2023-06-12 19:57:28 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-06-12 19:57:28 +0200 |
commit | fcb5d0fdafeebe49f42799b1d0d056c4b67bcc16 (patch) | |
tree | 28a5a272cc66cd5c6b4bc1132b4db5a455ca3214 /python/vyos | |
parent | f9fa1e99e042846a8089ae2b4bc41dd8f3e3eb7c (diff) | |
download | vyos-1x-fcb5d0fdafeebe49f42799b1d0d056c4b67bcc16.tar.gz vyos-1x-fcb5d0fdafeebe49f42799b1d0d056c4b67bcc16.zip |
T5286: drop XDP support for ethernet and bonding interfaces
... this is a step towards a new and better implementation that will utilize
VPP.
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/ifconfig/interface.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index 7754488c4..f6289a6e6 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -1355,34 +1355,6 @@ class Interface(Control): f'egress redirect dev {target_if}') if err: print('tc filter add for redirect failed') - def set_xdp(self, state): - """ - Enable Kernel XDP support. State can be either True or False. - - Example: - >>> from vyos.ifconfig import Interface - >>> i = Interface('eth0') - >>> i.set_xdp(True) - """ - if not isinstance(state, bool): - raise ValueError("Value out of range") - - # https://vyos.dev/T3448 - there is (yet) no RPI support for XDP - if not os.path.exists('/usr/sbin/xdp_loader'): - return - - ifname = self.config['ifname'] - cmd = f'xdp_loader -d {ifname} -U --auto-mode' - if state: - # Using 'xdp' will automatically decide if the driver supports - # 'xdpdrv' or only 'xdpgeneric'. A user later sees which driver is - # actually in use by calling 'ip a' or 'show interfaces ethernet' - cmd = f'xdp_loader -d {ifname} --auto-mode -F --progsec xdp_router ' \ - f'--filename /usr/share/vyos/xdp/xdp_prog_kern.o && ' \ - f'xdp_prog_user -d {ifname}' - - return self._cmd(cmd) - def update(self, config): """ General helper function which works on a dictionary retrived by get_config_dict(). It's main intention is to consolidate the scattered @@ -1588,9 +1560,6 @@ class Interface(Control): tmp = config.get('is_bridge_member') self.add_to_bridge(tmp) - # eXpress Data Path - highly experimental - self.set_xdp('xdp' in config) - # configure interface mirror or redirection target self.set_mirror_redirect() |