diff options
author | Jiri Pirko <jpirko@redhat.com> | 2012-03-31 15:01:20 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-04 02:36:20 +0400 |
commit | ffe06c17afbbbd4d73cdc339419be232847d667a (patch) | |
tree | bfe1e55c86d317d9a4412e2d7da07f837265b066 /include | |
parent | 302d663740cfaf2c364df6bb61cd339014ed714c (diff) | |
download | linux-ffe06c17afbbbd4d73cdc339419be232847d667a.tar.xz |
filter: add XOR operation
Add XOR instruction fo BPF machine. Needed for computing packet hashes.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/filter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 92dd9933c43d..72090994d789 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -126,7 +126,8 @@ struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ #define SKF_AD_HATYPE 28 #define SKF_AD_RXHASH 32 #define SKF_AD_CPU 36 -#define SKF_AD_MAX 40 +#define SKF_AD_ALU_XOR_X 40 +#define SKF_AD_MAX 44 #define SKF_NET_OFF (-0x100000) #define SKF_LL_OFF (-0x200000) @@ -231,6 +232,7 @@ enum { BPF_S_ANC_HATYPE, BPF_S_ANC_RXHASH, BPF_S_ANC_CPU, + BPF_S_ANC_ALU_XOR_X, }; #endif /* __KERNEL__ */ |