From c69190bb2b9a3c0f105ea630d328b294aa7810d7 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 23 Dec 2020 15:22:32 +0100 Subject: xdp: op-mode: T2666: support per interface statistics --- src/op_mode/show_xdp_stats.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 src/op_mode/show_xdp_stats.sh (limited to 'src/op_mode') 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 -- cgit v1.2.3