diff options
author | Upinder Malhi <umalhi@cisco.com> | 2014-01-10 02:48:14 +0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-01-14 12:44:43 +0400 |
commit | b85caf479b577f000067002259539ad4341d4530 (patch) | |
tree | 2ad781ca70ff96aac2a5047ed5f0d57fae1883bd /drivers/infiniband/hw/usnic/usnic_abi.h | |
parent | 60b215e8b267f911751a043de63181dab1b69706 (diff) | |
download | linux-b85caf479b577f000067002259539ad4341d4530.tar.xz |
IB/usnic: Update ABI and Version file for UDP support
Expand the kernel/userspace interface so userspace may push down
a socket file descriptor to usNIC. Also, bump up the abi and version
numbers.
Signed-off-by: Upinder Malhi <umalhi@cisco.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/usnic/usnic_abi.h')
-rw-r--r-- | drivers/infiniband/hw/usnic/usnic_abi.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_abi.h b/drivers/infiniband/hw/usnic/usnic_abi.h index dd3e4c6c474f..014bcfcabc0f 100644 --- a/drivers/infiniband/hw/usnic/usnic_abi.h +++ b/drivers/infiniband/hw/usnic/usnic_abi.h @@ -21,7 +21,7 @@ #define USNIC_ABI_H /* ABI between userspace and kernel */ -#define USNIC_UVERBS_ABI_VERSION 2 +#define USNIC_UVERBS_ABI_VERSION 3 #define USNIC_QP_GRP_MAX_WQS 8 #define USNIC_QP_GRP_MAX_RQS 8 @@ -30,7 +30,8 @@ enum usnic_transport_type { USNIC_TRANSPORT_UNKNOWN = 0, USNIC_TRANSPORT_ROCE_CUSTOM = 1, - USNIC_TRANSPORT_MAX = 2, + USNIC_TRANSPORT_IPV4_UDP = 2, + USNIC_TRANSPORT_MAX = 3, }; struct usnic_transport_spec { @@ -39,9 +40,16 @@ struct usnic_transport_spec { struct { uint16_t port_num; } usnic_roce; + struct { + uint32_t sock_fd; + } udp; }; }; +struct usnic_ib_create_qp_cmd { + struct usnic_transport_spec spec; +}; + /*TODO: Future - usnic_modify_qp needs to pass in generic filters */ struct usnic_ib_create_qp_resp { u32 vfid; |