Skip to content

Commit bd4ab24

Browse files
committed
basic/include/linux: update kernel headers from v6.15-rc4
1 parent 4cf30a3 commit bd4ab24

File tree

14 files changed

+163
-48
lines changed

14 files changed

+163
-48
lines changed

src/basic/include/linux/batman_adv.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ enum batadv_nl_attrs {
342342
BATADV_ATTR_MCAST_FLAGS_PRIV,
343343

344344
/**
345-
* @BATADV_ATTR_VLANID: VLAN id on top of soft interface
345+
* @BATADV_ATTR_VLANID: VLAN id on top of mesh interface
346346
*/
347347
BATADV_ATTR_VLANID,
348348

@@ -380,7 +380,7 @@ enum batadv_nl_attrs {
380380
/**
381381
* @BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED: whether the bridge loop
382382
* avoidance feature is enabled. This feature detects and avoids loops
383-
* between the mesh and devices bridged with the soft interface
383+
* between the mesh and devices bridged with the mesh interface
384384
*/
385385
BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED,
386386

@@ -509,7 +509,7 @@ enum batadv_nl_commands {
509509
BATADV_CMD_UNSPEC,
510510

511511
/**
512-
* @BATADV_CMD_GET_MESH: Get attributes from softif/mesh
512+
* @BATADV_CMD_GET_MESH: Get attributes from mesh(if)
513513
*/
514514
BATADV_CMD_GET_MESH,
515515

@@ -535,7 +535,7 @@ enum batadv_nl_commands {
535535

536536
/**
537537
* @BATADV_CMD_GET_HARDIF: Get attributes from a hardif of the
538-
* current softif
538+
* current mesh(if)
539539
*/
540540
BATADV_CMD_GET_HARDIF,
541541

@@ -591,25 +591,25 @@ enum batadv_nl_commands {
591591
BATADV_CMD_GET_MCAST_FLAGS,
592592

593593
/**
594-
* @BATADV_CMD_SET_MESH: Set attributes for softif/mesh
594+
* @BATADV_CMD_SET_MESH: Set attributes for mesh(if)
595595
*/
596596
BATADV_CMD_SET_MESH,
597597

598598
/**
599599
* @BATADV_CMD_SET_HARDIF: Set attributes for hardif of the
600-
* current softif
600+
* current mesh(if)
601601
*/
602602
BATADV_CMD_SET_HARDIF,
603603

604604
/**
605605
* @BATADV_CMD_GET_VLAN: Get attributes from a VLAN of the
606-
* current softif
606+
* current mesh(if)
607607
*/
608608
BATADV_CMD_GET_VLAN,
609609

610610
/**
611611
* @BATADV_CMD_SET_VLAN: Set attributes for VLAN of the
612-
* current softif
612+
* current mesh(if)
613613
*/
614614
BATADV_CMD_SET_VLAN,
615615

@@ -691,7 +691,7 @@ enum batadv_ifla_attrs {
691691
*/
692692
IFLA_BATADV_ALGO_NAME,
693693

694-
/* add attributes above here, update the policy in soft-interface.c */
694+
/* add attributes above here, update the policy in mesh-interface.c */
695695

696696
/**
697697
* @__IFLA_BATADV_MAX: internal use

src/basic/include/linux/bpf.h

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
#define BPF_XCHG (0xe0 | BPF_FETCH) /* atomic exchange */
5252
#define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */
5353

54+
#define BPF_LOAD_ACQ 0x100 /* load-acquire */
55+
#define BPF_STORE_REL 0x110 /* store-release */
56+
5457
enum bpf_cond_pseudo_jmp {
5558
BPF_MAY_GOTO = 0,
5659
};
@@ -1207,6 +1210,7 @@ enum bpf_perf_event_type {
12071210
#define BPF_F_BEFORE (1U << 3)
12081211
#define BPF_F_AFTER (1U << 4)
12091212
#define BPF_F_ID (1U << 5)
1213+
#define BPF_F_PREORDER (1U << 6)
12101214
#define BPF_F_LINK BPF_F_LINK /* 1 << 13 */
12111215

12121216
/* If BPF_F_STRICT_ALIGNMENT is used in BPF_PROG_LOAD command, the
@@ -1648,6 +1652,7 @@ union bpf_attr {
16481652
};
16491653
__u32 next_id;
16501654
__u32 open_flags;
1655+
__s32 fd_by_id_token_fd;
16511656
};
16521657

16531658
struct { /* anonymous struct used by BPF_OBJ_GET_INFO_BY_FD */
@@ -6019,7 +6024,10 @@ union bpf_attr {
60196024
FN(user_ringbuf_drain, 209, ##ctx) \
60206025
FN(cgrp_storage_get, 210, ##ctx) \
60216026
FN(cgrp_storage_delete, 211, ##ctx) \
6022-
/* */
6027+
/* This helper list is effectively frozen. If you are trying to \
6028+
* add a new helper, you should add a kfunc instead which has \
6029+
* less stability guarantees. See Documentation/bpf/kfuncs.rst \
6030+
*/
60236031

60246032
/* backwards-compatibility macros for users of __BPF_FUNC_MAPPER that don't
60256033
* know or care about integer value that is now passed as second argument
@@ -6913,6 +6921,12 @@ enum {
69136921
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7F,
69146922
};
69156923

6924+
enum {
6925+
SK_BPF_CB_TX_TIMESTAMPING = 1<<0,
6926+
SK_BPF_CB_MASK = (SK_BPF_CB_TX_TIMESTAMPING - 1) |
6927+
SK_BPF_CB_TX_TIMESTAMPING
6928+
};
6929+
69166930
/* List of known BPF sock_ops operators.
69176931
* New entries can only be added at the end
69186932
*/
@@ -7025,6 +7039,29 @@ enum {
70257039
* by the kernel or the
70267040
* earlier bpf-progs.
70277041
*/
7042+
BPF_SOCK_OPS_TSTAMP_SCHED_CB, /* Called when skb is passing
7043+
* through dev layer when
7044+
* SK_BPF_CB_TX_TIMESTAMPING
7045+
* feature is on.
7046+
*/
7047+
BPF_SOCK_OPS_TSTAMP_SND_SW_CB, /* Called when skb is about to send
7048+
* to the nic when SK_BPF_CB_TX_TIMESTAMPING
7049+
* feature is on.
7050+
*/
7051+
BPF_SOCK_OPS_TSTAMP_SND_HW_CB, /* Called in hardware phase when
7052+
* SK_BPF_CB_TX_TIMESTAMPING feature
7053+
* is on.
7054+
*/
7055+
BPF_SOCK_OPS_TSTAMP_ACK_CB, /* Called when all the skbs in the
7056+
* same sendmsg call are acked
7057+
* when SK_BPF_CB_TX_TIMESTAMPING
7058+
* feature is on.
7059+
*/
7060+
BPF_SOCK_OPS_TSTAMP_SENDMSG_CB, /* Called when every sendmsg syscall
7061+
* is triggered. It's used to correlate
7062+
* sendmsg timestamp with corresponding
7063+
* tskey.
7064+
*/
70287065
};
70297066

70307067
/* List of TCP states. There is a build check in net/ipv4/tcp.c to detect
@@ -7091,6 +7128,7 @@ enum {
70917128
TCP_BPF_SYN_IP = 1006, /* Copy the IP[46] and TCP header */
70927129
TCP_BPF_SYN_MAC = 1007, /* Copy the MAC, IP[46], and TCP header */
70937130
TCP_BPF_SOCK_OPS_CB_FLAGS = 1008, /* Get or Set TCP sock ops flags */
7131+
SK_BPF_CB_FLAGS = 1009, /* Get or set sock ops flags in socket */
70947132
};
70957133

70967134
enum {

src/basic/include/linux/btrfs.h

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,9 @@ struct btrfs_ioctl_clone_range_args {
613613
*/
614614
#define BTRFS_DEFRAG_RANGE_COMPRESS 1
615615
#define BTRFS_DEFRAG_RANGE_START_IO 2
616+
#define BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL 4
616617
#define BTRFS_DEFRAG_RANGE_FLAGS_SUPP (BTRFS_DEFRAG_RANGE_COMPRESS | \
618+
BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL | \
617619
BTRFS_DEFRAG_RANGE_START_IO)
618620

619621
struct btrfs_ioctl_defrag_range_args {
@@ -638,10 +640,18 @@ struct btrfs_ioctl_defrag_range_args {
638640

639641
/*
640642
* which compression method to use if turning on compression
641-
* for this defrag operation. If unspecified, zlib will
642-
* be used
643+
* for this defrag operation. If unspecified, zlib will be
644+
* used. If compression level is also being specified, set the
645+
* BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL flag and fill the compress
646+
* member structure instead of the compress_type field.
643647
*/
644-
__u32 compress_type;
648+
union {
649+
__u32 compress_type;
650+
struct {
651+
__u8 type;
652+
__s8 level;
653+
} compress;
654+
};
645655

646656
/* spare for later */
647657
__u32 unused[4];

src/basic/include/linux/capability.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ struct vfs_ns_cap_data {
273273
/* Allow setting encryption key on loopback filesystem */
274274
/* Allow setting zone reclaim policy */
275275
/* Allow everything under CAP_BPF and CAP_PERFMON for backward compatibility */
276+
/* Allow setting hardware protection emergency action */
276277

277278
#define CAP_SYS_ADMIN 21
278279

src/basic/include/linux/const.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* Missing __asm__ support
3434
*
3535
* __BIT128() would not work in the __asm__ code, as it shifts an
36-
* 'unsigned __init128' data type as direct representation of
36+
* 'unsigned __int128' data type as direct representation of
3737
* 128 bit constants is not supported in the gcc compiler, as
3838
* they get silently truncated.
3939
*

src/basic/include/linux/ethtool.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,6 +2057,24 @@ enum ethtool_link_mode_bit_indices {
20572057
ETHTOOL_LINK_MODE_10baseT1S_Half_BIT = 100,
20582058
ETHTOOL_LINK_MODE_10baseT1S_P2MP_Half_BIT = 101,
20592059
ETHTOOL_LINK_MODE_10baseT1BRR_Full_BIT = 102,
2060+
ETHTOOL_LINK_MODE_200000baseCR_Full_BIT = 103,
2061+
ETHTOOL_LINK_MODE_200000baseKR_Full_BIT = 104,
2062+
ETHTOOL_LINK_MODE_200000baseDR_Full_BIT = 105,
2063+
ETHTOOL_LINK_MODE_200000baseDR_2_Full_BIT = 106,
2064+
ETHTOOL_LINK_MODE_200000baseSR_Full_BIT = 107,
2065+
ETHTOOL_LINK_MODE_200000baseVR_Full_BIT = 108,
2066+
ETHTOOL_LINK_MODE_400000baseCR2_Full_BIT = 109,
2067+
ETHTOOL_LINK_MODE_400000baseKR2_Full_BIT = 110,
2068+
ETHTOOL_LINK_MODE_400000baseDR2_Full_BIT = 111,
2069+
ETHTOOL_LINK_MODE_400000baseDR2_2_Full_BIT = 112,
2070+
ETHTOOL_LINK_MODE_400000baseSR2_Full_BIT = 113,
2071+
ETHTOOL_LINK_MODE_400000baseVR2_Full_BIT = 114,
2072+
ETHTOOL_LINK_MODE_800000baseCR4_Full_BIT = 115,
2073+
ETHTOOL_LINK_MODE_800000baseKR4_Full_BIT = 116,
2074+
ETHTOOL_LINK_MODE_800000baseDR4_Full_BIT = 117,
2075+
ETHTOOL_LINK_MODE_800000baseDR4_2_Full_BIT = 118,
2076+
ETHTOOL_LINK_MODE_800000baseSR4_Full_BIT = 119,
2077+
ETHTOOL_LINK_MODE_800000baseVR4_Full_BIT = 120,
20602078

20612079
/* must be last entry */
20622080
__ETHTOOL_LINK_MODE_MASK_NBITS
@@ -2269,6 +2287,10 @@ static __inline__ int ethtool_validate_duplex(__u8 duplex)
22692287
* be exploited to reduce the RSS queue spread.
22702288
*/
22712289
#define RXH_XFRM_SYM_XOR (1 << 0)
2290+
/* Similar to SYM_XOR, except that one copy of the XOR'ed fields is replaced by
2291+
* an OR of the same fields
2292+
*/
2293+
#define RXH_XFRM_SYM_OR_XOR (1 << 1)
22722294
#define RXH_XFRM_NO_CHANGE 0xff
22732295

22742296
/* L2-L4 network traffic flow types */

src/basic/include/linux/fib_rules.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ enum {
7070
FRA_DSCP, /* dscp */
7171
FRA_FLOWLABEL, /* flowlabel */
7272
FRA_FLOWLABEL_MASK, /* flowlabel mask */
73+
FRA_SPORT_MASK, /* sport mask */
74+
FRA_DPORT_MASK, /* dport mask */
75+
FRA_DSCP_MASK, /* dscp mask */
7376
__FRA_MAX
7477
};
7578

src/basic/include/linux/fs.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,8 @@ struct fsxattr {
208208
#define BLKROTATIONAL _IO(0x12,126)
209209
#define BLKZEROOUT _IO(0x12,127)
210210
#define BLKGETDISKSEQ _IOR(0x12,128,__u64)
211-
/*
212-
* A jump here: 130-136 are reserved for zoned block devices
213-
* (see uapi/linux/blkzoned.h)
214-
*/
211+
/* 130-136 are used by zoned block device ioctls (uapi/linux/blkzoned.h) */
212+
/* 137-141 are used by blk-crypto ioctls (uapi/linux/blk-crypto.h) */
215213

216214
#define BMAP_IOCTL 1 /* obsolete - kept for compatibility */
217215
#define FIBMAP _IO(0x00,1) /* bmap access */

src/basic/include/linux/if_link.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ enum {
378378
IFLA_GRO_IPV4_MAX_SIZE,
379379
IFLA_DPLL_PIN,
380380
IFLA_MAX_PACING_OFFLOAD_HORIZON,
381+
IFLA_NETNS_IMMUTABLE,
381382
__IFLA_MAX
382383
};
383384

@@ -1436,6 +1437,7 @@ enum {
14361437
IFLA_GENEVE_TTL_INHERIT,
14371438
IFLA_GENEVE_DF,
14381439
IFLA_GENEVE_INNER_PROTO_INHERIT,
1440+
IFLA_GENEVE_PORT_RANGE,
14391441
__IFLA_GENEVE_MAX
14401442
};
14411443
#define IFLA_GENEVE_MAX (__IFLA_GENEVE_MAX - 1)
@@ -1448,6 +1450,11 @@ enum ifla_geneve_df {
14481450
GENEVE_DF_MAX = __GENEVE_DF_END - 1,
14491451
};
14501452

1453+
struct ifla_geneve_port_range {
1454+
__be16 low;
1455+
__be16 high;
1456+
};
1457+
14511458
/* Bareudp section */
14521459
enum {
14531460
IFLA_BAREUDP_UNSPEC,

src/basic/include/linux/mount.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@ struct statmount {
179179
__u32 opt_array; /* [str] Array of nul terminated fs options */
180180
__u32 opt_sec_num; /* Number of security options */
181181
__u32 opt_sec_array; /* [str] Array of nul terminated security options */
182-
__u64 __spare2[46];
182+
__u64 supported_mask; /* Mask flags that this kernel supports */
183+
__u32 mnt_uidmap_num; /* Number of uid mappings */
184+
__u32 mnt_uidmap; /* [str] Array of uid mappings (as seen from callers namespace) */
185+
__u32 mnt_gidmap_num; /* Number of gid mappings */
186+
__u32 mnt_gidmap; /* [str] Array of gid mappings (as seen from callers namespace) */
187+
__u64 __spare2[43];
183188
char str[]; /* Variable size part containing strings */
184189
};
185190

@@ -217,6 +222,9 @@ struct mnt_id_req {
217222
#define STATMOUNT_SB_SOURCE 0x00000200U /* Want/got sb_source */
218223
#define STATMOUNT_OPT_ARRAY 0x00000400U /* Want/got opt_... */
219224
#define STATMOUNT_OPT_SEC_ARRAY 0x00000800U /* Want/got opt_sec... */
225+
#define STATMOUNT_SUPPORTED_MASK 0x00001000U /* Want/got supported mask flags */
226+
#define STATMOUNT_MNT_UIDMAP 0x00002000U /* Want/got uidmap... */
227+
#define STATMOUNT_MNT_GIDMAP 0x00004000U /* Want/got gidmap... */
220228

221229
/*
222230
* Special @mnt_id values that can be passed to listmount

0 commit comments

Comments
 (0)