sfc: More sensible semantics for efx_filter_insert_filter() replace flag
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 14 Jan 2013 17:43:15 +0000 (17:43 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 7 Mar 2013 20:21:58 +0000 (20:21 +0000)
commit7de07a4deb8e7707892b952daa59eff67701f0c3
treeccfa987cfc42c51d896e8a6571eaca4148c0966b
parent97d48a10c670f87bba9e5b2241e32f2eccd3fef0
sfc: More sensible semantics for efx_filter_insert_filter() replace flag

The 'replace' flag to efx_filter_insert_filter() controls whether the
new filter may replace *any* filter, and is checked even before
priority comparison.  But lower-priority filters should never
block insertion of higher-priority filters.

Change the priority checking so that lower-priority filters are
replaced regardless of the value of the flag, and rename the
flag to 'replace_equal'.

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