提交 c9062cb0 编写于 作者: M Mohammad Kabat 提交者: Zheng Zengkai

net/mlx5: Fix size field in bufferx_reg struct

stable inclusion
from stable-v5.10.106
commit 5f1340963b11bb03a5b2fc5b9f577eeeabb0d71c
bugzilla: https://gitee.com/openeuler/kernel/issues/I573US

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5f1340963b11bb03a5b2fc5b9f577eeeabb0d71c

--------------------------------

[ Upstream commit ac77998b ]

According to HW spec the field "size" should be 16 bits
in bufferx register.

Fixes: e281682b ("net/mlx5_core: HW data structs/types definitions cleanup")
Signed-off-by: NMohammad Kabat <mohammadkab@nvidia.com>
Reviewed-by: NMoshe Shemesh <moshe@nvidia.com>
Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 8aaa7538
无相关合并请求
......@@ -9307,8 +9307,8 @@ struct mlx5_ifc_bufferx_reg_bits {
u8 reserved_at_0[0x6];
u8 lossy[0x1];
u8 epsb[0x1];
u8 reserved_at_8[0xc];
u8 size[0xc];
u8 reserved_at_8[0x8];
u8 size[0x10];
u8 xoff_threshold[0x10];
u8 xon_threshold[0x10];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部