mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
Add a static key to bypass skb_attempt_defer_free() steps if net.core.skb_defer_max is set to zero. Main benefit is the atomic_long_inc_return() avoidance. Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20260311191340.1996888-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
18 lines
604 B
C
18 lines
604 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __NET_SYSFS_H__
|
|
#define __NET_SYSFS_H__
|
|
|
|
int __init netdev_kobject_init(void);
|
|
int netdev_register_kobject(struct net_device *);
|
|
void netdev_unregister_kobject(struct net_device *);
|
|
int net_rx_queue_update_kobjects(struct net_device *, int old_num, int new_num);
|
|
int netdev_queue_update_kobjects(struct net_device *net,
|
|
int old_num, int new_num);
|
|
int netdev_change_owner(struct net_device *, const struct net *net_old,
|
|
const struct net *net_new);
|
|
|
|
extern struct mutex rps_default_mask_mutex;
|
|
|
|
DECLARE_STATIC_KEY_FALSE(skb_defer_disable_key);
|
|
#endif
|