mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
a84f3bf909
commit
065e64c4b2
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue