Skip to content

Commit c18601f

Browse files
dariavelnmorey
authored andcommitted
mlx5: Fix flow tag mask
[ Upstream commit 484a7aa ] Flow tag is 24 bits so the mask should be 0x00ffffff instead of 0x000fffff. 20 bits mask caused loss of MSBs in read_flow_tag(). Fixes: 02e8f9d ("mlx5: Add read_flow_tag implementation") Cc: stable@linux-rdma.org Signed-off-by: Daria Velikovsky <daria@mellanox.com> Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
1 parent b72347f commit c18601f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/mlx5/mlx5.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ enum mlx5_vendor_cap_flags {
189189
};
190190

191191
enum {
192-
MLX5_FLOW_TAG_MASK = 0x000fffff,
192+
MLX5_FLOW_TAG_MASK = 0x00ffffff,
193193
};
194194

195195
struct mlx5_resource {

0 commit comments

Comments
 (0)