diff options
| author | David S. Miller <davem@davemloft.net> | 2014-05-23 16:48:50 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-05-23 16:48:50 -0400 |
| commit | be65de7174123e02477bd488db1a657caf0f9947 (patch) | |
| tree | ef3101980fef5d2f580026d96c78b40fe007b43b /include/linux | |
| parent | 76fcee2438b90e473b67ea52b9b9e0648aa501f8 (diff) | |
| parent | 2e8a83c52ffa41816a979ab0e3bcadf4b0d9e8a1 (diff) | |
Merge branch 'filter-next'
Daniel Borkmann says:
====================
BPF updates
These were still in my queue. Please see individual patches for
details.
I have rebased these on top of current net-next with Andrew's
gcc union fixup [1] applied to avoid dealing with an unnecessary
merge conflict.
[1] http://patchwork.ozlabs.org/patch/351577/
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/filter.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 7977b3958e25..625f4de9bdf2 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h | |||
| @@ -37,9 +37,6 @@ | |||
| 37 | #define BPF_CALL 0x80 /* function call */ | 37 | #define BPF_CALL 0x80 /* function call */ |
| 38 | #define BPF_EXIT 0x90 /* function return */ | 38 | #define BPF_EXIT 0x90 /* function return */ |
| 39 | 39 | ||
| 40 | /* Placeholder/dummy for 0 */ | ||
| 41 | #define BPF_0 0 | ||
| 42 | |||
| 43 | /* Register numbers */ | 40 | /* Register numbers */ |
| 44 | enum { | 41 | enum { |
| 45 | BPF_REG_0 = 0, | 42 | BPF_REG_0 = 0, |
| @@ -191,7 +188,7 @@ int sk_convert_filter(struct sock_filter *prog, int len, | |||
| 191 | struct sock_filter_int *new_prog, int *new_len); | 188 | struct sock_filter_int *new_prog, int *new_len); |
| 192 | 189 | ||
| 193 | int sk_unattached_filter_create(struct sk_filter **pfp, | 190 | int sk_unattached_filter_create(struct sk_filter **pfp, |
| 194 | struct sock_fprog *fprog); | 191 | struct sock_fprog_kern *fprog); |
| 195 | void sk_unattached_filter_destroy(struct sk_filter *fp); | 192 | void sk_unattached_filter_destroy(struct sk_filter *fp); |
| 196 | 193 | ||
| 197 | int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); | 194 | int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); |
