summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-23 15:22:32 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-23 15:42:53 +0100
commitc69190bb2b9a3c0f105ea630d328b294aa7810d7 (patch)
tree8ade90f7eb2660b59447f11181f5999861889313 /src/op_mode
parent440ce3011e8718c917933026e68047fcfb008031 (diff)
downloadvyos-1x-c69190bb2b9a3c0f105ea630d328b294aa7810d7.tar.gz
vyos-1x-c69190bb2b9a3c0f105ea630d328b294aa7810d7.zip
xdp: op-mode: T2666: support per interface statistics
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/show_xdp_stats.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/op_mode/show_xdp_stats.sh b/src/op_mode/show_xdp_stats.sh
new file mode 100755
index 000000000..a4ef33107
--- /dev/null
+++ b/src/op_mode/show_xdp_stats.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if cli-shell-api existsEffective interfaces $1 $2 xdp; then
+ /usr/sbin/xdp_stats --dev "$2"
+else
+ echo "XDP not enabled on $2"
+fi