summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorUpinder Malhi <umalhi@cisco.com>2014-01-09 23:48:06 +0100
committerRoland Dreier <roland@purestorage.com>2014-01-14 09:44:41 +0100
commit301a0dd68e5ddd22d992a58f466b621987d9df3b (patch)
tree12227a832298ddd252d8c1795b3925a4b9412697 /drivers/infiniband/hw
parentIB/usnic: Change WARN_ON to lockdep_assert_held (diff)
downloadlinux-301a0dd68e5ddd22d992a58f466b621987d9df3b.tar.xz
linux-301a0dd68e5ddd22d992a58f466b621987d9df3b.zip
IB/usnic: Add struct usnic_transport_spec
Add *struct usnic_transport_spec* for passing around transport specifications. Signed-off-by: Upinder Malhi <umalhi@cisco.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/usnic/usnic_abi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_abi.h b/drivers/infiniband/hw/usnic/usnic_abi.h
index 510b7d702465..dd3e4c6c474f 100644
--- a/drivers/infiniband/hw/usnic/usnic_abi.h
+++ b/drivers/infiniband/hw/usnic/usnic_abi.h
@@ -33,6 +33,15 @@ enum usnic_transport_type {
USNIC_TRANSPORT_MAX = 2,
};
+struct usnic_transport_spec {
+ enum usnic_transport_type trans_type;
+ union {
+ struct {
+ uint16_t port_num;
+ } usnic_roce;
+ };
+};
+
/*TODO: Future - usnic_modify_qp needs to pass in generic filters */
struct usnic_ib_create_qp_resp {
u32 vfid;