summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ethtool.c
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2018-03-27 18:44:21 +0200
committerDavid S. Miller <davem@davemloft.net>2018-03-27 19:33:20 +0200
commit31b842955211f427a099f78a6a63d18a6bbc8d55 (patch)
tree5b6b7def288526fdd9d407a14012190bba438f73 /drivers/net/ethernet/sfc/ethtool.c
parentsfc: use a semaphore to lock farch filters too (diff)
downloadlinux-31b842955211f427a099f78a6a63d18a6bbc8d55.tar.xz
linux-31b842955211f427a099f78a6a63d18a6bbc8d55.zip
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/ethtool.c')
0 files changed, 0 insertions, 0 deletions