Re: [PATCH rdma-core 1/2] Extend verbs_device_ops to get vendor attr as part of alloc_context

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

 



On Sun, Sep 23, 2018 at 02:00:04PM +0000, Saleem, Shiraz wrote:

> > static struct verbs_context *i40iw_ualloc_context(struct ibv_device *ibdev,
> >-						  int cmd_fd)
> >+						  int cmd_fd,
> >+						  void *vendor_attr)
> > {
> > 	struct ibv_pd *ibv_pd;
> > 	struct i40iw_uvcontext *iwvctx;
> > 	struct i40iw_get_context cmd;
> > 	struct i40iw_get_context_resp resp;
> >
> >+	if (vendor_attr)
> >+		return NULL;
> >+
>
> How do non-mlx providers take advantage of passing vendor attrs in the future?
> 
> Also, can you update the function header comment section for vendor attr?

It is only a useful API if the driver has the '*dv' style entry
points.

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