Re: [PATCH net v2] xsk: fix __xsk_generic_xmit() error code when cq is full
From: Stanislav Fomichev
Date: Sat Mar 01 2025 - 19:05:32 EST
On 02/27, Wang Liang wrote:
> When the cq reservation is failed, the error code is not set which is
> initialized to zero in __xsk_generic_xmit(). That means the packet is not
> send successfully but sendto() return ok.
>
> Considering the impact on uapi, return -EAGAIN is a good idea. The cq is
> full usually because it is not released in time, try to send msg again is
> appropriate.
>
> Suggested-by: Magnus Karlsson <magnus.karlsson@xxxxxxxxx>
> Signed-off-by: Wang Liang <wangliang74@xxxxxxxxxx>
Acked-by: Stanislav Fomichev <sdf@xxxxxxxxxxx>