Userspace also needs to know if the port requires GRHs to properly form the AVs it creates.
Showing the changes to include/uapi (2 of 3 files). Show all
Unified · Split
| @@ -78,6 +78,10 @@ enum ib_uverbs_query_port_cap_flags { · 77 unmodified lines | ||
| 78 | 78 | IB_UVERBS_PCF_IP_BASED_GIDS = 1 << 26, |
| 79 | 79 | }; |
| 80 | 80 | |
| 81 | +enum ib_uverbs_query_port_flags { | |
| 82 | + IB_UVERBS_QPF_GRH_REQUIRED = 1 << 0, | |
| 83 | +}; | |
| 84 | + | |
| 81 | 85 | enum ib_uverbs_flow_action_esp_keymat { |
| 82 | 86 | IB_UVERBS_FLOW_ACTION_ESP_KEYMAT_AES_GCM, |
| 83 | 87 | }; |
| @@ -299,7 +299,8 @@ struct ib_uverbs_query_port_resp { · 298 unmodified lines | ||
| 299 | 299 | __u8 active_speed; |
| 300 | 300 | __u8 phys_state; |
| 301 | 301 | __u8 link_layer; |
| 302 | − __u8 reserved[2]; | |
| 302 | + __u8 flags; /* see ib_uverbs_query_port_flags */ | |
| 303 | + __u8 reserved; | |
| 303 | 304 | }; |
| 304 | 305 | |
| 305 | 306 | struct ib_uverbs_alloc_pd { |