sfc: Generalise filter spec initialisation
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 7 Dec 2010 19:11:26 +0000 (19:11 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 7 Dec 2010 19:11:26 +0000 (19:11 +0000)
commitc39d35ebffeea5996a6f8fd8430fae9acfb8aeaf
treeaf09ac5b15429b41d4b5c54fd63c1ac769d67b39
parent8891681af928f1da795cd4bd59043e5e0fadd6c8
sfc: Generalise filter spec initialisation

Move search_depth arrays into per-table state.

Define initialisation function efx_filter_init_rx() which sets
everything apart from the match fields.

Define efx_filter_set_{ipv4_local,ipv4_full,eth_local}() to set the
match fields.  This allows some simplification of callers and later
support for additional protocols and more flexible matching using
multiple calls to these functions.

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