filter: Add SKF_AD_QUEUE instruction
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 20 Oct 2009 08:06:22 +0000 (01:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Oct 2009 08:06:22 +0000 (01:06 -0700)
commitd19742fb1c68e6db83b76e06dea5a374c99e104f
tree3975747b3e1e62a81a3f9961bf7c2545ac7b4648
parentad959e76f0fa94d299a8c25cb45de4d1b845e9ce
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>
include/linux/filter.h
net/core/filter.c