mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 03:46:44 +07:00
808f5114a9
Convert AF_PACKET to use RCU, eliminating one more reader/writer lock. There is no need for a real sk_del_node_init_rcu(), because sk_del_node_init is doing the equivalent thing to hlst_del_init_rcu already; but added some comments to try and make that obvious. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
16 lines
257 B
C
16 lines
257 B
C
/*
|
|
* Packet network namespace
|
|
*/
|
|
#ifndef __NETNS_PACKET_H__
|
|
#define __NETNS_PACKET_H__
|
|
|
|
#include <linux/rculist.h>
|
|
#include <linux/spinlock.h>
|
|
|
|
struct netns_packet {
|
|
spinlock_t sklist_lock;
|
|
struct hlist_head sklist;
|
|
};
|
|
|
|
#endif /* __NETNS_PACKET_H__ */
|