]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2fc0e365af76581c42e20cc2f4d51866a5c547e0
tree3975747b3e1e62a81a3f9961bf7c2545ac7b4648
parent57f970affc8cd24e5bdb799c123e83475ca09da2
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