diff options
Diffstat (limited to 'src/op_mode/show_xdp_stats.sh')
-rwxr-xr-x | src/op_mode/show_xdp_stats.sh | 7 |
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 |