Re: [PATCH v7 3/4] net: dropreason: use new __print_sym() in tracing
From: Aaron Conole
Date: Mon Sep 28 2026 - 09:44:28 EST
Johannes Berg <johannes@xxxxxxxxxxxxxxxx> writes:
> From: Johannes Berg <johannes.berg@xxxxxxxxx>
>
> The __print_symbolic() could only ever print the core
> drop reasons, since that's the way the infrastructure
> works. Now that we have __print_sym() with all the
> advantages mentioned in that commit, convert to that
> and get all the drop reasons from all subsystems. As
> we already have a list of them, that's really easy.
>
> This is a little bit of .text (~100 bytes in my build)
> and saves a lot of .data (~17k).
>
> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
> ---
> v7: update the selftest accordingly
Sorry for the late reply - this series was caught in a Spam filter for
some reason.
> ---
[ ... ]
> diff --git a/tools/testing/selftests/net/openvswitch/openvswitch.sh b/tools/testing/selftests/net/openvswitch/openvswitch.sh
> index a31f7fb6882d..9b8edfcd2d1a 100755
> --- a/tools/testing/selftests/net/openvswitch/openvswitch.sh
> +++ b/tools/testing/selftests/net/openvswitch/openvswitch.sh
> @@ -234,7 +234,7 @@ ovs_drop_reason_count()
For the OVS part (also nice to see the line count reduction) -
Reviewed-by: Aaron Conole <aconole@xxxxxxxxxx>