Kconfig.debug

CONFIG_NET_DEV_REFCNT_TRACKER Enable net device refcount tracking

On

Enable debugging feature to track device references. This adds memory and cpu costs.

CONFIG_NET_NS_REFCNT_TRACKER Enable networking namespace refcount tracking

On

Enable debugging feature to track netns references. This adds memory and cpu costs.

CONFIG_DEBUG_NET Add generic networking debug

On

Enable extra sanity checks in networking. This is mostly used by fuzzers, but is safe to select.

CONFIG_DEBUG_NET_SMALL_RTNL Add extra per-netns mutex inside RTNL

On

rtnl_lock() is being replaced with rtnl_net_lock() that acquires the global RTNL and a small per-netns RTNL mutex.

During the conversion, rtnl_net_lock() just adds an extra mutex in every RTNL scope and slows down the operations.

Once the conversion completes, rtnl_lock() will be removed and rtnetlink will gain per-netns scalability.