Skip to content

Commit 065e64c

Browse files
author
Ben Hutchings
committed
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>
1 parent a84f3bf commit 065e64c

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/sfc

1 file changed

+2
-0
lines changed

drivers/net/ethernet/sfc/ef10.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,8 @@ static int efx_ef10_filter_push(struct efx_nic *efx,
22592259
outbuf, sizeof(outbuf), NULL);
22602260
if (rc == 0)
22612261
*handle = MCDI_QWORD(outbuf, FILTER_OP_OUT_HANDLE);
2262+
if (rc == -ENOSPC)
2263+
rc = -EBUSY; /* to match efx_farch_filter_insert() */
22622264
return rc;
22632265
}
22642266

0 commit comments

Comments
 (0)