RE: [RFC PATCH 1/5] IB/core: Add Core Capability flags to ib_device

Liran Liss
2015-05-05T19:59:02Z

> From: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [mailto:linux-rdma-
> owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of Jason Gunthorpe

> > So if we were to actually be forward thinking about this, then the
> > link layer is the important bit you need to capture on a per port
> > basis, not the transport technology. We would have to modify lots of
> > the stack to support per QP or per AH transport settings though.
>
> We are going to have to do this, at least in the kernel side, the idea that the
> port can imply the one and only address family of the QP is certainly
> antiquated now. I think the roceev2 patches will require this work.
>

I second that the link layer should not be used for this purpose.
RDMA devices can and will advertise multiple rdma 'protocols', such as
ROCE devices that support both ROCE_V1 and ROCE_V2.

--Liran