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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux