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 <majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Reviewed-by: Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
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