Re: [PATCH v2 3/3] RDMA: Report available cdevs through RDMA_NLDEV_CMD_GET_CHARDEV

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

 



On Tue, Jun 18, 2019 at 01:04:14PM +0000, Leon Romanovsky wrote:
> On Tue, Jun 18, 2019 at 10:01:50AM -0300, Jason Gunthorpe wrote:
> > On Tue, Jun 18, 2019 at 12:19:04PM +0000, Leon Romanovsky wrote:
> > > > diff --git a/include/uapi/rdma/rdma_netlink.h b/include/uapi/rdma/rdma_netlink.h
> > > > index 9903db21a42c58..b27c02185dcc19 100644
> > > > +++ b/include/uapi/rdma/rdma_netlink.h
> > > > @@ -504,6 +504,7 @@ enum rdma_nldev_attr {
> > > >  	RDMA_NLDEV_ATTR_CHARDEV_NAME,		/* string */
> > > >  	RDMA_NLDEV_ATTR_CHARDEV_ABI,		/* u64 */
> > > >  	RDMA_NLDEV_ATTR_CHARDEV,		/* u64 */
> > > > +	RDMA_NLDEV_ATTR_UVERBS_DRIVER_ID,       /* u64 */
> > >
> > > This should be inside nla_policy too.
> >
> > It is an output, not an input. policy only checks inputs.
> 
> We are putting in policy everything to ensure that it won't be forgotten
> once output field will be used as an input.

Adding dead never tested code is more likely to just get it wrong..

Jason



[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