]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Fix GRE flow specification
authorMaor Gottlieb <maorg@mellanox.com>
Sun, 1 Jul 2018 12:50:17 +0000 (15:50 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 3 Jul 2018 21:46:07 +0000 (15:46 -0600)
commit6e8fd43052e84e33a42409681a3f5c56b4e7a151
tree26efdc19770b565ff7c62db133dca5896ceb6174
parentf8626c44fa004ddcecd2eca1e850b817f164401e
IB/mlx5: Fix GRE flow specification

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: ad8ce0563502 ("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>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c