mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
RDMA/mlx5: Fail early if user tries to create flows on IB representors
IB representors don't support creation of RAW ethernet QP flows. Disable them by reusing existing RDMA/core support macros. We do it for both creation and matcher because latter is not usable if no flow creation is available. Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
This commit is contained in:
parent
f94e02ddfd
commit
a1462351b5
2 changed files with 17 additions and 8 deletions
|
|
@ -454,15 +454,16 @@ struct uapi_definition {
|
|||
}
|
||||
|
||||
/* Temporary until the tree base description is replaced */
|
||||
#define UAPI_DEF_CHAIN_OBJ_TREE(_object_enum, _object_ptr) \
|
||||
#define UAPI_DEF_CHAIN_OBJ_TREE(_object_enum, _object_ptr, ...) \
|
||||
{ \
|
||||
.kind = UAPI_DEF_CHAIN_OBJ_TREE, \
|
||||
.object_start = { .object_id = _object_enum }, \
|
||||
.chain_obj_tree = _object_ptr, \
|
||||
}
|
||||
#define UAPI_DEF_CHAIN_OBJ_TREE_NAMED(_object_enum, ...) \
|
||||
UAPI_DEF_CHAIN_OBJ_TREE(_object_enum, &UVERBS_OBJECT(_object_enum)), \
|
||||
}, \
|
||||
##__VA_ARGS__
|
||||
#define UAPI_DEF_CHAIN_OBJ_TREE_NAMED(_object_enum, ...) \
|
||||
UAPI_DEF_CHAIN_OBJ_TREE(_object_enum, &UVERBS_OBJECT(_object_enum), \
|
||||
##__VA_ARGS__)
|
||||
|
||||
/*
|
||||
* =======================================
|
||||
|
|
|
|||
Loading…
Reference in a new issue