Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
a5eff61
IB/core: Refactor idr to be per uverbs_file
Jun 27, 2016
e400a42
IB/core: Add support for idr types
matanb10 Jun 27, 2016
1f22765
IB/core: Add idr based standard types
matanb10 Jan 19, 2017
c137277
IB/core: Change idr objects to use the new schema
matanb10 Jan 19, 2017
392a34e
IB/core: Add lock to multicast handlers
matanb10 Jan 19, 2017
a4f23f5
IB/core: Add support for fd objects
matanb10 Dec 20, 2016
69ecaab
IB/core: Change completion channel to use the reworked objects schema
matanb10 Jan 19, 2017
10a5e07
IB/core: Add a generic way to execute an operation on a uobject
matanb10 Jan 26, 2017
47bd251
IB/core: Add support to finalize objects in one transaction
matanb10 Dec 26, 2016
39ea52a
IB/core: Add new ioctl interface
matanb10 Jun 27, 2016
aa3e69f
IB/core: Declare a type instead of declaring only type attributes
matanb10 Dec 21, 2016
0542f11
IB/core: Add DEVICE type and root types structure
matanb10 Dec 26, 2016
28f2c11
IB/core: Initialize uverbs types specification
matanb10 Feb 1, 2017
1a8fcbf
IB/core: Add macros for declaring actions and attributes
matanb10 Dec 21, 2016
e94ecde
IB/core: Add uverbs types, actions, handlers and attributes
matanb10 Jul 12, 2016
4114809
IB/core: Expose ioctl interface through experimental Kconfig
matanb10 Feb 1, 2017
748ff35
IB/core: Support getting IOCTL header/SGEs from kernel space
matanb10 Oct 10, 2016
649f083
IB/core: Implement compatibility layer for get context command
matanb10 Oct 10, 2016
0b6d87b
add flag type attribute
matanb10 Feb 2, 2017
1956abf
Add the rest of convinient macros
matanb10 Feb 2, 2017
2393543
Add query_qp handler
yonatanco Mar 8, 2017
4889e0f
Add rereg_mr handler
yonatanco Mar 12, 2017
43c2904
Merge user kernel headers
yonatanco Mar 15, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions drivers/infiniband/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ config INFINIBAND_USER_ACCESS
libibverbs, libibcm and a hardware driver library from
<http://www.openfabrics.org/git/>.

config INFINIBAND_EXP_USER_ACCESS
bool "Allow experimental support for Infiniband ABI"
depends on INFINIBAND_USER_ACCESS
---help---
IOCTL based ABI support for Infiniband. This allows userspace
to invoke the experimental IOCTL based ABI.

config INFINIBAND_USE_IOCTL_BACKWARD_COMP
bool "Use IOCTL parsing for write commands"
depends on INFINIBAND_USER_ACCESS
---help---
Transform supported write commands to IOCTL commands and
execute them. Serialize the response back to the write schema.

config INFINIBAND_USER_MEM
bool
depends on INFINIBAND_USER_ACCESS != n
Expand Down
3 changes: 2 additions & 1 deletion drivers/infiniband/core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ ib_umad-y := user_mad.o

ib_ucm-y := ucm.o

ib_uverbs-y := uverbs_main.o uverbs_cmd.o uverbs_marshall.o
ib_uverbs-y := uverbs_main.o uverbs_cmd.o uverbs_marshall.o \
rdma_core.o uverbs_std_types.o uverbs_ioctl.o
14 changes: 14 additions & 0 deletions drivers/infiniband/core/core_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,18 @@ int ib_nl_handle_set_timeout(struct sk_buff *skb,
int ib_nl_handle_ip_res_resp(struct sk_buff *skb,
struct netlink_callback *cb);

/* Remove ignored fields set in the attribute mask */
static inline int modify_qp_mask(enum ib_qp_type qp_type, int mask)
{
switch (qp_type) {
case IB_QPT_XRC_INI:
return mask & ~(IB_QP_MAX_DEST_RD_ATOMIC | IB_QP_MIN_RNR_TIMER);
case IB_QPT_XRC_TGT:
return mask & ~(IB_QP_MAX_QP_RD_ATOMIC | IB_QP_RETRY_CNT |
IB_QP_RNR_RETRY);
default:
return mask;
}
}

#endif /* _CORE_PRIV_H */
Loading