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>.
Showing the changes to include/uapi (3 of 10 files). Show all
Unified · Split
| @@ -151,6 +151,9 @@ · 150 unmodified lines | ||
| 151 | 151 | #define ETH_P_MAP 0x00F9 /* Qualcomm multiplexing and |
| 152 | 152 | * aggregation protocol |
| 153 | 153 | */ |
| 154 | +#define ETH_P_MCTP 0x00FA /* Management component transport | |
| 155 | + * protocol packets | |
| 156 | + */ | |
| 154 | 157 | |
| 155 | 158 | /* |
| 156 | 159 | * This is an Ethernet frame header. |
| @@ -1260,4 +1260,14 @@ struct ifla_rmnet_flags { · 1259 unmodified lines | ||
| 1260 | 1260 | __u32 mask; |
| 1261 | 1261 | }; |
| 1262 | 1262 | |
| 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 | + | |
| 1263 | 1273 | #endif /* _UAPI_LINUX_IF_LINK_H */ |
| @@ -26,6 +26,7 @@ struct sockaddr_mctp { · 25 unmodified lines | ||
| 26 | 26 | }; |
| 27 | 27 | |
| 28 | 28 | #define MCTP_NET_ANY 0x0 |
| 29 | +#define MCTP_NET_DEFAULT 0x0 | |
| 29 | 30 | |
| 30 | 31 | #define MCTP_ADDR_NULL 0x00 |
| 31 | 32 | #define MCTP_ADDR_ANY 0xff |