From bd3ff678b733964c689b52ff1b0d2c838edeb8b8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 17 Dec 2020 18:30:16 +0100 Subject: xdp: T2666: initial XDP (generic mode) forwarding support The CLI command 'set interfaces ethernet offload-options xdp" enables the XDP generic mode on the given interface. vyos@vyos:~$ show interfaces ethernet eth1 eth1: mtu 1500 xdpgeneric/id:151 qdisc mq state DOWN group default qlen 1000 link/ether 00:50:56:bf:ef:aa brd ff:ff:ff:ff:ff:ff inet6 fe80::250:56ff:febf:efaa/64 scope link tentative valid_lft forever preferred_lft forever Description: fooa XDP code is thankfully copied from [1], thank you for this nice tutorial. NOTE: this is an experimental feature which might break your forwarding/filtering. [1]: https://medium.com/swlh/building-a-xdp-express-data-path-based-peering-router-20db4995da66 --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index a0cc7a99b..599572358 100755 --- a/debian/rules +++ b/debian/rules @@ -78,6 +78,10 @@ override_dh_auto_install: mkdir -p $(DIR)/$(VYOS_DATA_DIR) cp -r data/* $(DIR)/$(VYOS_DATA_DIR) + # Install eBPF plugins + mkdir -p $(DIR)/$(VYOS_DATA_DIR)/ebpf + cp -r src/ebpf/*.o $(DIR)/$(VYOS_DATA_DIR)/ebpf + # Install etc configuration files mkdir -p $(DIR)/etc cp -r src/etc/* $(DIR)/etc -- cgit v1.2.3