diff options
author | John Fastabend | 2018-03-28 21:49:25 +0200 |
---|---|---|
committer | Daniel Borkmann | 2018-03-30 00:09:43 +0200 |
commit | fa246693a111fab32bd51d20f07a347e42773ee9 (patch) | |
tree | cc0bae757a14383517dff29029cb1e0a1380c7e9 /include/linux/filter.h | |
parent | bpf: sockmap, add BPF_F_INGRESS tests (diff) | |
download | kernel-qcow2-linux-fa246693a111fab32bd51d20f07a347e42773ee9.tar.gz kernel-qcow2-linux-fa246693a111fab32bd51d20f07a347e42773ee9.tar.xz kernel-qcow2-linux-fa246693a111fab32bd51d20f07a347e42773ee9.zip |
bpf: sockmap, BPF_F_INGRESS flag for BPF_SK_SKB_STREAM_VERDICT:
Add support for the BPF_F_INGRESS flag in skb redirect helper. To
do this convert skb into a scatterlist and push into ingress queue.
This is the same logic that is used in the sk_msg redirect helper
so it should feel familiar.
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/linux/filter.h')
-rw-r--r-- | include/linux/filter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 961cc5d53956..897ff3d95968 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -521,6 +521,7 @@ struct sk_msg_buff { __u32 key; __u32 flags; struct bpf_map *map; + struct sk_buff *skb; struct list_head list; }; |