]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite90bd4054af3b6962c18b2ee5abbf866510c9eb1
treeed28e63c7b6e5b9a6a8a0f791ffa1cfc3c86ee08
parentb7a05c5cab6f4ebb06fa318068cdf689c68056b7
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: 37b1c063ea1f ("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