projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
packet: add classic BPF fanout mode
[cascardo/linux.git]
/
net
/
packet
/
internal.h
diff --git
a/net/packet/internal.h
b/net/packet/internal.h
index
e20b3e8
..
9ee4631
100644
(file)
--- a/
net/packet/internal.h
+++ b/
net/packet/internal.h
@@
-79,7
+79,10
@@
struct packet_fanout {
u16 id;
u8 type;
u8 flags;
- atomic_t rr_cur;
+ union {
+ atomic_t rr_cur;
+ struct bpf_prog __rcu *bpf_prog;
+ };
struct list_head list;
struct sock *arr[PACKET_FANOUT_MAX];
spinlock_t lock;