Message ID | 20180701125017.26805-1-leon@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Jason Gunthorpe |
Headers | show |
On Sun, Jul 01, 2018 at 03:50:17PM +0300, Leon Romanovsky wrote: > From: Maor Gottlieb <maorg@mellanox.com> > > Currently the driver sets the mask of the gre_protocol to 0xffff > without consideration in the user request. > > Fix it by copy the mask from the verbs spec. > > Fixes: da2f22ae7707 ('IB/mlx5: Add support for GRE flow specification') > Signed-off-by: Maor Gottlieb <maorg@mellanox.com> > Reviewed-by: Ariel Levkovich <lariel@mellanox.com> > Signed-off-by: Leon Romanovsky <leonro@mellanox.com> > --- > drivers/infiniband/hw/mlx5/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to for-next Thanks Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 54a1a4d537be..3f4e43433361 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -2685,7 +2685,7 @@ static int parse_flow_attr(struct mlx5_core_dev *mdev, u32 *match_c, IPPROTO_GRE); MLX5_SET(fte_match_set_misc, misc_params_c, gre_protocol, - 0xffff); + ntohs(ib_spec->gre.mask.protocol)); MLX5_SET(fte_match_set_misc, misc_params_v, gre_protocol, ntohs(ib_spec->gre.val.protocol));