1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 /* 1 /* 3 * Packet network namespace 2 * Packet network namespace 4 */ 3 */ 5 #ifndef __NETNS_PACKET_H__ 4 #ifndef __NETNS_PACKET_H__ 6 #define __NETNS_PACKET_H__ 5 #define __NETNS_PACKET_H__ 7 6 8 #include <linux/rculist.h> !! 7 #include <linux/list.h> 9 #include <linux/mutex.h> !! 8 #include <linux/spinlock.h> 10 9 11 struct netns_packet { 10 struct netns_packet { 12 struct mutex sklist_lock; !! 11 rwlock_t sklist_lock; 13 struct hlist_head sklist; 12 struct hlist_head sklist; 14 }; 13 }; 15 14 16 #endif /* __NETNS_PACKET_H__ */ 15 #endif /* __NETNS_PACKET_H__ */ 17 16
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.