mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
[NETNS]: separate af_packet netns data
Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a0a53c8ba9
commit
2aaef4e47f
3 changed files with 31 additions and 18 deletions
15
include/net/netns/packet.h
Normal file
15
include/net/netns/packet.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Packet network namespace
|
||||
*/
|
||||
#ifndef __NETNS_PACKET_H__
|
||||
#define __NETNS_PACKET_H__
|
||||
|
||||
#include <linux/list.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
||||
struct netns_packet {
|
||||
rwlock_t sklist_lock;
|
||||
struct hlist_head sklist;
|
||||
};
|
||||
|
||||
#endif /* __NETNS_PACKET_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue