git: bb9b11bc6403 - stable/14 - LinuxKPI: add type for __wsum
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Apr 2025 11:41:43 UTC
The branch stable/14 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=bb9b11bc6403eab14c98b1a31219b93bb7959518
commit bb9b11bc6403eab14c98b1a31219b93bb7959518
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-04-14 21:04:27 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-04-29 10:49:29 +0000
LinuxKPI: add type for __wsum
Seems this is the correct type for the csum field in an sk_buff.
Add it as uint32_t __bitwise__.
Sponsored by; The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49831
(cherry picked from commit c925e0a77606d07e4d93204a1d35530176c4b344)
---
sys/compat/linuxkpi/common/include/linux/types.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/types.h b/sys/compat/linuxkpi/common/include/linux/types.h
index 440592bb5f84..faec55a72e57 100644
--- a/sys/compat/linuxkpi/common/include/linux/types.h
+++ b/sys/compat/linuxkpi/common/include/linux/types.h
@@ -64,6 +64,7 @@ typedef unsigned gfp_t;
typedef off_t loff_t;
typedef vm_paddr_t resource_size_t;
typedef uint16_t __bitwise__ __sum16;
+typedef uint32_t __bitwise__ __wsum;
typedef unsigned long pgoff_t;
typedef unsigned __poll_t;