From: Menglong Dong Replace sk_busy_loop with sk_tx_busy_loop to support tx napi in __xsk_sendmsg(). Fixes: a0731952d9cd ("xsk: Add busy-poll support for {recv,send}msg()") Signed-off-by: Menglong Dong --- net/xdp/xsk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/xdp/xsk.c b/net/xdp/xsk.c index 5e5786cd9af5..2bf9a7313ac4 100644 --- a/net/xdp/xsk.c +++ b/net/xdp/xsk.c @@ -1158,7 +1158,7 @@ static int __xsk_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len return -ENOBUFS; if (sk_can_busy_loop(sk)) - sk_busy_loop(sk, 1); /* only support non-blocking sockets */ + sk_tx_busy_loop(sk, 1); /* only support non-blocking sockets */ if (xs->zc && xsk_no_wakeup(sk)) return 0; -- 2.54.0