From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yishai Hadas Subject: Re: [PATCH libmlx5] Add support for legacy context size Date: Tue, 29 Mar 2016 10:07:27 +0300 Message-ID: <56FA29AF.9070709@dev.mellanox.co.il> References: <1459078225-16205-1-git-send-email-majd@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1459078225-16205-1-git-send-email-majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Majd Dibbiny Cc: yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org List-Id: linux-rdma@vger.kernel.org On 3/27/2016 2:30 PM, Majd Dibbiny wrote: > The ibv_cmd_get_context fails in older kernels when passing > a request length that the kernel doesn't know. > To avoid breaking compatibility of new libmlx5 and older kernels, > when ibv_cmd_get_context fails with the full request length, > we try once again with the legacy length. > > Signed-off-by: Majd Dibbiny > Reviewed-by: Yishai Hadas > --- > src/mlx5.c | 27 +++++++++++++++++++++++++-- > 1 file changed, 25 insertions(+), 2 deletions(-) > Applied, thanks. -- 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