aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/packet/internal.h')
-rw-r--r--net/packet/internal.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/packet/internal.h b/net/packet/internal.h
index e84cab8cb7a9..c4e4b4561207 100644
--- a/net/packet/internal.h
+++ b/net/packet/internal.h
@@ -54,6 +54,7 @@ struct pgv {
54 54
55struct packet_ring_buffer { 55struct packet_ring_buffer {
56 struct pgv *pg_vec; 56 struct pgv *pg_vec;
57
57 unsigned int head; 58 unsigned int head;
58 unsigned int frames_per_block; 59 unsigned int frames_per_block;
59 unsigned int frame_size; 60 unsigned int frame_size;
@@ -63,8 +64,9 @@ struct packet_ring_buffer {
63 unsigned int pg_vec_pages; 64 unsigned int pg_vec_pages;
64 unsigned int pg_vec_len; 65 unsigned int pg_vec_len;
65 66
66 struct tpacket_kbdq_core prb_bdqc;
67 atomic_t pending; 67 atomic_t pending;
68
69 struct tpacket_kbdq_core prb_bdqc;
68}; 70};
69 71
70extern struct mutex fanout_mutex; 72extern struct mutex fanout_mutex;
@@ -77,10 +79,11 @@ struct packet_fanout {
77 unsigned int num_members; 79 unsigned int num_members;
78 u16 id; 80 u16 id;
79 u8 type; 81 u8 type;
80 u8 defrag; 82 u8 flags;
81 atomic_t rr_cur; 83 atomic_t rr_cur;
82 struct list_head list; 84 struct list_head list;
83 struct sock *arr[PACKET_FANOUT_MAX]; 85 struct sock *arr[PACKET_FANOUT_MAX];
86 int next[PACKET_FANOUT_MAX];
84 spinlock_t lock; 87 spinlock_t lock;
85 atomic_t sk_ref; 88 atomic_t sk_ref;
86 struct packet_type prot_hook ____cacheline_aligned_in_smp; 89 struct packet_type prot_hook ____cacheline_aligned_in_smp;
@@ -90,8 +93,7 @@ struct packet_sock {
90 /* struct sock has to be the first member of packet_sock */ 93 /* struct sock has to be the first member of packet_sock */
91 struct sock sk; 94 struct sock sk;
92 struct packet_fanout *fanout; 95 struct packet_fanout *fanout;
93 struct tpacket_stats stats; 96 union tpacket_stats_u stats;
94 union tpacket_stats_u stats_u;
95 struct packet_ring_buffer rx_ring; 97 struct packet_ring_buffer rx_ring;
96 struct packet_ring_buffer tx_ring; 98 struct packet_ring_buffer tx_ring;
97 int copy_thresh; 99 int copy_thresh;