]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Don't use efx_filter_{build,hash,increment}() for default MAC filters
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 14 Jan 2013 21:23:15 +0000 (21:23 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 7 Mar 2013 20:22:00 +0000 (20:22 +0000)
commit06004d82b7f14505608fe558c9be8746d63d3bc3
tree92edabc7a7ce6e22d5bb61f4b185de1dfea9402b
parent0abe1e53549ebe10a3d0f702e9c1340eb7b9f02c
sfc: Don't use efx_filter_{build,hash,increment}() for default MAC filters

These functions happen to work for default MAC filters: they generate
an initial index of 1/0 for unicast/multicast respectively and an
increment of 1 for either, so a search succeeds at depth 2.  But this
is a matter of luck rather than design, and it really won't work well
with the bug fix we're about to do.

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