net: fec: using the standard return codes when xdp xmit errors
authorShenwei Wang <shenwei.wang@nxp.com>
Fri, 12 May 2023 13:20:10 +0000 (08:20 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 May 2023 19:55:42 +0000 (20:55 +0100)
commit144470c88c5d9a4cab81da22a26c129e6702c6cf
treef7bcb91b6c36fa4feaff666061aca5331feb64dd
parent314cf958de2a784dd3984190311e15aa1fbf2717
net: fec: using the standard return codes when xdp xmit errors

This patch standardizes the inconsistent return values for unsuccessful
XDP transmits by using standardized error codes (-EBUSY or -ENOMEM).

Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c