History

RDMA/rxe: Move the definitions for rxe_av.network_type to uAPI

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.

Jason Gunthorpe committed 6 years ago

Commit e0d696d1 parent e0477b32 files · +10 −4Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/rdma/rdma_user_rxe.h+6−0
@@ -39,6 +39,11 @@ · 38 unmodified lines
3939 #include <linux/in.h>
4040 #include <linux/in6.h>
4141
42+enum {
43+ RXE_NETWORK_TYPE_IPV4 = 1,
44+ RXE_NETWORK_TYPE_IPV6 = 2,
45+};
46+
4247 union rxe_gid {
4348 __u8 raw[16];
4449 struct {
@@ -57,6 +62,7 @@ struct rxe_global_route { · 12 unmodified lines
5762
5863 struct rxe_av {
5964 __u8 port_num;
65+ /* From RXE_NETWORK_TYPE_* */
6066 __u8 network_type;
6167 __u8 dmac[6];
6268 struct rxe_global_route grh;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t