On Tue, Apr 03, 2018 at 10:00:53AM +0300, Leon Romanovsky wrote: > From: Jason Gunthorpe <jgg@xxxxxxxxxxxx> > > This structure is pushed down the ex and the non-ex path, so it needs to be > aligned to 8 bytes to go through ex without implicit padding. > > Old user space will provide 4 bytes of resp on !ex and 8 bytes on ex, so > take the approach of just copying the minimum length. > > New user space will consistently provide 8 bytes in both cases. > > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > * Sent wrong patch in v0. > --- > drivers/infiniband/hw/mlx5/qp.c | 4 ++-- > include/uapi/rdma/mlx5-abi.h | 1 + > 2 files changed, 3 insertions(+), 2 deletions(-) Since this is part of a fixing a rdma-core regression I've taken it right away into -next Thanks, Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html