Thread (4 messages) flat view 4 messages, 3 authors, 2025-06-15

Re: [PATCH net-next] net: Drop unused @sk of __skb_try_recv_from_queue()

From: Michal Luczaj <hidden>
Date: 2025-06-15 21:20:04
Also in: lkml

On 4/7/25 21:01, Michal Luczaj wrote:
__skb_try_recv_from_queue() deals with a queue, @sk is never used.
Remove sk from function parameters, adapt callers.

No functional change intended.
Looking at datagram.c, it's a similar story with skb_free_datagram(): its
@sk is unused since commit 4890b686f408 ("net: keep sk->sk_forward_alloc as
small as possible").

All this function does is `consume_skb(skb)`. Would it be worth dropping
the `sk` parameter? Or making callers directly invoke consume_skb()?

$ git grep skb_free_datagram | wc -l
52

Thanks,
Michal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help