History

mctp: Add device handling and netlink interface

This change adds the infrastructure for managing MCTP netdevices; we add a pointer to the AF_MCTP-specific data to struct netdevice, and hook up the rtnetlink operations for adding and removing addresses. Includes changes from Matt Johnston <matt@codeconstruct.com.au>.

Jeremy Kerr committed 5 years ago

Commit 583be981 parent 4b2e69310 files · +491 −1Browse files

Showing the changes to include/uapi (3 of 10 files). Show all

Unified · Split

3 files
  1. include/uapi/linux/if_ether.h +3 −0
  2. include/uapi/linux/if_link.h +10 −0
  3. include/uapi/linux/mctp.h +1 −0
include/uapi/linux/if_ether.h+3−0
@@ -151,6 +151,9 @@ · 150 unmodified lines
151151 #define ETH_P_MAP 0x00F9 /* Qualcomm multiplexing and
152152 * aggregation protocol
153153 */
154+#define ETH_P_MCTP 0x00FA /* Management component transport
155+ * protocol packets
156+ */
154157
155158 /*
156159 * This is an Ethernet frame header.
include/uapi/linux/if_link.h+10−0
@@ -1260,4 +1260,14 @@ struct ifla_rmnet_flags { · 1259 unmodified lines
12601260 __u32 mask;
12611261 };
12621262
1263+/* MCTP section */
1264+
1265+enum {
1266+ IFLA_MCTP_UNSPEC,
1267+ IFLA_MCTP_NET,
1268+ __IFLA_MCTP_MAX,
1269+};
1270+
1271+#define IFLA_MCTP_MAX (__IFLA_MCTP_MAX - 1)
1272+
12631273 #endif /* _UAPI_LINUX_IF_LINK_H */
include/uapi/linux/mctp.h+1−0
@@ -26,6 +26,7 @@ struct sockaddr_mctp { · 25 unmodified lines
2626 };
2727
2828 #define MCTP_NET_ANY 0x0
29+#define MCTP_NET_DEFAULT 0x0
2930
3031 #define MCTP_ADDR_NULL 0x00
3132 #define MCTP_ADDR_ANY 0xff