Re: [PATCH rdma-next v1 11/12] IB/mlx5: Implement DEVX dispatching event

2019-06-25 Thread Jason Gunthorpe
On Tue, Jun 25, 2019 at 05:41:49PM +0300, Yishai Hadas wrote: > > > > Why don't we return EIO as soon as is-destroyed happens? What is the > > > > point of flushing out the accumulated events? > > > > > > It follows the above uverb code/logic that returns existing events even in > > > that case, a

Re: [PATCH rdma-next v1 11/12] IB/mlx5: Implement DEVX dispatching event

2019-06-25 Thread Yishai Hadas
On 6/24/2019 9:06 PM, Jason Gunthorpe wrote: On Mon, Jun 24, 2019 at 07:55:32PM +0300, Yishai Hadas wrote: + /* Explicit filtering to kernel events which may occur frequently */ + if (event_type == MLX5_EVENT_TYPE_CMD || + event_type == MLX5_EVENT_TYPE_PAGE_REQUEST) +

Re: [PATCH rdma-next v1 11/12] IB/mlx5: Implement DEVX dispatching event

2019-06-24 Thread Jason Gunthorpe
On Mon, Jun 24, 2019 at 07:55:32PM +0300, Yishai Hadas wrote: > > > + /* Explicit filtering to kernel events which may occur frequently */ > > > + if (event_type == MLX5_EVENT_TYPE_CMD || > > > + event_type == MLX5_EVENT_TYPE_PAGE_REQUEST) > > > + return NOTIFY_OK; > > > + > > > + tabl

Re: [PATCH rdma-next v1 11/12] IB/mlx5: Implement DEVX dispatching event

2019-06-24 Thread Yishai Hadas
On 6/24/2019 3:03 PM, Jason Gunthorpe wrote: On Tue, Jun 18, 2019 at 08:15:39PM +0300, Leon Romanovsky wrote: From: Yishai Hadas Implement DEVX dispatching event by looking up for the applicable subscriptions for the reported event and using their target fd to signal/set the event. Signed-off

Re: [PATCH rdma-next v1 11/12] IB/mlx5: Implement DEVX dispatching event

2019-06-24 Thread Jason Gunthorpe
On Tue, Jun 18, 2019 at 08:15:39PM +0300, Leon Romanovsky wrote: > From: Yishai Hadas > > Implement DEVX dispatching event by looking up for the applicable > subscriptions for the reported event and using their target fd to > signal/set the event. > > Signed-off-by: Yishai Hadas > Signed-off-by

[PATCH rdma-next v1 11/12] IB/mlx5: Implement DEVX dispatching event

2019-06-18 Thread Leon Romanovsky
From: Yishai Hadas Implement DEVX dispatching event by looking up for the applicable subscriptions for the reported event and using their target fd to signal/set the event. Signed-off-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/devx.c | 362 +