diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-10-20 04:06:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-20 04:06:22 -0400 |
commit | d19742fb1c68e6db83b76e06dea5a374c99e104f (patch) | |
tree | 3975747b3e1e62a81a3f9961bf7c2545ac7b4648 /include | |
parent | ad959e76f0fa94d299a8c25cb45de4d1b845e9ce (diff) |
filter: Add SKF_AD_QUEUE instruction
It can help being able to filter packets on their queue_mapping.
If filter performance is not good, we could add a "numqueue" field
in struct packet_type, so that netif_nit_deliver() and other functions
can directly ignore packets with not expected queue number.
Lets experiment this simple filter extension first.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/filter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 909193e25395..bb3b4352978a 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h | |||
@@ -124,7 +124,8 @@ struct sock_fprog /* Required for SO_ATTACH_FILTER. */ | |||
124 | #define SKF_AD_NLATTR 12 | 124 | #define SKF_AD_NLATTR 12 |
125 | #define SKF_AD_NLATTR_NEST 16 | 125 | #define SKF_AD_NLATTR_NEST 16 |
126 | #define SKF_AD_MARK 20 | 126 | #define SKF_AD_MARK 20 |
127 | #define SKF_AD_MAX 24 | 127 | #define SKF_AD_QUEUE 24 |
128 | #define SKF_AD_MAX 28 | ||
128 | #define SKF_NET_OFF (-0x100000) | 129 | #define SKF_NET_OFF (-0x100000) |
129 | #define SKF_LL_OFF (-0x200000) | 130 | #define SKF_LL_OFF (-0x200000) |
130 | 131 | ||