diff options
author | Daria Velikovsky <daria@mellanox.com> | 2018-05-07 09:20:02 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-05-09 16:39:50 +0200 |
commit | 37da2a03c036538a5a79766d74bfcf5b873e5cad (patch) | |
tree | bd9b96fb4164b9e5e4f6aafe22577b8e5c9801aa /drivers | |
parent | RDMA/mlx5: Don't assume that medium blueFlame register exists (diff) | |
download | linux-37da2a03c036538a5a79766d74bfcf5b873e5cad.tar.xz 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 2 |
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) { |