]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Update kernel headers
authorDavid Ahern <dsahern@kernel.org>
Sat, 23 Jan 2021 18:15:57 +0000 (18:15 +0000)
committerDavid Ahern <dsahern@kernel.org>
Sat, 23 Jan 2021 18:15:57 +0000 (18:15 +0000)
Update kernel headers to commit:
    59a49d9617e2 ("Merge branch 'mlxsw-expose-number-of-physical-ports'")

Signed-off-by: David Ahern <dsahern@kernel.org>
include/uapi/linux/bpf.h
include/uapi/linux/if_bonding.h
include/uapi/linux/if_link.h
include/uapi/linux/if_tunnel.h
include/uapi/linux/mptcp.h
include/uapi/linux/pkt_cls.h
include/uapi/linux/pkt_sched.h
include/uapi/linux/tcp.h

index bd28bc76d810c8af5bf24ded8858bb066c5199c4..1daeda13f0b707668cf170e34747d6b0c12a204d 100644 (file)
@@ -19,7 +19,8 @@
 
 /* ld/ldx fields */
 #define BPF_DW         0x18    /* double word (64-bit) */
-#define BPF_XADD       0xc0    /* exclusive add */
+#define BPF_ATOMIC     0xc0    /* atomic memory ops - op type in immediate */
+#define BPF_XADD       0xc0    /* exclusive add - legacy name */
 
 /* alu/jmp fields */
 #define BPF_MOV                0xb0    /* mov reg to reg */
 #define BPF_CALL       0x80    /* function call */
 #define BPF_EXIT       0x90    /* function return */
 
+/* atomic op type fields (stored in immediate) */
+#define BPF_FETCH      0x01    /* not an opcode on its own, used to build others */
+#define BPF_XCHG       (0xe0 | BPF_FETCH)      /* atomic exchange */
+#define BPF_CMPXCHG    (0xf0 | BPF_FETCH)      /* atomic compare-and-write */
+
 /* Register numbers */
 enum {
        BPF_REG_0 = 0,
@@ -2448,7 +2454,7 @@ union bpf_attr {
  *             running simultaneously.
  *
  *             A user should care about the synchronization by himself.
- *             For example, by using the **BPF_STX_XADD** instruction to alter
+ *             For example, by using the **BPF_ATOMIC** instructions to alter
  *             the shared data.
  *     Return
  *             A pointer to the local storage area.
@@ -2993,10 +2999,10 @@ union bpf_attr {
  *             string length is larger than *size*, just *size*-1 bytes are
  *             copied and the last byte is set to NUL.
  *
- *             On success, the length of the copied string is returned. This
- *             makes this helper useful in tracing programs for reading
- *             strings, and more importantly to get its length at runtime. See
- *             the following snippet:
+ *             On success, returns the number of bytes that were written,
+ *             including the terminal NUL. This makes this helper useful in
+ *             tracing programs for reading strings, and more importantly to
+ *             get its length at runtime. See the following snippet:
  *
  *             ::
  *
@@ -3024,7 +3030,7 @@ union bpf_attr {
  *             **->mm->env_start**: using this helper and the return value,
  *             one can quickly iterate at the right offset of the memory area.
  *     Return
- *             On success, the strictly positive length of the string,
+ *             On success, the strictly positive length of the output string,
  *             including the trailing NUL character. On error, a negative
  *             value.
  *
index 45f3750aa861b5bfbaedf9c0b643b3d6ac5888ae..e8eb4ad03cf18e3b8ed083fd2600f3770e387d42 100644 (file)
@@ -94,6 +94,7 @@
 #define BOND_XMIT_POLICY_LAYER23       2 /* layer 2+3 (IP ^ MAC) */
 #define BOND_XMIT_POLICY_ENCAP23       3 /* encapsulated layer 2+3 */
 #define BOND_XMIT_POLICY_ENCAP34       4 /* encapsulated layer 3+4 */
+#define BOND_XMIT_POLICY_VLAN_SRCMAC   5 /* vlan + source MAC */
 
 /* 802.3ad port state definitions (43.4.2.2 in the 802.3ad standard) */
 #define LACP_STATE_LACP_ACTIVITY   0x1
index 97a95cf7e4f90d4d3408d54543818c8d1c4d6b1a..b4cf66796e8a7a96f9fb3a0ad26926eba7bf7875 100644 (file)
@@ -807,6 +807,7 @@ enum {
        IFLA_GTP_FD1,
        IFLA_GTP_PDP_HASHSIZE,
        IFLA_GTP_ROLE,
+       IFLA_GTP_COLLECT_METADATA,
        __IFLA_GTP_MAX,
 };
 #define IFLA_GTP_MAX (__IFLA_GTP_MAX - 1)
index c7f0a5e6adf15996efcaecc951ebb448e9a1acc6..cb32781c0d42e634599457aa42fa560f595b37f0 100644 (file)
@@ -176,6 +176,7 @@ enum {
 #define TUNNEL_VXLAN_OPT       __cpu_to_be16(0x1000)
 #define TUNNEL_NOCACHE         __cpu_to_be16(0x2000)
 #define TUNNEL_ERSPAN_OPT      __cpu_to_be16(0x4000)
+#define TUNNEL_GTPU_OPT                __cpu_to_be16(0x8000)
 
 #define TUNNEL_OPTIONS_PRESENT \
                (TUNNEL_GENEVE_OPT | TUNNEL_VXLAN_OPT | TUNNEL_ERSPAN_OPT)
index 321812307718481b983ccdfd86547bc45dad718f..d31c9c6c17c8257335b0710e08cd59deb5648df5 100644 (file)
@@ -82,6 +82,7 @@ enum {
        MPTCP_PM_CMD_FLUSH_ADDRS,
        MPTCP_PM_CMD_SET_LIMITS,
        MPTCP_PM_CMD_GET_LIMITS,
+       MPTCP_PM_CMD_SET_FLAGS,
 
        __MPTCP_PM_CMD_AFTER_LAST
 };
index ee95f42fb0ecfab10c641c7b4401ea14152ada32..709668e264b068956c08d5340e07792f771df1fc 100644 (file)
@@ -591,6 +591,7 @@ enum {
        TCA_FLOWER_KEY_CT_FLAGS_ESTABLISHED = 1 << 1, /* Part of an existing connection. */
        TCA_FLOWER_KEY_CT_FLAGS_RELATED = 1 << 2, /* Related to an established connection. */
        TCA_FLOWER_KEY_CT_FLAGS_TRACKED = 1 << 3, /* Conntrack has occurred. */
+       TCA_FLOWER_KEY_CT_FLAGS_INVALID = 1 << 4, /* Conntrack is invalid. */
 };
 
 enum {
index 9e7c2c6078456bdc8dad240e844cfd42144bb024..79a699f106b14ef36afe459b955ab136326e36a0 100644 (file)
@@ -434,6 +434,7 @@ enum {
        TCA_HTB_RATE64,
        TCA_HTB_CEIL64,
        TCA_HTB_PAD,
+       TCA_HTB_OFFLOAD,
        __TCA_HTB_MAX,
 };
 
index 6f1a38fc3172a4bea10d7519022a24f9f24963e9..0614c6080a19fcba4702c23206103dd3923bf4f6 100644 (file)
@@ -51,7 +51,7 @@ struct tcphdr {
                fin:1;
 #else
 #error "Adjust your <asm/byteorder.h> defines"
-#endif 
+#endif
        __be16  window;
        __sum16 check;
        __be16  urg_ptr;
@@ -62,14 +62,14 @@ struct tcphdr {
  *  (union is compatible to any of its members)
  *  This means this part of the code is -fstrict-aliasing safe now.
  */
-union tcp_word_hdr { 
+union tcp_word_hdr {
        struct tcphdr hdr;
-       __be32            words[5];
-}; 
+       __be32        words[5];
+};
 
-#define tcp_flag_word(tp) ( ((union tcp_word_hdr *)(tp))->words [3]) 
+#define tcp_flag_word(tp) (((union tcp_word_hdr *)(tp))->words[3])
 
-enum { 
+enum {
        TCP_FLAG_CWR = __constant_cpu_to_be32(0x00800000),
        TCP_FLAG_ECE = __constant_cpu_to_be32(0x00400000),
        TCP_FLAG_URG = __constant_cpu_to_be32(0x00200000),
@@ -80,7 +80,7 @@ enum {
        TCP_FLAG_FIN = __constant_cpu_to_be32(0x00010000),
        TCP_RESERVED_BITS = __constant_cpu_to_be32(0x0F000000),
        TCP_DATA_OFFSET = __constant_cpu_to_be32(0xF0000000)
-}; 
+};
 
 /*
  * TCP general constants
@@ -103,8 +103,8 @@ enum {
 #define TCP_QUICKACK           12      /* Block/reenable quick acks */
 #define TCP_CONGESTION         13      /* Congestion control algorithm */
 #define TCP_MD5SIG             14      /* TCP MD5 Signature (RFC2385) */
-#define TCP_THIN_LINEAR_TIMEOUTS 16      /* Use linear timeouts for thin streams*/
-#define TCP_THIN_DUPACK         17      /* Fast retrans. after 1 dupack */
+#define TCP_THIN_LINEAR_TIMEOUTS 16    /* Use linear timeouts for thin streams*/
+#define TCP_THIN_DUPACK                17      /* Fast retrans. after 1 dupack */
 #define TCP_USER_TIMEOUT       18      /* How long for loss retry before timeout */
 #define TCP_REPAIR             19      /* TCP sock is under repair right now */
 #define TCP_REPAIR_QUEUE       20
@@ -314,6 +314,7 @@ enum {
        TCP_NLA_TIMEOUT_REHASH, /* Timeout-triggered rehash attempts */
        TCP_NLA_BYTES_NOTSENT,  /* Bytes in write queue not yet sent */
        TCP_NLA_EDT,            /* Earliest departure time (CLOCK_MONOTONIC) */
+       TCP_NLA_TTL,            /* TTL or hop limit of a packet received */
 };
 
 /* for TCP_MD5SIG socket option */
@@ -353,5 +354,9 @@ struct tcp_zerocopy_receive {
        __u64 copybuf_address;  /* in: copybuf address (small reads) */
        __s32 copybuf_len; /* in/out: copybuf bytes avail/used or error */
        __u32 flags; /* in: flags */
+       __u64 msg_control; /* ancillary data */
+       __u64 msg_controllen;
+       __u32 msg_flags;
+       /* __u32 hole;  Next we must add >1 u32 otherwise length checks fail. */
 };
 #endif /* _LINUX_TCP_H */