RE: [PATCH for-next v2 15/16] IB/core: Map iWarp AH type to undefined in rdma_ah_find_type

Weiny, Ira
2018-01-27T01:24:30Z

[snip]

> >
> > -/*Get AH type */
> > +/**
> > + * rdma_ah_find_type - Return address handle type.
> > + *
> > + * @dev: Device to be checked
> > + * @port_num: Port number
> > + */
> > static inline enum rdma_ah_attr_type rdma_ah_find_type(struct
> > ib_device *dev,
> > - u32 port_num)
> > + u8 port_num)
> > {
> > if (rdma_protocol_roce(dev, port_num))
> > return RDMA_AH_ATTR_TYPE_ROCE;
> > + else if (rdma_protocol_iwarp(dev, port_num))
> > + return RDMA_AH_ATTR_TYPE_UNDEFINED;
> > else if ((rdma_protocol_ib(dev, port_num)) &&
> > (rdma_cap_opa_ah(dev, port_num)))
> > return RDMA_AH_ATTR_TYPE_OPA;
> You need a case to return AH_TYPE_IB.
>

That is covered in the else below this part of the patch.

Ira