Skip to content

openvswitch: use kfree_skb_reason for ovs drops

Adrian Moreno requested to merge amorenoz/centos-stream-9:ovs-kfree_reason into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2232283
Tested: ran upstream selftests and manually checked both implicit and explicit (with and without error) drop reporting (using [1]).
Upstream Status: net-next.git

Currently the OVS module which, if running, is probably responsible for most packet management, is using consume_skb() for most of packet drops.
This makes it really difficult to analyze and troubleshoot OVS packet drops with existing tools (e.g: dropwatch, perf) or with self-built BPF programs (like the ones NetObserv [2] installs).

Adding kfree_skb_reason for OVS drops greatly improves drop visibility in all OVN-based layered products.

Note: The backport does not include the kselftest infrastructure changes (tools/testing/selftest/net/openvswitch).

[1] http://patchwork.ozlabs.org/project/openvswitch/cover/20230809144258.1608770-1-eric@garver.life/
[2] https://docs.openshift.com/container-platform/4.13/networking/network_observability/understanding-network-observability-operator.html

Signed-off-by: Adrian Moreno amorenoz@redhat.com

Edited by Adrian Moreno

Merge request reports