]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Update kernel headers
authorDavid Ahern <dsahern@kernel.org>
Fri, 3 Dec 2021 17:17:51 +0000 (10:17 -0700)
committerDavid Ahern <dsahern@kernel.org>
Fri, 3 Dec 2021 17:17:51 +0000 (10:17 -0700)
Update kernel headers to commit:
    bb14bfc7eb92 ("net: lan966x: fix a IS_ERR() vs NULL check in lan966x_create_targets()")

Signed-off-by: David Ahern <dsahern@kernel.org>
include/uapi/linux/bpf.h
include/uapi/linux/btf.h
include/uapi/linux/if_ether.h
include/uapi/linux/if_link.h

index 0c3a514a35b3bebb40c7d46e7e847c7605454d98..a1047749e117978d06b29f975337737c1ac1fdb2 100644 (file)
@@ -4938,6 +4938,25 @@ union bpf_attr {
  *             **-ENOENT** if symbol is not found.
  *
  *             **-EPERM** if caller does not have permission to obtain kernel address.
+ *
+ * long bpf_find_vma(struct task_struct *task, u64 addr, void *callback_fn, void *callback_ctx, u64 flags)
+ *     Description
+ *             Find vma of *task* that contains *addr*, call *callback_fn*
+ *             function with *task*, *vma*, and *callback_ctx*.
+ *             The *callback_fn* should be a static function and
+ *             the *callback_ctx* should be a pointer to the stack.
+ *             The *flags* is used to control certain aspects of the helper.
+ *             Currently, the *flags* must be 0.
+ *
+ *             The expected callback signature is
+ *
+ *             long (\*callback_fn)(struct task_struct \*task, struct vm_area_struct \*vma, void \*callback_ctx);
+ *
+ *     Return
+ *             0 on success.
+ *             **-ENOENT** if *task->mm* is NULL, or no vma contains *addr*.
+ *             **-EBUSY** if failed to try lock mmap_lock.
+ *             **-EINVAL** for invalid **flags**.
  */
 #define __BPF_FUNC_MAPPER(FN)          \
        FN(unspec),                     \
@@ -5120,6 +5139,7 @@ union bpf_attr {
        FN(trace_vprintk),              \
        FN(skc_to_unix_sock),           \
        FN(kallsyms_lookup_name),       \
+       FN(find_vma),                   \
        /* */
 
 /* integer value in 'imm' field of BPF_CALL instruction selects which helper
@@ -6296,6 +6316,7 @@ struct bpf_sk_lookup {
        __u32 local_ip4;        /* Network byte order */
        __u32 local_ip6[4];     /* Network byte order */
        __u32 local_port;       /* Host byte order */
+       __u32 ingress_ifindex;          /* The arriving interface. Determined by inet_iif. */
 };
 
 /*
index 3e90bfc6f71dfd33cab1f93e3647a1489f463b8c..92c41b157ba5504164183a7fd66ab7ff1d8c88f3 100644 (file)
@@ -43,7 +43,7 @@ struct btf_type {
         * "size" tells the size of the type it is describing.
         *
         * "type" is used by PTR, TYPEDEF, VOLATILE, CONST, RESTRICT,
-        * FUNC, FUNC_PROTO, VAR and DECL_TAG.
+        * FUNC, FUNC_PROTO, VAR, DECL_TAG and TYPE_TAG.
         * "type" is a type_id referring to another type.
         */
        union {
@@ -75,6 +75,7 @@ enum {
        BTF_KIND_DATASEC        = 15,   /* Section      */
        BTF_KIND_FLOAT          = 16,   /* Floating point       */
        BTF_KIND_DECL_TAG       = 17,   /* Decl Tag */
+       BTF_KIND_TYPE_TAG       = 18,   /* Type Tag */
 
        NR_BTF_KINDS,
        BTF_KIND_MAX            = NR_BTF_KINDS - 1,
index 8d0f6826d0266d073828b442a6017a27a3e53cbf..804f9b394ac892cf77eaa93ecdb678b33c3cd89b 100644 (file)
 #define ETH_P_IFE      0xED3E          /* ForCES inter-FE LFB type */
 #define ETH_P_AF_IUCV   0xFBFB         /* IBM af_iucv [ NOT AN OFFICIALLY REGISTERED ID ] */
 
-#define ETH_P_802_3_MIN        0x0600          /* If the value in the ethernet type is less than this value
+#define ETH_P_802_3_MIN        0x0600          /* If the value in the ethernet type is more than this value
                                         * then the frame is Ethernet II. Else it is 802.3 */
 
 /*
index 1d4ed60bc7790c87dc8b825901fb748d55dfc48b..9ed264d556f8f0743239e9cf90330ff3ea7dcbd0 100644 (file)
@@ -856,6 +856,7 @@ enum {
        IFLA_BOND_TLB_DYNAMIC_LB,
        IFLA_BOND_PEER_NOTIF_DELAY,
        IFLA_BOND_AD_LACP_ACTIVE,
+       IFLA_BOND_MISSED_MAX,
        __IFLA_BOND_MAX,
 };