From: Li RongQing <hidden> Date: 2020-06-11 05:11:24
propagate sock_alloc_send_skb error code, not set it
to EAGAIN unconditionally, when fail to allocate skb,
which maybe causes that user space unnecessary loops
Fixes: 35fcde7f8deb "(xsk: support for Tx)"
Signed-off-by: Li RongQing <redacted>
---
net/xdp/xsk.c | 1 -
1 file changed, 1 deletion(-)
From: Björn Töpel <hidden> Date: 2020-06-11 08:18:26
On Thu, 11 Jun 2020 at 07:11, Li RongQing [off-list ref] wrote:
propagate sock_alloc_send_skb error code, not set it
to EAGAIN unconditionally, when fail to allocate skb,
which maybe causes that user space unnecessary loops
Fixes: 35fcde7f8deb "(xsk: support for Tx)"
Signed-off-by: Li RongQing <redacted>
Thanks!
Acked-by: Björn Töpel <redacted>
Alexei/Daniel: This should go into "bpf".
Björn
From: Daniel Borkmann <daniel@iogearbox.net> Date: 2020-06-11 14:24:11
On 6/11/20 10:18 AM, Björn Töpel wrote:
On Thu, 11 Jun 2020 at 07:11, Li RongQing [off-list ref] wrote:
quoted
propagate sock_alloc_send_skb error code, not set it
to EAGAIN unconditionally, when fail to allocate skb,
which maybe causes that user space unnecessary loops
Fixes: 35fcde7f8deb "(xsk: support for Tx)"
Signed-off-by: Li RongQing <redacted>
Thanks!
Acked-by: Björn Töpel <redacted>
Alexei/Daniel: This should go into "bpf".