summaryrefslogtreecommitdiff
path: root/src/op_mode/show_xdp_stats.sh
blob: a4ef331078d2d7e6ae44f945bda8444ff6e1f078 (plain)
1
2
3
4
5
6
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