Files
kernel-tenderloin-3.0/include/linux
Eric Dumazet da2033c282 filter: add SKF_AD_RXHASH and SKF_AD_CPU
Add SKF_AD_RXHASH and SKF_AD_CPU to filter ancillary mechanism,
to be able to build advanced filters.

This can help spreading packets on several sockets with a fast
selection, after RPS dispatch to N cpus for example, or to catch a
percentage of flows in one queue.

tcpdump -s 500 "cpu = 1" :

[0] ld CPU
[1] jeq #1  jt 2  jf 3
[2] ret #500
[3] ret #0

# take 12.5 % of flows (average)
tcpdump -s 1000 "rxhash & 7 = 2" :

[0] ld RXHASH
[1] and #7
[2] jeq #2  jt 3  jf 4
[3] ret #1000
[4] ret #0

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Rui <wirelesser@gmail.com>
Acked-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-12-06 12:59:05 -08:00
..
2010-10-30 08:31:35 -07:00
2010-10-15 21:18:59 +02:00
2010-10-26 14:51:00 -04:00
2010-10-30 08:45:43 -04:00
2010-11-10 14:54:09 +01:00
2010-11-10 14:54:09 +01:00
2010-11-10 14:54:09 +01:00
2010-10-25 21:18:20 -04:00
2010-10-25 08:02:40 -07:00
2010-10-22 15:55:22 +02:00
2010-10-21 14:47:59 +02:00
2010-10-28 17:22:16 -04:00
2010-10-25 14:11:37 -07:00
2010-10-23 22:49:32 +02:00
2010-10-12 16:53:37 +02:00
2010-10-31 21:06:59 +01:00
2010-11-16 10:58:30 -08:00
2010-11-18 09:33:19 -08:00
2010-11-17 11:28:25 -08:00
2010-10-26 16:52:08 -07:00
2010-11-24 11:16:42 -08:00
2010-10-07 14:08:55 +01:00
2010-10-28 17:22:13 -04:00
2010-10-22 15:34:12 -05:00
2010-11-12 07:55:32 -08:00
2010-10-21 21:18:54 -04:00
2010-10-25 21:24:15 -04:00
2010-10-28 09:08:47 -05:00
2010-12-06 11:03:46 -08:00
2010-10-26 16:52:05 -07:00
2010-10-12 16:53:34 +02:00
2010-10-07 18:48:49 -04:00
2010-10-15 12:45:44 +02:00
2010-10-17 20:03:03 -07:00
2010-10-17 20:03:06 -07:00
2010-10-24 15:07:11 -07:00
2010-11-12 07:55:32 -08:00
2010-10-29 04:16:31 -04:00
2010-10-25 21:18:20 -04:00
2010-11-15 13:24:06 -05:00
2010-10-27 18:03:16 -07:00
2010-10-30 12:12:50 +02:00
2010-10-21 15:44:13 +02:00
2010-10-27 17:28:36 +01:00
2010-10-07 14:08:55 +01:00
2010-10-21 04:11:07 -07:00
2010-10-22 10:20:04 -07:00
2010-11-09 14:36:23 -08:00
2010-10-26 16:52:03 -07:00
2010-10-22 10:16:43 -07:00
2010-11-08 12:28:32 -08:00
2010-11-15 13:25:02 -05:00
2010-10-26 16:52:14 -07:00