summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaria Velikovsky <daria@mellanox.com>2018-05-07 10:20:02 +0300
committerDoug Ledford <dledford@redhat.com>2018-05-09 10:39:50 -0400
commit37da2a03c036538a5a79766d74bfcf5b873e5cad (patch)
treebd9b96fb4164b9e5e4f6aafe22577b8e5c9801aa
parent18b0362e87dfa09e355093b897b9db854e360d28 (diff)
downloadlinux-37da2a03c036538a5a79766d74bfcf5b873e5cad.tar.gz
linux-37da2a03c036538a5a79766d74bfcf5b873e5cad.tar.bz2
linux-37da2a03c036538a5a79766d74bfcf5b873e5cad.zip
RDMA/mlx5: Use proper spec flow label type
Flow label is defined as u32 in the in ipv6 flow spec, but used internally in the flow specs parsing as u8. That was causing loss of part of flow_label value. Fixes: 2d1e697e9b716 ('IB/mlx5: Add support to match inner packet fields') Reviewed-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Daria Velikovsky <daria@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/hw/mlx5/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index a42c6b1cdb5a..cd1c342be6e3 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -2416,7 +2416,7 @@ static void set_proto(void *outer_c, void *outer_v, u8 mask, u8 val)
MLX5_SET(fte_match_set_lyr_2_4, outer_v, ip_protocol, val);
}
-static void set_flow_label(void *misc_c, void *misc_v, u8 mask, u8 val,
+static void set_flow_label(void *misc_c, void *misc_v, u32 mask, u32 val,
bool inner)
{
if (inner) {