Re: [PATCH v2 02/17] IB/Verbs: Implement raw management helpers

2015-04-08 Thread Michael Wang
On 04/07/2015 11:25 PM, Hefty, Sean wrote: >> +static inline int rdma_transport_ib(struct ib_device *device, u8 >> port_num) >> +{ >> +return device->query_transport(device, port_num) >> +== RDMA_TRANSPORT_IB; >> +} >> + >> +static inline int rdma_transport_iboe(struct ib_d

RE: [PATCH v2 02/17] IB/Verbs: Implement raw management helpers

2015-04-07 Thread Hefty, Sean
> +static inline int rdma_transport_ib(struct ib_device *device, u8 > port_num) > +{ > + return device->query_transport(device, port_num) > + == RDMA_TRANSPORT_IB; > +} > + > +static inline int rdma_transport_iboe(struct ib_device *device, u8 > port_num) > +{ > + return

[PATCH v2 02/17] IB/Verbs: Implement raw management helpers

2015-04-07 Thread Michael Wang
Add raw helpers: rdma_transport_ib rdma_transport_iboe rdma_transport_iwarp rdma_ib_mgmt To help us checking transport type. Cc: Jason Gunthorpe Cc: Doug Ledford Cc: Ira Weiny Cc: Sean Hefty Signed-off-by: Michael Wang --- include/rdma/ib_verbs.h | 25 +++