diff options
| author | Eric Dumazet <[email protected]> | 2025-07-11 11:40:04 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-15 01:41:43 +0000 |
| commit | 75dff0584cce79203ee9968c66c7589150fed591 (patch) | |
| tree | 5fd3b72baaa207946f73e9237a178ef76540a5be /include/net/sock.h | |
| parent | selftests/net: packetdrill: add tcp_ooo_rcv_mss.pkt (diff) | |
| download | kernel-75dff0584cce79203ee9968c66c7589150fed591.tar.gz kernel-75dff0584cce79203ee9968c66c7589150fed591.zip | |
tcp: add const to tcp_try_rmem_schedule() and sk_rmem_schedule() skb
These functions to not modify the skb, add a const qualifier.
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'include/net/sock.h')
| -rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 0f2443d4ec58..c8a4b283df6f 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1553,7 +1553,7 @@ __sk_rmem_schedule(struct sock *sk, int size, bool pfmemalloc) } static inline bool -sk_rmem_schedule(struct sock *sk, struct sk_buff *skb, int size) +sk_rmem_schedule(struct sock *sk, const struct sk_buff *skb, int size) { return __sk_rmem_schedule(sk, size, skb_pfmemalloc(skb)); } |
