diff options
author | Upinder Malhi <umalhi@cisco.com> | 2014-01-09 22:48:06 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-01-14 08:44:41 (GMT) |
commit | 301a0dd68e5ddd22d992a58f466b621987d9df3b (patch) | |
tree | 12227a832298ddd252d8c1795b3925a4b9412697 /drivers/infiniband/hw | |
parent | 8192d4acb5c5376c0f6756f2106ab243036c8c7d (diff) | |
download | linux-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')
-rw-r--r-- | drivers/infiniband/hw/usnic/usnic_abi.h | 9 |
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 510b7d7..dd3e4c6 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; |