git: f6fe2cf64f94 - releng/15.0 - LinuxKPI: skbuff: add a misplaced socket operation to skbuff.h for now

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Thu, 23 Oct 2025 23:37:16 UTC
The branch releng/15.0 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=f6fe2cf64f944b0201aa119bf4d0907ee04d8d00

commit f6fe2cf64f944b0201aa119bf4d0907ee04d8d00
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-10-11 09:25:08 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-10-23 23:32:21 +0000

    LinuxKPI: skbuff: add a misplaced socket operation to skbuff.h for now
    
    This likely belongs in socket code which we do not have in LinuxKPI.
    Needed by a wirless driver at v6.17.
    
    Approved by:    re (cperciva)
    
    (cherry picked from commit 88dbf83345feefa7181bd6df47786e1a8d1d304d)
    (cherry picked from commit 3ad05fa24a240011a8252140ff6431cb0b7879d9)
---
 sys/compat/linuxkpi/common/include/linux/skbuff.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/skbuff.h b/sys/compat/linuxkpi/common/include/linux/skbuff.h
index 6e41c368a8b8..2e560a120e41 100644
--- a/sys/compat/linuxkpi/common/include/linux/skbuff.h
+++ b/sys/compat/linuxkpi/common/include/linux/skbuff.h
@@ -1159,6 +1159,9 @@ skb_cow_head(struct sk_buff *skb, unsigned int headroom)
 	return (-1);
 }
 
+/* Misplaced here really but sock comes from skbuff. */
+#define	sk_pacing_shift_update(sock, n)
+
 #define	SKB_WITH_OVERHEAD(_s)						\
 	(_s) - ALIGN(sizeof(struct skb_shared_info), CACHE_LINE_SIZE)