Skip to content

CNB: net: extend drop reasons for multiple subsystems

Íñigo Huguet requested to merge ihuguet-rh/kernel-cs9:drop_reasons_subsys into main

Bugzilla: https://bugzilla.redhat.com/2215988

commit 071c0fc6fb919dcf29c676a842dda08a674877d7
Author: Johannes Berg johannes.berg@intel.com
Date: Wed Apr 19 14:52:53 2023 +0200

net: extend drop reasons for multiple subsystems

Extend drop reasons to make them usable by subsystems
other than core by reserving the high 16 bits for a
new subsystem ID, of which 0 of course is used for the
existing reasons immediately.

To still be able to have string reasons, restructure
that code a bit to make the loopup under RCU, the only
user of this (right now) is drop_monitor.

Link: https://lore.kernel.org/netdev/00659771ed54353f92027702c5bbb84702da62ce.camel@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Signed-off-by: Íñigo Huguet ihuguet@redhat.com

Merge request reports