]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: openvswitch: don't hardcode the drop reason subsys
authorJakub Kicinski <kuba@kernel.org>
Tue, 4 Mar 2025 18:06:15 +0000 (10:06 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Mar 2025 00:45:43 +0000 (16:45 -0800)
commit1cc3462159babb69c84c39cb1b4e262aef3ea325
treea9275ebc0bd73c1e91b3b62f7e17642826ce4291
parenta202dfe31cae2f2120297a7142385d80a5577d42
selftests: openvswitch: don't hardcode the drop reason subsys

WiFi removed one of their subsys entries from drop reasons, in
commit 286e69677065 ("wifi: mac80211: Drop cooked monitor support")
SKB_DROP_REASON_SUBSYS_OPENVSWITCH is now 2 not 3.
The drop reasons are not uAPI, read the correct value
from debug info.

We need to enable vmlinux BTF, otherwise pahole needs
a few GB of memory to decode the enum name.

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Acked-by: Aaron Conole <aconole@redhat.com>
Link: https://patch.msgid.link/20250304180615.945945-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/config
tools/testing/selftests/net/openvswitch/openvswitch.sh