[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 ��.n��������+%������w��{.n�����{���fk��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f