From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuval Shaia Subject: Re: [PATCH rdma-next 1/6] net/mlx5: Add DCT command interface Date: Tue, 2 Jan 2018 11:43:27 +0200 Message-ID: <20180102094327.GA3302@yuvallap> References: <20171226091634.2352-1-leon@kernel.org> <20171226091634.2352-2-leon@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20171226091634.2352-2-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Leon Romanovsky Cc: Doug Ledford , Jason Gunthorpe , RDMA mailing list , Moni Shoua , Yishai Hadas List-Id: linux-rdma@vger.kernel.org On Tue, Dec 26, 2017 at 11:16:29AM +0200, Leon Romanovsky wrote: > From: Moni Shoua > > Add a missing command interface to work with a DCT. It includes: creating, > destroying and get events for. > > Signed-off-by: Moni Shoua > Reviewed-by: Yishai Hadas > Signed-off-by: Leon Romanovsky > --- > drivers/net/ethernet/mellanox/mlx5/core/eq.c | 9 +- > drivers/net/ethernet/mellanox/mlx5/core/qp.c | 128 ++++++++++++++++++++++++--- > include/linux/mlx5/device.h | 9 ++ > include/linux/mlx5/driver.h | 8 ++ > include/linux/mlx5/qp.h | 12 +++ > 5 files changed, 153 insertions(+), 13 deletions(-) > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c b/drivers/net/ethernet/mellanox/mlx5/core/eq.c > index 60771865c99c..7d3d503fa675 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/eq.c > +++ b/drivers/net/ethernet/mellanox/mlx5/core/eq.c > > +static u64 dct_allowed_event_types(void) > +{ > + u64 mask; > + > + mask = BIT(MLX5_EVENT_TYPE_DCT_DRAINED); > + > + return mask; We don't really need this "mask" variable, right? > +} > + -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html