]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Refactor Falcon-arch search limit reset
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 26 Oct 2012 23:33:48 +0000 (00:33 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 22 Aug 2013 18:25:56 +0000 (19:25 +0100)
commitc778752079499b19c64031dc4ebe2a0b31e5f2c9
tree61cd07ed6da992a32bcbbef3db6928b2e58697f2
parent8bf1af7fcf8e316ffbcfdd88c8fa51dcb2c1114a
sfc: Refactor Falcon-arch search limit reset

Currently every call to efx_farch_filter_table_clear_entry() is
shortly followed by a conditional reset of the table limits.  The new
limits (0) are not pushed to hardware until the next filter insertion.
Move both the reset and the hardware reconfiguration into
efx_farch_filter_table_clear_entry(), and add an explanatory comment.

Also, make consistent use of the term 'search limit' for the maximum
number of probes the NIC must make when searching for a filter of a
particular type.

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