]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
uapi: update headers from 7.2-pre-rc1
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 28 Jun 2026 20:42:43 +0000 (13:42 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 28 Jun 2026 20:44:37 +0000 (13:44 -0700)
Update kernel headers including some of the changes for ATM cleanups.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/uapi/linux/atmarp.h [deleted file]
include/uapi/linux/atmdev.h
include/uapi/linux/bpf.h
include/uapi/linux/btf.h
include/uapi/linux/devlink.h
include/uapi/linux/dpll.h
include/uapi/linux/if_ether.h
include/uapi/linux/if_link.h
include/uapi/linux/tls.h
include/uapi/linux/xfrm.h
rdma/include/uapi/rdma/ib_user_verbs.h

diff --git a/include/uapi/linux/atmarp.h b/include/uapi/linux/atmarp.h
deleted file mode 100644 (file)
index 8e44d12..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/* atmarp.h - ATM ARP protocol and kernel-demon interface definitions */
-/* Written 1995-1999 by Werner Almesberger, EPFL LRC/ICA */
-
-#ifndef _LINUX_ATMARP_H
-#define _LINUX_ATMARP_H
-
-#include <linux/types.h>
-#include <linux/atmapi.h>
-#include <linux/atmioc.h>
-
-
-#define ATMARP_RETRY_DELAY 30          /* request next resolution or forget
-                                          NAK after 30 sec - should go into
-                                          atmclip.h */
-#define ATMARP_MAX_UNRES_PACKETS 5     /* queue that many packets while
-                                          waiting for the resolver */
-
-
-#define ATMARPD_CTRL   _IO('a',ATMIOC_CLIP+1)  /* become atmarpd ctrl sock */
-#define ATMARP_MKIP    _IO('a',ATMIOC_CLIP+2)  /* attach socket to IP */
-#define ATMARP_SETENTRY        _IO('a',ATMIOC_CLIP+3)  /* fill or hide ARP entry */
-#define ATMARP_ENCAP   _IO('a',ATMIOC_CLIP+5)  /* change encapsulation */
-
-
-enum atmarp_ctrl_type {
-       act_invalid,            /* catch uninitialized structures */
-       act_need,               /* need address resolution */
-       act_up,                 /* interface is coming up */
-       act_down,               /* interface is going down */
-       act_change              /* interface configuration has changed */
-};
-
-struct atmarp_ctrl {
-       enum atmarp_ctrl_type   type;   /* message type */
-       int                     itf_num;/* interface number (if present) */
-       __be32                  ip;     /* IP address (act_need only) */
-};
-
-#endif
index c95786e949af87263bc455c5476449f08f2f346d..9d77f0b11fb035f17d6acb2fb2477739d4a08c96 100644 (file)
@@ -60,14 +60,6 @@ struct atm_dev_stats {
                                        /* get interface type name */
 #define ATM_GETESI     _IOW('a',ATMIOC_ITF+5,struct atmif_sioc)
                                        /* get interface ESI */
-#define ATM_GETADDR    _IOW('a',ATMIOC_ITF+6,struct atmif_sioc)
-                                       /* get itf's local ATM addr. list */
-#define ATM_RSTADDR    _IOW('a',ATMIOC_ITF+7,struct atmif_sioc)
-                                       /* reset itf's ATM address list */
-#define ATM_ADDADDR    _IOW('a',ATMIOC_ITF+8,struct atmif_sioc)
-                                       /* add a local ATM address */
-#define ATM_DELADDR    _IOW('a',ATMIOC_ITF+9,struct atmif_sioc)
-                                       /* remove a local ATM address */
 #define ATM_GETCIRANGE _IOW('a',ATMIOC_ITF+10,struct atmif_sioc)
                                        /* get connection identifier range */
 #define ATM_SETCIRANGE _IOW('a',ATMIOC_ITF+11,struct atmif_sioc)
@@ -76,12 +68,6 @@ struct atm_dev_stats {
                                        /* set interface ESI */
 #define ATM_SETESIF    _IOW('a',ATMIOC_ITF+13,struct atmif_sioc)
                                        /* force interface ESI */
-#define ATM_ADDLECSADDR        _IOW('a', ATMIOC_ITF+14, struct atmif_sioc)
-                                       /* register a LECS address */
-#define ATM_DELLECSADDR        _IOW('a', ATMIOC_ITF+15, struct atmif_sioc)
-                                       /* unregister a LECS address */
-#define ATM_GETLECSADDR        _IOW('a', ATMIOC_ITF+16, struct atmif_sioc)
-                                       /* retrieve LECS address(es) */
 
 #define ATM_GETSTAT    _IOW('a',ATMIOC_SARCOM+0,struct atmif_sioc)
                                        /* get AAL layer statistics */
@@ -99,10 +85,6 @@ struct atm_dev_stats {
                                        /* set backend handler */
 #define ATM_NEWBACKENDIF _IOW('a',ATMIOC_SPECIAL+3,atm_backend_t)
                                        /* use backend to make new if */
-#define ATM_ADDPARTY   _IOW('a', ATMIOC_SPECIAL+4,struct atm_iobuf)
-                                       /* add party to p2mp call */
-#define ATM_DROPPARTY  _IOW('a', ATMIOC_SPECIAL+5,int)
-                                       /* drop party from p2mp call */
 
 /*
  * These are backend handkers that can be set via the ATM_SETBACKEND call
index 2ae9d05cb4e156bf220c9763991c4260c8a03b9c..a14e19aaba0ed51ae7cf931b699a818da4d5d4d2 100644 (file)
@@ -994,6 +994,7 @@ enum bpf_cmd {
        BPF_PROG_STREAM_READ_BY_FD,
        BPF_PROG_ASSOC_STRUCT_OPS,
        __MAX_BPF_CMD,
+       BPF_COMMON_ATTRS = 1 << 16, /* Indicate carrying syscall common attrs. */
 };
 
 enum bpf_map_type {
@@ -1046,6 +1047,7 @@ enum bpf_map_type {
        BPF_MAP_TYPE_CGRP_STORAGE,
        BPF_MAP_TYPE_ARENA,
        BPF_MAP_TYPE_INSN_ARRAY,
+       BPF_MAP_TYPE_RHASH,
        __MAX_BPF_MAP_TYPE
 };
 
@@ -1154,6 +1156,9 @@ enum bpf_attach_type {
        BPF_TRACE_KPROBE_SESSION,
        BPF_TRACE_UPROBE_SESSION,
        BPF_TRACE_FSESSION,
+       BPF_TRACE_FENTRY_MULTI,
+       BPF_TRACE_FEXIT_MULTI,
+       BPF_TRACE_FSESSION_MULTI,
        __MAX_BPF_ATTACH_TYPE
 };
 
@@ -1178,6 +1183,7 @@ enum bpf_link_type {
        BPF_LINK_TYPE_UPROBE_MULTI = 12,
        BPF_LINK_TYPE_NETKIT = 13,
        BPF_LINK_TYPE_SOCKMAP = 14,
+       BPF_LINK_TYPE_TRACING_MULTI = 15,
        __MAX_BPF_LINK_TYPE,
 };
 
@@ -1321,7 +1327,11 @@ enum {
  * BPF_TRACE_UPROBE_MULTI attach type to create return probe.
  */
 enum {
-       BPF_F_UPROBE_MULTI_RETURN = (1U << 0)
+       /* Get return uprobe. */
+       BPF_F_UPROBE_MULTI_RETURN     = (1U << 0),
+
+       /* Get path from provided path_fd. */
+       BPF_F_UPROBE_MULTI_PATH_FD    = (1U << 1),
 };
 
 /* link_create.netfilter.flags used in LINK_CREATE command for
@@ -1500,6 +1510,13 @@ struct bpf_stack_build_id {
        };
 };
 
+struct bpf_common_attr {
+       __aligned_u64 log_buf;
+       __u32 log_size;
+       __u32 log_level;
+       __u32 log_true_size;
+};
+
 #define BPF_OBJ_NAME_LEN 16U
 
 enum {
@@ -1537,6 +1554,11 @@ union bpf_attr {
                 *
                 * BPF_MAP_TYPE_ARENA - contains the address where user space
                 * is going to mmap() the arena. It has to be page aligned.
+                *
+                * BPF_MAP_TYPE_RHASH - initial table size hint
+                * (nelem_hint). 0 = use rhashtable default. Must be
+                * <= min(max_entries, U16_MAX). Upper 32 bits reserved,
+                * must be zero.
                 */
                __u64   map_extra;
 
@@ -1846,6 +1868,7 @@ union bpf_attr {
                                __u32           cnt;
                                __u32           flags;
                                __u32           pid;
+                               __u32           path_fd;
                        } uprobe_multi;
                        struct {
                                union {
@@ -1861,6 +1884,11 @@ union bpf_attr {
                                };
                                __u64           expected_revision;
                        } cgroup;
+                       struct {
+                               __aligned_u64   ids;
+                               __aligned_u64   cookies;
+                               __u32           cnt;
+                       } tracing_multi;
                };
        } link_create;
 
@@ -6698,6 +6726,7 @@ struct bpf_prog_info {
        __u32 verified_insns;
        __u32 attach_btf_obj_id;
        __u32 attach_btf_id;
+       __u32 :32;
 } __attribute__((aligned(8)));
 
 struct bpf_map_info {
@@ -6719,6 +6748,7 @@ struct bpf_map_info {
        __u64 map_extra;
        __aligned_u64 hash;
        __u32 hash_size;
+       __u32 :32;
 } __attribute__((aligned(8)));
 
 struct bpf_btf_info {
index 30e2084d3a8e2024f368fd2d537fb60a84a3ffd3..64ced5d7eb91e3da71ddeb7cda6eeaa969b2b7fb 100644 (file)
@@ -33,20 +33,22 @@ struct btf_header {
        __u32   layout_len;     /* length of layout section     */
 };
 
-/* Max # of type identifier */
-#define BTF_MAX_TYPE   0x000fffff
-/* Max offset into the string section */
-#define BTF_MAX_NAME_OFFSET    0x00ffffff
-/* Max # of struct/union/enum members or func args */
-#define BTF_MAX_VLEN   0xffff
+enum btf_max {
+       /* Max possible kind */
+       BTF_MAX_KIND =          0x0000007f,
+       /* Max # of type identifier */
+       BTF_MAX_TYPE =          0x000fffff,
+       /* Max offset into the string section */
+       BTF_MAX_NAME_OFFSET =   0x00ffffff,
+       /* Max # of struct/union/enum members or func args */
+       BTF_MAX_VLEN =          0x00ffffff,
+};
 
 struct btf_type {
        __u32 name_off;
        /* "info" bits arrangement
-        * bits  0-15: vlen (e.g. # of struct's members)
-        * bits 16-23: unused
-        * bits 24-28: kind (e.g. int, ptr, array...etc)
-        * bits 29-30: unused
+        * bits  0-23: vlen (e.g. # of struct's members)
+        * bits 24-30: kind (e.g. int, ptr, array...etc)
         * bit     31: kind_flag, currently used by
         *             struct, union, enum, fwd, enum64,
         *             decl_tag and type_tag
@@ -65,8 +67,8 @@ struct btf_type {
        };
 };
 
-#define BTF_INFO_KIND(info)    (((info) >> 24) & 0x1f)
-#define BTF_INFO_VLEN(info)    ((info) & 0xffff)
+#define BTF_INFO_KIND(info)    (((info) >> 24) & 0x7f)
+#define BTF_INFO_VLEN(info)    ((info) & 0xffffff)
 #define BTF_INFO_KFLAG(info)   ((info) >> 31)
 
 enum {
index 7f5c3e32c2371a11c03de002a8eb25403306fbc9..1416e81510b318a7dbf516f353ebb35abac478f0 100644 (file)
@@ -406,6 +406,7 @@ enum devlink_var_attr_type {
        DEVLINK_VAR_ATTR_TYPE_BINARY,
        __DEVLINK_VAR_ATTR_TYPE_CUSTOM_BASE = 0x80,
        /* Any possible custom types, unrelated to NLA_* values go below */
+       DEVLINK_VAR_ATTR_TYPE_U64_ARRAY,
 };
 
 enum devlink_attr {
index 05bab762d99857846332ff4922c3e0db52832a5e..b88448c582d1fa0abd13d8531ef0c2a5c5dc4ae0 100644 (file)
@@ -109,10 +109,12 @@ enum dpll_clock_quality_level {
  * enum dpll_type - type of dpll, valid values for DPLL_A_TYPE attribute
  * @DPLL_TYPE_PPS: dpll produces Pulse-Per-Second signal
  * @DPLL_TYPE_EEC: dpll drives the Ethernet Equipment Clock
+ * @DPLL_TYPE_GENERIC: generic dpll type for devices outside PPS/EEC classes
  */
 enum dpll_type {
        DPLL_TYPE_PPS = 1,
        DPLL_TYPE_EEC,
+       DPLL_TYPE_GENERIC,
 
        /* private: */
        __DPLL_TYPE_MAX,
index d87c6d208876fb76e2893f9a8818cecbc1800abe..cc75a6f80c042d23969bc3a03a3ca6d78f3c085b 100644 (file)
@@ -82,6 +82,7 @@
 #define ETH_P_PPP_DISC 0x8863          /* PPPoE discovery messages     */
 #define ETH_P_PPP_SES  0x8864          /* PPPoE session messages       */
 #define ETH_P_LINK_CTL 0x886c          /* HPNA, wlan link local tunnel */
+#define ETH_P_8021AC   0x8870          /* 802.1AC LLC > 1500 bytes     */
 #define ETH_P_ATMFATE  0x8884          /* Frame-based ATM Transport
                                         * over Ethernet
                                         */
 #define ETH_P_MCTP     0x00FA          /* Management component transport
                                         * protocol packets
                                         */
+#define ETH_P_GRE_OSI  0x00FE          /* GRE tunnels: LLC "fe fe 03" analog,
+                                        * used primarily for IS-IS over GRE
+                                        * WARNING: not internal, used on wire!
+                                        */
 
 /*
  *     This is an Ethernet frame header.
index 70aee1145e6d7b3e29e1f503026e8e5aafff8aee..d3a21fba113596da886cd7f21e1317102f64e2a0 100644 (file)
@@ -1601,6 +1601,7 @@ enum {
        IFLA_BOND_NS_IP6_TARGET,
        IFLA_BOND_COUPLED_CONTROL,
        IFLA_BOND_BROADCAST_NEIGH,
+       IFLA_BOND_LACP_STRICT,
        __IFLA_BOND_MAX,
 };
 
index 59ae50be83d21d7ef51d199239ce43b50d351eb8..34ee2a16fc79df22c0311ecc3c195c37301576d4 100644 (file)
@@ -203,6 +203,6 @@ enum {
 #define TLS_CONF_BASE 1
 #define TLS_CONF_SW 2
 #define TLS_CONF_HW 3
-#define TLS_CONF_HW_RECORD 4
+#define TLS_CONF_HW_RECORD 4 /* unused */
 
 #endif /* _LINUX_TLS_H */
index f4248609fa7581d4fa772f85499dace6d55d3b72..f722c8ac79d8b8c550e4c98d18531edaefaf80ef 100644 (file)
@@ -227,6 +227,9 @@ enum {
 #define XFRM_MSG_SETDEFAULT XFRM_MSG_SETDEFAULT
        XFRM_MSG_GETDEFAULT,
 #define XFRM_MSG_GETDEFAULT XFRM_MSG_GETDEFAULT
+
+       XFRM_MSG_MIGRATE_STATE,
+#define XFRM_MSG_MIGRATE_STATE XFRM_MSG_MIGRATE_STATE
        __XFRM_MSG_MAX
 };
 #define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
@@ -507,6 +510,28 @@ struct xfrm_user_migrate {
        __u16                           new_family;
 };
 
+struct xfrm_user_migrate_state {
+       struct xfrm_usersa_id id;
+       xfrm_address_t new_daddr;
+       xfrm_address_t new_saddr;
+       struct xfrm_mark old_mark;
+       struct xfrm_selector new_sel;
+       __u32 new_reqid;
+       __u32 flags;
+       __u16 new_family;
+       __u16 reserved;
+};
+
+/* Flags for xfrm_user_migrate_state.flags */
+enum xfrm_migrate_state_flags {
+       XFRM_MIGRATE_STATE_CLEAR_OFFLOAD = 1, /* do not inherit offload from existing SA */
+       XFRM_MIGRATE_STATE_UPDATE_H2H_SEL = 2, /* update H2H selector from new daddr/saddr */
+};
+
+/* All flags defined as of this header version; unknown bits are rejected. */
+#define XFRM_MIGRATE_STATE_KNOWN_FLAGS \
+       (XFRM_MIGRATE_STATE_CLEAR_OFFLOAD | XFRM_MIGRATE_STATE_UPDATE_H2H_SEL)
+
 struct xfrm_user_mapping {
        struct xfrm_usersa_id           id;
        __u32                           reqid;
index 3b7bd99813e9526ead3f9fb124835a0b17e4d2a6..d2aeadb6d2f995b138dd7fec39d92ea00615d0c6 100644 (file)
@@ -1368,6 +1368,8 @@ enum ib_uverbs_device_cap_flags {
        IB_UVERBS_DEVICE_FLUSH_PERSISTENT = 1ULL << 39,
        /* Atomic write attributes */
        IB_UVERBS_DEVICE_ATOMIC_WRITE = 1ULL << 40,
+       /* CoCo guest with DMA bounce buffering required */
+       IB_UVERBS_DEVICE_CC_DMA_BOUNCE = 1ULL << 41,
 };
 
 enum ib_uverbs_raw_packet_caps {