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
151#define ETH_P_MAP 0x00F9 /* Qualcomm multiplexing and151#define ETH_P_MAP 0x00F9 /* Qualcomm multiplexing and
152 * aggregation protocol152 * aggregation protocol
153 */153 */
154#define ETH_P_MCTP 0x00FA /* Management component transport
155 * protocol packets
156 */
154 157
155/*158/*
156 * This is an Ethernet frame header.159 * 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
1260 __u32 mask;1260 __u32 mask;
1261};1261};
1262 1262
1263/* MCTP section */
1264
1265enum {
1266 IFLA_MCTP_UNSPEC,
1267 IFLA_MCTP_NET,
1268 __IFLA_MCTP_MAX,
1269};
1270
1271#define IFLA_MCTP_MAX (__IFLA_MCTP_MAX - 1)
1272
1263#endif /* _UAPI_LINUX_IF_LINK_H */1273#endif /* _UAPI_LINUX_IF_LINK_H */
include/uapi/linux/mctp.h+1−0
@@ -26,6 +26,7 @@ struct sockaddr_mctp { · 25 unmodified lines
26};26};
27 27
28#define MCTP_NET_ANY 0x028#define MCTP_NET_ANY 0x0
29#define MCTP_NET_DEFAULT 0x0
29 30
30#define MCTP_ADDR_NULL 0x0031#define MCTP_ADDR_NULL 0x00
31#define MCTP_ADDR_ANY 0xff32#define MCTP_ADDR_ANY 0xff