summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/usnic
diff options
context:
space:
mode:
authorUpinder Malhi <umalhi@cisco.com>2014-01-10 02:48:06 +0400
committerRoland Dreier <roland@purestorage.com>2014-01-14 12:44:41 +0400
commit301a0dd68e5ddd22d992a58f466b621987d9df3b (patch)
tree12227a832298ddd252d8c1795b3925a4b9412697 /drivers/infiniband/hw/usnic
parent8192d4acb5c5376c0f6756f2106ab243036c8c7d (diff)
downloadlinux-301a0dd68e5ddd22d992a58f466b621987d9df3b.tar.xz
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/usnic')
-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;