sfc: ARFS filter IDs
authorEdward Cree <ecree@solarflare.com>
Tue, 24 Apr 2018 16:09:30 +0000 (17:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Apr 2018 17:48:22 +0000 (13:48 -0400)
commitf8d6203780b73c07dc49ee421fedae8edb76b6e4
treeed28e63c7b6e5b9a6a8a0f791ffa1cfc3c86ee08
parentd805c5209350ae725e3a1ee0204ba27d9e75ce3e
sfc: ARFS filter IDs

Associate an arbitrary ID with each ARFS filter, allowing to properly query
 for expiry.  The association is maintained in a hash table, which is
 protected by a spinlock.

v3: fix build warnings when CONFIG_RFS_ACCEL is disabled (thanks lkp-robot).
v2: fixed uninitialised variable (thanks davem and lkp-robot).

Fixes: 3af0f34290f6 ("sfc: replace asynchronous filter operations")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.h
drivers/net/ethernet/sfc/farch.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/rx.c