diff options
Diffstat (limited to 'net/netlink/af_netlink.h')
-rw-r--r-- | net/netlink/af_netlink.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/net/netlink/af_netlink.h b/net/netlink/af_netlink.h index df32cb92d9fc..ea4600aea6b0 100644 --- a/net/netlink/af_netlink.h +++ b/net/netlink/af_netlink.h | |||
@@ -45,12 +45,6 @@ struct netlink_sock { | |||
45 | int (*netlink_bind)(struct net *net, int group); | 45 | int (*netlink_bind)(struct net *net, int group); |
46 | void (*netlink_unbind)(struct net *net, int group); | 46 | void (*netlink_unbind)(struct net *net, int group); |
47 | struct module *module; | 47 | struct module *module; |
48 | #ifdef CONFIG_NETLINK_MMAP | ||
49 | struct mutex pg_vec_lock; | ||
50 | struct netlink_ring rx_ring; | ||
51 | struct netlink_ring tx_ring; | ||
52 | atomic_t mapped; | ||
53 | #endif /* CONFIG_NETLINK_MMAP */ | ||
54 | 48 | ||
55 | struct rhash_head node; | 49 | struct rhash_head node; |
56 | struct rcu_head rcu; | 50 | struct rcu_head rcu; |
@@ -62,15 +56,6 @@ static inline struct netlink_sock *nlk_sk(struct sock *sk) | |||
62 | return container_of(sk, struct netlink_sock, sk); | 56 | return container_of(sk, struct netlink_sock, sk); |
63 | } | 57 | } |
64 | 58 | ||
65 | static inline bool netlink_skb_is_mmaped(const struct sk_buff *skb) | ||
66 | { | ||
67 | #ifdef CONFIG_NETLINK_MMAP | ||
68 | return NETLINK_CB(skb).flags & NETLINK_SKB_MMAPED; | ||
69 | #else | ||
70 | return false; | ||
71 | #endif /* CONFIG_NETLINK_MMAP */ | ||
72 | } | ||
73 | |||
74 | struct netlink_table { | 59 | struct netlink_table { |
75 | struct rhashtable hash; | 60 | struct rhashtable hash; |
76 | struct hlist_head mc_list; | 61 | struct hlist_head mc_list; |