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
39#include <linux/in.h>39#include <linux/in.h>
40#include <linux/in6.h>40#include <linux/in6.h>
41 41
42enum {
43 RXE_NETWORK_TYPE_IPV4 = 1,
44 RXE_NETWORK_TYPE_IPV6 = 2,
45};
46
42union rxe_gid {47union 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
58struct rxe_av {63struct 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;

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