diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2013-10-09 15:17:27 +0200 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-12-12 23:07:00 +0100 |
commit | 065e64c4b211a4ad18d8c39ce987edef645bdaf0 (patch) | |
tree | ee92b9afbbb32e4ec1f40adb949403b7f248da4e /drivers/net/ethernet/sfc/ef10.c | |
parent | sfc: Expose NVRAM_PARTITION_TYPE_LICENSE on EF10 (diff) | |
download | linux-065e64c4b211a4ad18d8c39ce987edef645bdaf0.tar.xz linux-065e64c4b211a4ad18d8c39ce987edef645bdaf0.zip |
sfc: Return EBUSY for filter insertion on EF10, matching Falcon/Siena
The MC firmware will return error MC_CMD_ERR_ENOSPC if filter
insertion fails due to lack of resources. The net driver's filter
implementation for Falcon-architecture returns EBUSY. They should
behave consistently, so for EF10 change ENOSPC to EBUSY.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef10.c')
-rw-r--r-- | drivers/net/ethernet/sfc/ef10.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/ef10.c b/drivers/net/ethernet/sfc/ef10.c index 45af374b1df9..ca922b958a2e 100644 --- a/drivers/net/ethernet/sfc/ef10.c +++ b/drivers/net/ethernet/sfc/ef10.c @@ -2259,6 +2259,8 @@ static int efx_ef10_filter_push(struct efx_nic *efx, outbuf, sizeof(outbuf), NULL); if (rc == 0) *handle = MCDI_QWORD(outbuf, FILTER_OP_OUT_HANDLE); + if (rc == -ENOSPC) + rc = -EBUSY; /* to match efx_farch_filter_insert() */ return rc; } |