Implement a new uverbs ioctl method for memory registration with file descriptor as an extra parameter.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -1,5 +1,6 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2018, Mellanox Technologies inc. All rights reserved. | 2 | * Copyright (c) 2018, Mellanox Technologies inc. All rights reserved. |
| 3 | * Copyright (c) 2020, Intel Corporation. All rights reserved. | ||
| 3 | * | 4 | * |
| 4 | * This software is available to you under a choice of one of two | 5 | * This software is available to you under a choice of one of two |
| 5 | * licenses. You may choose to be licensed under the terms of the GNU | 6 | * licenses. You may choose to be licensed under the terms of the GNU |
| @@ -251,6 +252,7 @@ enum uverbs_methods_mr { · 245 unmodified lines | |||
| 251 | UVERBS_METHOD_MR_DESTROY, | 252 | UVERBS_METHOD_MR_DESTROY, |
| 252 | UVERBS_METHOD_ADVISE_MR, | 253 | UVERBS_METHOD_ADVISE_MR, |
| 253 | UVERBS_METHOD_QUERY_MR, | 254 | UVERBS_METHOD_QUERY_MR, |
| 255 | UVERBS_METHOD_REG_DMABUF_MR, | ||
| 254 | }; | 256 | }; |
| 255 | 257 | ||
| 256 | enum uverbs_attrs_mr_destroy_ids { | 258 | enum uverbs_attrs_mr_destroy_ids { |
| @@ -272,6 +274,18 @@ enum uverbs_attrs_query_mr_cmd_attr_ids { · 15 unmodified lines | |||
| 272 | UVERBS_ATTR_QUERY_MR_RESP_IOVA, | 274 | UVERBS_ATTR_QUERY_MR_RESP_IOVA, |
| 273 | }; | 275 | }; |
| 274 | 276 | ||
| 277 | enum uverbs_attrs_reg_dmabuf_mr_cmd_attr_ids { | ||
| 278 | UVERBS_ATTR_REG_DMABUF_MR_HANDLE, | ||
| 279 | UVERBS_ATTR_REG_DMABUF_MR_PD_HANDLE, | ||
| 280 | UVERBS_ATTR_REG_DMABUF_MR_OFFSET, | ||
| 281 | UVERBS_ATTR_REG_DMABUF_MR_LENGTH, | ||
| 282 | UVERBS_ATTR_REG_DMABUF_MR_IOVA, | ||
| 283 | UVERBS_ATTR_REG_DMABUF_MR_FD, | ||
| 284 | UVERBS_ATTR_REG_DMABUF_MR_ACCESS_FLAGS, | ||
| 285 | UVERBS_ATTR_REG_DMABUF_MR_RESP_LKEY, | ||
| 286 | UVERBS_ATTR_REG_DMABUF_MR_RESP_RKEY, | ||
| 287 | }; | ||
| 288 | |||
| 275 | enum uverbs_attrs_create_counters_cmd_attr_ids { | 289 | enum uverbs_attrs_create_counters_cmd_attr_ids { |
| 276 | UVERBS_ATTR_CREATE_COUNTERS_HANDLE, | 290 | UVERBS_ATTR_CREATE_COUNTERS_HANDLE, |
| 277 | }; | 291 | }; |