sfc: Implement hardware acceleration of RFS
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 5 Jan 2011 00:50:41 +0000 (00:50 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 17 Feb 2011 21:00:33 +0000 (21:00 +0000)
commit64d8ad6d745bbb596bfce3c5d0157267feba7e26
tree1a3a93506dc8e851ea83bb95fe6b041bf9638110
parentd4726051043dd270f9a161414a8d5ced76e91dff
sfc: Implement hardware acceleration of RFS

Use the existing filter management functions to insert TCP/IPv4 and
UDP/IPv4 4-tuple filters for Receive Flow Steering.

For each channel, track how many RFS filters are being added during
processing of received packets and scan the corresponding number of
table entries for filters that may be reclaimed.  Do this in batches
to reduce lock overhead.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/sfc/efx.c
drivers/net/sfc/efx.h
drivers/net/sfc/filter.c
drivers/net/sfc/net_driver.h