RXE was wrongly using an internal kernel enum as part of its uAPI, split this out into a dedicated uAPI enum just for RXE. It only uses the IPv4 and IPv6 values. This was exposed by changing the internal kernel enum definition which broke RXE.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -39,6 +39,11 @@ · 38 unmodified lines | |||
| 39 | #include <linux/in.h> | 39 | #include <linux/in.h> |
| 40 | #include <linux/in6.h> | 40 | #include <linux/in6.h> |
| 41 | 41 | ||
| 42 | enum { | ||
| 43 | RXE_NETWORK_TYPE_IPV4 = 1, | ||
| 44 | RXE_NETWORK_TYPE_IPV6 = 2, | ||
| 45 | }; | ||
| 46 | |||
| 42 | union rxe_gid { | 47 | union rxe_gid { |
| 43 | __u8 raw[16]; | 48 | __u8 raw[16]; |
| 44 | struct { | 49 | struct { |
| @@ -57,6 +62,7 @@ struct rxe_global_route { · 12 unmodified lines | |||
| 57 | 62 | ||
| 58 | struct rxe_av { | 63 | struct rxe_av { |
| 59 | __u8 port_num; | 64 | __u8 port_num; |
| 65 | /* From RXE_NETWORK_TYPE_* */ | ||
| 60 | __u8 network_type; | 66 | __u8 network_type; |
| 61 | __u8 dmac[6]; | 67 | __u8 dmac[6]; |
| 62 | struct rxe_global_route grh; | 68 | struct rxe_global_route grh; |