diff options
-rw-r--r-- | include/linux/filter.h | 4 | ||||
-rw-r--r-- | net/core/filter.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 447a775878f..5334adaf407 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h | |||
@@ -124,7 +124,9 @@ struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ | |||
124 | #define SKF_AD_MARK 20 | 124 | #define SKF_AD_MARK 20 |
125 | #define SKF_AD_QUEUE 24 | 125 | #define SKF_AD_QUEUE 24 |
126 | #define SKF_AD_HATYPE 28 | 126 | #define SKF_AD_HATYPE 28 |
127 | #define SKF_AD_MAX 32 | 127 | #define SKF_AD_RXHASH 32 |
128 | #define SKF_AD_CPU 36 | ||
129 | #define SKF_AD_MAX 40 | ||
128 | #define SKF_NET_OFF (-0x100000) | 130 | #define SKF_NET_OFF (-0x100000) |
129 | #define SKF_LL_OFF (-0x200000) | 131 | #define SKF_LL_OFF (-0x200000) |
130 | 132 | ||
diff --git a/net/core/filter.c b/net/core/filter.c index a44d27f9f0f..054e286861d 100644 --- a/net/core/filter.c +++ b/net/core/filter.c | |||
@@ -375,6 +375,12 @@ load_b: | |||
375 | return 0; | 375 | return 0; |
376 | A = skb->dev->type; | 376 | A = skb->dev->type; |
377 | continue; | 377 | continue; |
378 | case SKF_AD_RXHASH: | ||
379 | A = skb->rxhash; | ||
380 | continue; | ||
381 | case SKF_AD_CPU: | ||
382 | A = raw_smp_processor_id(); | ||
383 | continue; | ||
378 | case SKF_AD_NLATTR: { | 384 | case SKF_AD_NLATTR: { |
379 | struct nlattr *nla; | 385 | struct nlattr *nla; |
380 | 386 | ||