RE: [PATCH v1 rdma-next 4/4] iw_cxgb4: dump detailed provider-specific QP information

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

 



> On Sat, Mar 24, 2018 at 12:55:41PM +0300, Leon Romanovsky wrote:
> 
> > > +	if (nla_put_string(msg, RDMA_NLDEV_ATTR_PROVIDER_STRING,
> "sqid"))
> > > +		goto err_cancel_entry;
> > > +	if (nla_put_u32(msg, RDMA_NLDEV_ATTR_PROVIDER_U32, wq-
> >sq.qid))
> > > +		goto err_cancel_entry;
> 
> And if you are going to have this as a standard scheme, probably give
> it a helper and drop half the lines..
> 
> rdma_nl_put_provider_u32(msg, "sqid", wq->sq.qid);
> 
> Jason

Good idea.  I'll do this...

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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