Blame SOURCES/0014-update-UAPI-header-copies.patch

83ef35
From 708dee5555dc4849bc03038048b9b9d08404f18e Mon Sep 17 00:00:00 2001
83ef35
From: Jakub Kicinski <kuba@kernel.org>
83ef35
Date: Thu, 10 Sep 2020 12:09:14 -0700
83ef35
Subject: [PATCH 14/17] update UAPI header copies
83ef35
83ef35
Update to kernel commit 4f6a5caf187f.
83ef35
83ef35
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
83ef35
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
83ef35
(cherry picked from commit 1be081a983c94ab2eaa81686fbb9bcd707a2bac6)
83ef35
---
83ef35
 uapi/linux/ethtool.h         |  17 +++
83ef35
 uapi/linux/ethtool_netlink.h |  55 +++++++++
83ef35
 uapi/linux/if_link.h         | 227 ++++++++++++++++++++++++++++++++---
83ef35
 uapi/linux/rtnetlink.h       |  46 +++----
83ef35
 4 files changed, 305 insertions(+), 40 deletions(-)
83ef35
83ef35
diff --git a/uapi/linux/ethtool.h b/uapi/linux/ethtool.h
83ef35
index 6074caa2f220..355e718a99fd 100644
83ef35
--- a/uapi/linux/ethtool.h
83ef35
+++ b/uapi/linux/ethtool.h
83ef35
@@ -597,6 +597,7 @@ struct ethtool_pauseparam {
83ef35
  * @ETH_SS_SOF_TIMESTAMPING: SOF_TIMESTAMPING_* flags
83ef35
  * @ETH_SS_TS_TX_TYPES: timestamping Tx types
83ef35
  * @ETH_SS_TS_RX_FILTERS: timestamping Rx filters
83ef35
+ * @ETH_SS_UDP_TUNNEL_TYPES: UDP tunnel types
83ef35
  */
83ef35
 enum ethtool_stringset {
83ef35
 	ETH_SS_TEST		= 0,
83ef35
@@ -614,6 +615,7 @@ enum ethtool_stringset {
83ef35
 	ETH_SS_SOF_TIMESTAMPING,
83ef35
 	ETH_SS_TS_TX_TYPES,
83ef35
 	ETH_SS_TS_RX_FILTERS,
83ef35
+	ETH_SS_UDP_TUNNEL_TYPES,
83ef35
 
83ef35
 	/* add new constants above here */
83ef35
 	ETH_SS_COUNT
83ef35
@@ -1528,6 +1530,21 @@ enum ethtool_link_mode_bit_indices {
83ef35
 	ETHTOOL_LINK_MODE_400000baseDR8_Full_BIT	 = 72,
83ef35
 	ETHTOOL_LINK_MODE_400000baseCR8_Full_BIT	 = 73,
83ef35
 	ETHTOOL_LINK_MODE_FEC_LLRS_BIT			 = 74,
83ef35
+	ETHTOOL_LINK_MODE_100000baseKR_Full_BIT		 = 75,
83ef35
+	ETHTOOL_LINK_MODE_100000baseSR_Full_BIT		 = 76,
83ef35
+	ETHTOOL_LINK_MODE_100000baseLR_ER_FR_Full_BIT	 = 77,
83ef35
+	ETHTOOL_LINK_MODE_100000baseCR_Full_BIT		 = 78,
83ef35
+	ETHTOOL_LINK_MODE_100000baseDR_Full_BIT		 = 79,
83ef35
+	ETHTOOL_LINK_MODE_200000baseKR2_Full_BIT	 = 80,
83ef35
+	ETHTOOL_LINK_MODE_200000baseSR2_Full_BIT	 = 81,
83ef35
+	ETHTOOL_LINK_MODE_200000baseLR2_ER2_FR2_Full_BIT = 82,
83ef35
+	ETHTOOL_LINK_MODE_200000baseDR2_Full_BIT	 = 83,
83ef35
+	ETHTOOL_LINK_MODE_200000baseCR2_Full_BIT	 = 84,
83ef35
+	ETHTOOL_LINK_MODE_400000baseKR4_Full_BIT	 = 85,
83ef35
+	ETHTOOL_LINK_MODE_400000baseSR4_Full_BIT	 = 86,
83ef35
+	ETHTOOL_LINK_MODE_400000baseLR4_ER4_FR4_Full_BIT = 87,
83ef35
+	ETHTOOL_LINK_MODE_400000baseDR4_Full_BIT	 = 88,
83ef35
+	ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT	 = 89,
83ef35
 	/* must be last entry */
83ef35
 	__ETHTOOL_LINK_MODE_MASK_NBITS
83ef35
 };
83ef35
diff --git a/uapi/linux/ethtool_netlink.h b/uapi/linux/ethtool_netlink.h
83ef35
index b18e7bc539f2..c1b4d67d35d1 100644
83ef35
--- a/uapi/linux/ethtool_netlink.h
83ef35
+++ b/uapi/linux/ethtool_netlink.h
83ef35
@@ -41,6 +41,7 @@ enum {
83ef35
 	ETHTOOL_MSG_TSINFO_GET,
83ef35
 	ETHTOOL_MSG_CABLE_TEST_ACT,
83ef35
 	ETHTOOL_MSG_CABLE_TEST_TDR_ACT,
83ef35
+	ETHTOOL_MSG_TUNNEL_INFO_GET,
83ef35
 
83ef35
 	/* add new constants above here */
83ef35
 	__ETHTOOL_MSG_USER_CNT,
83ef35
@@ -554,6 +555,60 @@ enum {
83ef35
 	ETHTOOL_A_CABLE_TEST_TDR_NTF_MAX = __ETHTOOL_A_CABLE_TEST_TDR_NTF_CNT - 1
83ef35
 };
83ef35
 
83ef35
+/* TUNNEL INFO */
83ef35
+
83ef35
+enum {
83ef35
+	ETHTOOL_UDP_TUNNEL_TYPE_VXLAN,
83ef35
+	ETHTOOL_UDP_TUNNEL_TYPE_GENEVE,
83ef35
+	ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE,
83ef35
+
83ef35
+	__ETHTOOL_UDP_TUNNEL_TYPE_CNT
83ef35
+};
83ef35
+
83ef35
+enum {
83ef35
+	ETHTOOL_A_TUNNEL_UDP_ENTRY_UNSPEC,
83ef35
+
83ef35
+	ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT,		/* be16 */
83ef35
+	ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE,		/* u32 */
83ef35
+
83ef35
+	/* add new constants above here */
83ef35
+	__ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT,
83ef35
+	ETHTOOL_A_TUNNEL_UDP_ENTRY_MAX = (__ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT - 1)
83ef35
+};
83ef35
+
83ef35
+enum {
83ef35
+	ETHTOOL_A_TUNNEL_UDP_TABLE_UNSPEC,
83ef35
+
83ef35
+	ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE,		/* u32 */
83ef35
+	ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES,		/* bitset */
83ef35
+	ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY,		/* nest - _UDP_ENTRY_* */
83ef35
+
83ef35
+	/* add new constants above here */
83ef35
+	__ETHTOOL_A_TUNNEL_UDP_TABLE_CNT,
83ef35
+	ETHTOOL_A_TUNNEL_UDP_TABLE_MAX = (__ETHTOOL_A_TUNNEL_UDP_TABLE_CNT - 1)
83ef35
+};
83ef35
+
83ef35
+enum {
83ef35
+	ETHTOOL_A_TUNNEL_UDP_UNSPEC,
83ef35
+
83ef35
+	ETHTOOL_A_TUNNEL_UDP_TABLE,			/* nest - _UDP_TABLE_* */
83ef35
+
83ef35
+	/* add new constants above here */
83ef35
+	__ETHTOOL_A_TUNNEL_UDP_CNT,
83ef35
+	ETHTOOL_A_TUNNEL_UDP_MAX = (__ETHTOOL_A_TUNNEL_UDP_CNT - 1)
83ef35
+};
83ef35
+
83ef35
+enum {
83ef35
+	ETHTOOL_A_TUNNEL_INFO_UNSPEC,
83ef35
+	ETHTOOL_A_TUNNEL_INFO_HEADER,			/* nest - _A_HEADER_* */
83ef35
+
83ef35
+	ETHTOOL_A_TUNNEL_INFO_UDP_PORTS,		/* nest - _UDP_TABLE */
83ef35
+
83ef35
+	/* add new constants above here */
83ef35
+	__ETHTOOL_A_TUNNEL_INFO_CNT,
83ef35
+	ETHTOOL_A_TUNNEL_INFO_MAX = (__ETHTOOL_A_TUNNEL_INFO_CNT - 1)
83ef35
+};
83ef35
+
83ef35
 /* generic netlink info */
83ef35
 #define ETHTOOL_GENL_NAME "ethtool"
83ef35
 #define ETHTOOL_GENL_VERSION 1
83ef35
diff --git a/uapi/linux/if_link.h b/uapi/linux/if_link.h
83ef35
index a8901a39a345..9d96890f9742 100644
83ef35
--- a/uapi/linux/if_link.h
83ef35
+++ b/uapi/linux/if_link.h
83ef35
@@ -40,26 +40,197 @@ struct rtnl_link_stats {
83ef35
 	__u32	rx_nohandler;		/* dropped, no handler found	*/
83ef35
 };
83ef35
 
83ef35
-/* The main device statistics structure */
83ef35
+/**
83ef35
+ * struct rtnl_link_stats64 - The main device statistics structure.
83ef35
+ *
83ef35
+ * @rx_packets: Number of good packets received by the interface.
83ef35
+ *   For hardware interfaces counts all good packets received from the device
83ef35
+ *   by the host, including packets which host had to drop at various stages
83ef35
+ *   of processing (even in the driver).
83ef35
+ *
83ef35
+ * @tx_packets: Number of packets successfully transmitted.
83ef35
+ *   For hardware interfaces counts packets which host was able to successfully
83ef35
+ *   hand over to the device, which does not necessarily mean that packets
83ef35
+ *   had been successfully transmitted out of the device, only that device
83ef35
+ *   acknowledged it copied them out of host memory.
83ef35
+ *
83ef35
+ * @rx_bytes: Number of good received bytes, corresponding to @rx_packets.
83ef35
+ *
83ef35
+ *   For IEEE 802.3 devices should count the length of Ethernet Frames
83ef35
+ *   excluding the FCS.
83ef35
+ *
83ef35
+ * @tx_bytes: Number of good transmitted bytes, corresponding to @tx_packets.
83ef35
+ *
83ef35
+ *   For IEEE 802.3 devices should count the length of Ethernet Frames
83ef35
+ *   excluding the FCS.
83ef35
+ *
83ef35
+ * @rx_errors: Total number of bad packets received on this network device.
83ef35
+ *   This counter must include events counted by @rx_length_errors,
83ef35
+ *   @rx_crc_errors, @rx_frame_errors and other errors not otherwise
83ef35
+ *   counted.
83ef35
+ *
83ef35
+ * @tx_errors: Total number of transmit problems.
83ef35
+ *   This counter must include events counter by @tx_aborted_errors,
83ef35
+ *   @tx_carrier_errors, @tx_fifo_errors, @tx_heartbeat_errors,
83ef35
+ *   @tx_window_errors and other errors not otherwise counted.
83ef35
+ *
83ef35
+ * @rx_dropped: Number of packets received but not processed,
83ef35
+ *   e.g. due to lack of resources or unsupported protocol.
83ef35
+ *   For hardware interfaces this counter should not include packets
83ef35
+ *   dropped by the device which are counted separately in
83ef35
+ *   @rx_missed_errors (since procfs folds those two counters together).
83ef35
+ *
83ef35
+ * @tx_dropped: Number of packets dropped on their way to transmission,
83ef35
+ *   e.g. due to lack of resources.
83ef35
+ *
83ef35
+ * @multicast: Multicast packets received.
83ef35
+ *   For hardware interfaces this statistic is commonly calculated
83ef35
+ *   at the device level (unlike @rx_packets) and therefore may include
83ef35
+ *   packets which did not reach the host.
83ef35
+ *
83ef35
+ *   For IEEE 802.3 devices this counter may be equivalent to:
83ef35
+ *
83ef35
+ *    - 30.3.1.1.21 aMulticastFramesReceivedOK
83ef35
+ *
83ef35
+ * @collisions: Number of collisions during packet transmissions.
83ef35
+ *
83ef35
+ * @rx_length_errors: Number of packets dropped due to invalid length.
83ef35
+ *   Part of aggregate "frame" errors in `/proc/net/dev`.
83ef35
+ *
83ef35
+ *   For IEEE 802.3 devices this counter should be equivalent to a sum
83ef35
+ *   of the following attributes:
83ef35
+ *
83ef35
+ *    - 30.3.1.1.23 aInRangeLengthErrors
83ef35
+ *    - 30.3.1.1.24 aOutOfRangeLengthField
83ef35
+ *    - 30.3.1.1.25 aFrameTooLongErrors
83ef35
+ *
83ef35
+ * @rx_over_errors: Receiver FIFO overflow event counter.
83ef35
+ *
83ef35
+ *   Historically the count of overflow events. Such events may be
83ef35
+ *   reported in the receive descriptors or via interrupts, and may
83ef35
+ *   not correspond one-to-one with dropped packets.
83ef35
+ *
83ef35
+ *   The recommended interpretation for high speed interfaces is -
83ef35
+ *   number of packets dropped because they did not fit into buffers
83ef35
+ *   provided by the host, e.g. packets larger than MTU or next buffer
83ef35
+ *   in the ring was not available for a scatter transfer.
83ef35
+ *
83ef35
+ *   Part of aggregate "frame" errors in `/proc/net/dev`.
83ef35
+ *
83ef35
+ *   This statistics was historically used interchangeably with
83ef35
+ *   @rx_fifo_errors.
83ef35
+ *
83ef35
+ *   This statistic corresponds to hardware events and is not commonly used
83ef35
+ *   on software devices.
83ef35
+ *
83ef35
+ * @rx_crc_errors: Number of packets received with a CRC error.
83ef35
+ *   Part of aggregate "frame" errors in `/proc/net/dev`.
83ef35
+ *
83ef35
+ *   For IEEE 802.3 devices this counter must be equivalent to:
83ef35
+ *
83ef35
+ *    - 30.3.1.1.6 aFrameCheckSequenceErrors
83ef35
+ *
83ef35
+ * @rx_frame_errors: Receiver frame alignment errors.
83ef35
+ *   Part of aggregate "frame" errors in `/proc/net/dev`.
83ef35
+ *
83ef35
+ *   For IEEE 802.3 devices this counter should be equivalent to:
83ef35
+ *
83ef35
+ *    - 30.3.1.1.7 aAlignmentErrors
83ef35
+ *
83ef35
+ * @rx_fifo_errors: Receiver FIFO error counter.
83ef35
+ *
83ef35
+ *   Historically the count of overflow events. Those events may be
83ef35
+ *   reported in the receive descriptors or via interrupts, and may
83ef35
+ *   not correspond one-to-one with dropped packets.
83ef35
+ *
83ef35
+ *   This statistics was used interchangeably with @rx_over_errors.
83ef35
+ *   Not recommended for use in drivers for high speed interfaces.
83ef35
+ *
83ef35
+ *   This statistic is used on software devices, e.g. to count software
83ef35
+ *   packet queue overflow (can) or sequencing errors (GRE).
83ef35
+ *
83ef35
+ * @rx_missed_errors: Count of packets missed by the host.
83ef35
+ *   Folded into the "drop" counter in `/proc/net/dev`.
83ef35
+ *
83ef35
+ *   Counts number of packets dropped by the device due to lack
83ef35
+ *   of buffer space. This usually indicates that the host interface
83ef35
+ *   is slower than the network interface, or host is not keeping up
83ef35
+ *   with the receive packet rate.
83ef35
+ *
83ef35
+ *   This statistic corresponds to hardware events and is not used
83ef35
+ *   on software devices.
83ef35
+ *
83ef35
+ * @tx_aborted_errors:
83ef35
+ *   Part of aggregate "carrier" errors in `/proc/net/dev`.
83ef35
+ *   For IEEE 802.3 devices capable of half-duplex operation this counter
83ef35
+ *   must be equivalent to:
83ef35
+ *
83ef35
+ *    - 30.3.1.1.11 aFramesAbortedDueToXSColls
83ef35
+ *
83ef35
+ *   High speed interfaces may use this counter as a general device
83ef35
+ *   discard counter.
83ef35
+ *
83ef35
+ * @tx_carrier_errors: Number of frame transmission errors due to loss
83ef35
+ *   of carrier during transmission.
83ef35
+ *   Part of aggregate "carrier" errors in `/proc/net/dev`.
83ef35
+ *
83ef35
+ *   For IEEE 802.3 devices this counter must be equivalent to:
83ef35
+ *
83ef35
+ *    - 30.3.1.1.13 aCarrierSenseErrors
83ef35
+ *
83ef35
+ * @tx_fifo_errors: Number of frame transmission errors due to device
83ef35
+ *   FIFO underrun / underflow. This condition occurs when the device
83ef35
+ *   begins transmission of a frame but is unable to deliver the
83ef35
+ *   entire frame to the transmitter in time for transmission.
83ef35
+ *   Part of aggregate "carrier" errors in `/proc/net/dev`.
83ef35
+ *
83ef35
+ * @tx_heartbeat_errors: Number of Heartbeat / SQE Test errors for
83ef35
+ *   old half-duplex Ethernet.
83ef35
+ *   Part of aggregate "carrier" errors in `/proc/net/dev`.
83ef35
+ *
83ef35
+ *   For IEEE 802.3 devices possibly equivalent to:
83ef35
+ *
83ef35
+ *    - 30.3.2.1.4 aSQETestErrors
83ef35
+ *
83ef35
+ * @tx_window_errors: Number of frame transmission errors due
83ef35
+ *   to late collisions (for Ethernet - after the first 64B of transmission).
83ef35
+ *   Part of aggregate "carrier" errors in `/proc/net/dev`.
83ef35
+ *
83ef35
+ *   For IEEE 802.3 devices this counter must be equivalent to:
83ef35
+ *
83ef35
+ *    - 30.3.1.1.10 aLateCollisions
83ef35
+ *
83ef35
+ * @rx_compressed: Number of correctly received compressed packets.
83ef35
+ *   This counters is only meaningful for interfaces which support
83ef35
+ *   packet compression (e.g. CSLIP, PPP).
83ef35
+ *
83ef35
+ * @tx_compressed: Number of transmitted compressed packets.
83ef35
+ *   This counters is only meaningful for interfaces which support
83ef35
+ *   packet compression (e.g. CSLIP, PPP).
83ef35
+ *
83ef35
+ * @rx_nohandler: Number of packets received on the interface
83ef35
+ *   but dropped by the networking stack because the device is
83ef35
+ *   not designated to receive packets (e.g. backup link in a bond).
83ef35
+ */
83ef35
 struct rtnl_link_stats64 {
83ef35
-	__u64	rx_packets;		/* total packets received	*/
83ef35
-	__u64	tx_packets;		/* total packets transmitted	*/
83ef35
-	__u64	rx_bytes;		/* total bytes received 	*/
83ef35
-	__u64	tx_bytes;		/* total bytes transmitted	*/
83ef35
-	__u64	rx_errors;		/* bad packets received		*/
83ef35
-	__u64	tx_errors;		/* packet transmit problems	*/
83ef35
-	__u64	rx_dropped;		/* no space in linux buffers	*/
83ef35
-	__u64	tx_dropped;		/* no space available in linux	*/
83ef35
-	__u64	multicast;		/* multicast packets received	*/
83ef35
+	__u64	rx_packets;
83ef35
+	__u64	tx_packets;
83ef35
+	__u64	rx_bytes;
83ef35
+	__u64	tx_bytes;
83ef35
+	__u64	rx_errors;
83ef35
+	__u64	tx_errors;
83ef35
+	__u64	rx_dropped;
83ef35
+	__u64	tx_dropped;
83ef35
+	__u64	multicast;
83ef35
 	__u64	collisions;
83ef35
 
83ef35
 	/* detailed rx_errors: */
83ef35
 	__u64	rx_length_errors;
83ef35
-	__u64	rx_over_errors;		/* receiver ring buff overflow	*/
83ef35
-	__u64	rx_crc_errors;		/* recved pkt with crc error	*/
83ef35
-	__u64	rx_frame_errors;	/* recv'd frame alignment error */
83ef35
-	__u64	rx_fifo_errors;		/* recv'r fifo overrun		*/
83ef35
-	__u64	rx_missed_errors;	/* receiver missed packet	*/
83ef35
+	__u64	rx_over_errors;
83ef35
+	__u64	rx_crc_errors;
83ef35
+	__u64	rx_frame_errors;
83ef35
+	__u64	rx_fifo_errors;
83ef35
+	__u64	rx_missed_errors;
83ef35
 
83ef35
 	/* detailed tx_errors */
83ef35
 	__u64	tx_aborted_errors;
83ef35
@@ -71,8 +242,7 @@ struct rtnl_link_stats64 {
83ef35
 	/* for cslip etc */
83ef35
 	__u64	rx_compressed;
83ef35
 	__u64	tx_compressed;
83ef35
-
83ef35
-	__u64	rx_nohandler;		/* dropped, no handler found	*/
83ef35
+	__u64	rx_nohandler;
83ef35
 };
83ef35
 
83ef35
 /* The struct should be in sync with struct ifmap */
83ef35
@@ -170,12 +340,22 @@ enum {
83ef35
 	IFLA_PROP_LIST,
83ef35
 	IFLA_ALT_IFNAME, /* Alternative ifname */
83ef35
 	IFLA_PERM_ADDRESS,
83ef35
+	IFLA_PROTO_DOWN_REASON,
83ef35
 	__IFLA_MAX
83ef35
 };
83ef35
 
83ef35
 
83ef35
 #define IFLA_MAX (__IFLA_MAX - 1)
83ef35
 
83ef35
+enum {
83ef35
+	IFLA_PROTO_DOWN_REASON_UNSPEC,
83ef35
+	IFLA_PROTO_DOWN_REASON_MASK,	/* u32, mask for reason bits */
83ef35
+	IFLA_PROTO_DOWN_REASON_VALUE,   /* u32, reason bit value */
83ef35
+
83ef35
+	__IFLA_PROTO_DOWN_REASON_CNT,
83ef35
+	IFLA_PROTO_DOWN_REASON_MAX = __IFLA_PROTO_DOWN_REASON_CNT - 1
83ef35
+};
83ef35
+
83ef35
 /* backwards compatibility for userspace */
83ef35
 #define IFLA_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
83ef35
 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
83ef35
@@ -342,6 +522,7 @@ enum {
83ef35
 	IFLA_BRPORT_ISOLATED,
83ef35
 	IFLA_BRPORT_BACKUP_PORT,
83ef35
 	IFLA_BRPORT_MRP_RING_OPEN,
83ef35
+	IFLA_BRPORT_MRP_IN_OPEN,
83ef35
 	__IFLA_BRPORT_MAX
83ef35
 };
83ef35
 #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)
83ef35
@@ -904,7 +1085,14 @@ enum {
83ef35
 #define IFLA_IPOIB_MAX (__IFLA_IPOIB_MAX - 1)
83ef35
 
83ef35
 
83ef35
-/* HSR section */
83ef35
+/* HSR/PRP section, both uses same interface */
83ef35
+
83ef35
+/* Different redundancy protocols for hsr device */
83ef35
+enum {
83ef35
+	HSR_PROTOCOL_HSR,
83ef35
+	HSR_PROTOCOL_PRP,
83ef35
+	HSR_PROTOCOL_MAX,
83ef35
+};
83ef35
 
83ef35
 enum {
83ef35
 	IFLA_HSR_UNSPEC,
83ef35
@@ -914,6 +1102,9 @@ enum {
83ef35
 	IFLA_HSR_SUPERVISION_ADDR,	/* Supervision frame multicast addr */
83ef35
 	IFLA_HSR_SEQ_NR,
83ef35
 	IFLA_HSR_VERSION,		/* HSR version */
83ef35
+	IFLA_HSR_PROTOCOL,		/* Indicate different protocol than
83ef35
+					 * HSR. For example PRP.
83ef35
+					 */
83ef35
 	__IFLA_HSR_MAX,
83ef35
 };
83ef35
 
83ef35
diff --git a/uapi/linux/rtnetlink.h b/uapi/linux/rtnetlink.h
83ef35
index bcb1ba4d0146..5ad84e663d01 100644
83ef35
--- a/uapi/linux/rtnetlink.h
83ef35
+++ b/uapi/linux/rtnetlink.h
83ef35
@@ -257,12 +257,12 @@ enum {
83ef35
 
83ef35
 /* rtm_protocol */
83ef35
 
83ef35
-#define RTPROT_UNSPEC	0
83ef35
-#define RTPROT_REDIRECT	1	/* Route installed by ICMP redirects;
83ef35
-				   not used by current IPv4 */
83ef35
-#define RTPROT_KERNEL	2	/* Route installed by kernel		*/
83ef35
-#define RTPROT_BOOT	3	/* Route installed during boot		*/
83ef35
-#define RTPROT_STATIC	4	/* Route installed by administrator	*/
83ef35
+#define RTPROT_UNSPEC		0
83ef35
+#define RTPROT_REDIRECT		1	/* Route installed by ICMP redirects;
83ef35
+					   not used by current IPv4 */
83ef35
+#define RTPROT_KERNEL		2	/* Route installed by kernel		*/
83ef35
+#define RTPROT_BOOT		3	/* Route installed during boot		*/
83ef35
+#define RTPROT_STATIC		4	/* Route installed by administrator	*/
83ef35
 
83ef35
 /* Values of protocol >= RTPROT_STATIC are not interpreted by kernel;
83ef35
    they are just passed from user and back as is.
83ef35
@@ -271,22 +271,23 @@ enum {
83ef35
    avoid conflicts.
83ef35
  */
83ef35
 
83ef35
-#define RTPROT_GATED	8	/* Apparently, GateD */
83ef35
-#define RTPROT_RA	9	/* RDISC/ND router advertisements */
83ef35
-#define RTPROT_MRT	10	/* Merit MRT */
83ef35
-#define RTPROT_ZEBRA	11	/* Zebra */
83ef35
-#define RTPROT_BIRD	12	/* BIRD */
83ef35
-#define RTPROT_DNROUTED	13	/* DECnet routing daemon */
83ef35
-#define RTPROT_XORP	14	/* XORP */
83ef35
-#define RTPROT_NTK	15	/* Netsukuku */
83ef35
-#define RTPROT_DHCP	16      /* DHCP client */
83ef35
-#define RTPROT_MROUTED	17      /* Multicast daemon */
83ef35
-#define RTPROT_BABEL	42      /* Babel daemon */
83ef35
-#define RTPROT_BGP	186     /* BGP Routes */
83ef35
-#define RTPROT_ISIS	187     /* ISIS Routes */
83ef35
-#define RTPROT_OSPF	188     /* OSPF Routes */
83ef35
-#define RTPROT_RIP	189     /* RIP Routes */
83ef35
-#define RTPROT_EIGRP	192     /* EIGRP Routes */
83ef35
+#define RTPROT_GATED		8	/* Apparently, GateD */
83ef35
+#define RTPROT_RA		9	/* RDISC/ND router advertisements */
83ef35
+#define RTPROT_MRT		10	/* Merit MRT */
83ef35
+#define RTPROT_ZEBRA		11	/* Zebra */
83ef35
+#define RTPROT_BIRD		12	/* BIRD */
83ef35
+#define RTPROT_DNROUTED		13	/* DECnet routing daemon */
83ef35
+#define RTPROT_XORP		14	/* XORP */
83ef35
+#define RTPROT_NTK		15	/* Netsukuku */
83ef35
+#define RTPROT_DHCP		16	/* DHCP client */
83ef35
+#define RTPROT_MROUTED		17	/* Multicast daemon */
83ef35
+#define RTPROT_KEEPALIVED	18	/* Keepalived daemon */
83ef35
+#define RTPROT_BABEL		42	/* Babel daemon */
83ef35
+#define RTPROT_BGP		186	/* BGP Routes */
83ef35
+#define RTPROT_ISIS		187	/* ISIS Routes */
83ef35
+#define RTPROT_OSPF		188	/* OSPF Routes */
83ef35
+#define RTPROT_RIP		189	/* RIP Routes */
83ef35
+#define RTPROT_EIGRP		192	/* EIGRP Routes */
83ef35
 
83ef35
 /* rtm_scope
83ef35
 
83ef35
@@ -775,6 +776,7 @@ enum {
83ef35
 #define RTEXT_FILTER_BRVLAN	(1 << 1)
83ef35
 #define RTEXT_FILTER_BRVLAN_COMPRESSED	(1 << 2)
83ef35
 #define	RTEXT_FILTER_SKIP_STATS	(1 << 3)
83ef35
+#define RTEXT_FILTER_MRP	(1 << 4)
83ef35
 
83ef35
 /* End of information exported to user level */
83ef35
 
83ef35
-- 
83ef35
2.26.2
83ef35