]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: return a better error if filter insertion collides with MC reboot
authorEdward Cree <ecree@solarflare.com>
Tue, 27 Mar 2018 16:44:21 +0000 (17:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Mar 2018 17:33:20 +0000 (13:33 -0400)
commite9aff017d3e59e3207e9dd3970b9c9deffc95126
tree5b6b7def288526fdd9d407a14012190bba438f73
parenta0512ac1bc3a49d5129c075cc568e4148125cf1e
sfc: return a better error if filter insertion collides with MC reboot

If some other operation gets the MCDI lock ahead of us and performs an MC
 reboot, then our attempt to insert the filter will fail with EINVAL,
 because the destination VI (spec->dmaq_id, MC_CMD_FILTER_OP_IN_RX_QUEUE) does
 not exist.  But the caller's request (which might e.g. be an ethtool ntuple
 request from userland) isn't invalid, it just got unlucky; so return EAGAIN.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c