From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH rdma-next 09/31] IB/core: Make sure that PSN does not overflow Date: Wed, 27 Dec 2017 15:44:11 -0700 Message-ID: <20171227224411.GA2156@ziepe.ca> References: <20171114125218.20477-1-leon@kernel.org> <20171114125218.20477-10-leon@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20171114125218.20477-10-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Leon Romanovsky Cc: Doug Ledford , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Majd Dibbiny , Daniel Jurgens List-Id: linux-rdma@vger.kernel.org On Tue, Nov 14, 2017 at 02:51:56PM +0200, Leon Romanovsky wrote: > From: Majd Dibbiny > > The rq/sq->psn is 24 bits as defined in the IB spec,therefore we mask > out the 8 most significant bits to avoid overflow in modify qp. > > Signed-off-by: Majd Dibbiny > Signed-off-by: Daniel Jurgens > Reviewed-by: Parav Pandit > Signed-off-by: Leon Romanovsky > drivers/infiniband/core/verbs.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) Applied to -next, thanks Jason -- 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