Browse Source

net/mlx5: Ensure SRQ physical address structure endianness

SRQ physical address structure field should be in big-endian format.

Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Artemy Kovalyov 9 năm trước cách đây
mục cha
commit
dd257efb1e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      include/linux/mlx5/srq.h

+ 1 - 1
include/linux/mlx5/srq.h

@@ -55,7 +55,7 @@ struct mlx5_srq_attr {
 	u32 lwm;
 	u32 user_index;
 	u64 db_record;
-	u64 *pas;
+	__be64 *pas;
 };
 
 struct mlx5_core_dev;