Message ID | 20230427033909.4109569-4-liuhangbin@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | bonding: fix send_peer_notif overflow | expand |
On Thu, Apr 27, 2023 at 11:39:08AM +0800, Hangbin Liu wrote: Hi Hangbin, a commit description should go here. F.e. explaining why this change is being made. > Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> > --- > tools/testing/selftests/net/forwarding/lib.sh | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh > index d47499ba81c7..426bab05fe0a 100755 > --- a/tools/testing/selftests/net/forwarding/lib.sh > +++ b/tools/testing/selftests/net/forwarding/lib.sh > @@ -773,8 +773,9 @@ tc_rule_handle_stats_get() > local id=$1; shift > local handle=$1; shift > local selector=${1:-.packets}; shift > + local netns=${1:-""}; shift > > - tc -j -s filter show $id \ > + tc $netns -j -s filter show $id \ > | jq ".[] | select(.options.handle == $handle) | \ > .options.actions[0].stats$selector" > } > -- > 2.38.1 >
diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh index d47499ba81c7..426bab05fe0a 100755 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -773,8 +773,9 @@ tc_rule_handle_stats_get() local id=$1; shift local handle=$1; shift local selector=${1:-.packets}; shift + local netns=${1:-""}; shift - tc -j -s filter show $id \ + tc $netns -j -s filter show $id \ | jq ".[] | select(.options.handle == $handle) | \ .options.actions[0].stats$selector" }
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> --- tools/testing/selftests/net/forwarding/lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)