]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Update kernel headers
authorDavid Ahern <dsahern@kernel.org>
Thu, 22 Apr 2021 05:09:39 +0000 (05:09 +0000)
committerDavid Ahern <dsahern@kernel.org>
Thu, 22 Apr 2021 05:09:39 +0000 (05:09 +0000)
Update kernel headers to commit:
    5d869070569a ("net: phy: marvell: don't use empty switch default case")

Signed-off-by: David Ahern <dsahern@kernel.org>
include/uapi/linux/bpf.h
include/uapi/linux/can.h
include/uapi/linux/icmpv6.h
include/uapi/linux/mptcp.h
include/uapi/linux/rtnetlink.h

index 0664ebc8c71043c6193451e3ff4102264ce97233..793655ed429eda6ebcd99a475bd7f5b1f16b741a 100644 (file)
@@ -957,6 +957,7 @@ enum bpf_attach_type {
        BPF_XDP_CPUMAP,
        BPF_SK_LOOKUP,
        BPF_XDP,
+       BPF_SK_SKB_VERDICT,
        __MAX_BPF_ATTACH_TYPE
 };
 
@@ -1117,6 +1118,10 @@ enum bpf_link_type {
  * offset to another bpf function
  */
 #define BPF_PSEUDO_CALL                1
+/* when bpf_call->src_reg == BPF_PSEUDO_KFUNC_CALL,
+ * bpf_call->imm == btf_id of a BTF_KIND_FUNC in the running kernel
+ */
+#define BPF_PSEUDO_KFUNC_CALL  2
 
 /* flags for BPF_MAP_UPDATE_ELEM command */
 enum {
@@ -4573,7 +4578,7 @@ union bpf_attr {
  *
  * long bpf_check_mtu(void *ctx, u32 ifindex, u32 *mtu_len, s32 len_diff, u64 flags)
  *     Description
- *             Check ctx packet size against exceeding MTU of net device (based
+ *             Check packet size against exceeding MTU of net device (based
  *             on *ifindex*).  This helper will likely be used in combination
  *             with helpers that adjust/change the packet size.
  *
@@ -4590,6 +4595,14 @@ union bpf_attr {
  *             against the current net device.  This is practical if this isn't
  *             used prior to redirect.
  *
+ *             On input *mtu_len* must be a valid pointer, else verifier will
+ *             reject BPF program.  If the value *mtu_len* is initialized to
+ *             zero then the ctx packet size is use.  When value *mtu_len* is
+ *             provided as input this specify the L3 length that the MTU check
+ *             is done against. Remember XDP and TC length operate at L2, but
+ *             this value is L3 as this correlate to MTU and IP-header tot_len
+ *             values which are L3 (similar behavior as bpf_fib_lookup).
+ *
  *             The Linux kernel route table can configure MTUs on a more
  *             specific per route level, which is not provided by this helper.
  *             For route level MTU checks use the **bpf_fib_lookup**\ ()
@@ -4614,11 +4627,9 @@ union bpf_attr {
  *
  *             On return *mtu_len* pointer contains the MTU value of the net
  *             device.  Remember the net device configured MTU is the L3 size,
- *             which is returned here and XDP and TX length operate at L2.
+ *             which is returned here and XDP and TC length operate at L2.
  *             Helper take this into account for you, but remember when using
- *             MTU value in your BPF-code.  On input *mtu_len* must be a valid
- *             pointer and be initialized (to zero), else verifier will reject
- *             BPF program.
+ *             MTU value in your BPF-code.
  *
  *     Return
  *             * 0 on success, and populate MTU value in *mtu_len* pointer.
index d7d56e4085e257fad565403f8af1ceb8d4ca7c97..5e1d3838c5fea1f0c054923d7da1f92c38dcdd60 100644 (file)
@@ -113,7 +113,7 @@ struct can_frame {
                 */
                __u8 len;
                __u8 can_dlc; /* deprecated */
-       };
+       } __attribute__((packed)); /* disable padding added in some ABIs */
        __u8 __pad; /* padding */
        __u8 __res0; /* reserved / padding */
        __u8 len8_dlc; /* optional DLC for 8 byte payload length (9 .. 15) */
index fcea1c5050549aeb955d3979b8cb24cd14e506c9..fa6388c09793f94f642b1ec6b3f394d129f3ba25 100644 (file)
@@ -140,6 +140,9 @@ struct icmp6hdr {
 #define ICMPV6_UNK_OPTION              2
 #define ICMPV6_HDR_INCOMP              3
 
+/* Codes for EXT_ECHO (PROBE) */
+#define ICMPV6_EXT_ECHO_REQUEST                160
+#define ICMPV6_EXT_ECHO_REPLY          161
 /*
  *     constants for (set|get)sockopt
  */
index c3e40165ad4b0fa34dc807eac37132d265a9d5d2..1227b04d3b2bf62412627f61abfa5288e4a2466d 100644 (file)
@@ -174,10 +174,21 @@ enum mptcp_event_attr {
        MPTCP_ATTR_FLAGS,       /* u16 */
        MPTCP_ATTR_TIMEOUT,     /* u32 */
        MPTCP_ATTR_IF_IDX,      /* s32 */
+       MPTCP_ATTR_RESET_REASON,/* u32 */
+       MPTCP_ATTR_RESET_FLAGS, /* u32 */
 
        __MPTCP_ATTR_AFTER_LAST
 };
 
 #define MPTCP_ATTR_MAX (__MPTCP_ATTR_AFTER_LAST - 1)
 
+/* MPTCP Reset reason codes, rfc8684 */
+#define MPTCP_RST_EUNSPEC      0
+#define MPTCP_RST_EMPTCP       1
+#define MPTCP_RST_ERESOURCE    2
+#define MPTCP_RST_EPROHIBIT    3
+#define MPTCP_RST_EWQ2BIG      4
+#define MPTCP_RST_EBADPERF     5
+#define MPTCP_RST_EMIDDLEBOX   6
+
 #endif /* _MPTCP_H */
index f62cccc176511f44acc336a8e57addd2fb4ab65c..e01efa281bdc0a686a4946a4f4f36166f2f28baa 100644 (file)
@@ -290,6 +290,7 @@ enum {
 #define RTPROT_MROUTED         17      /* Multicast daemon */
 #define RTPROT_KEEPALIVED      18      /* Keepalived daemon */
 #define RTPROT_BABEL           42      /* Babel daemon */
+#define RTPROT_OPENR           99      /* Open Routing (Open/R) Routes */
 #define RTPROT_BGP             186     /* BGP Routes */
 #define RTPROT_ISIS            187     /* ISIS Routes */
 #define RTPROT_OSPF            188     /* OSPF Routes */