提交 51951998 编写于 作者: T Tariq Toukan 提交者: Xie XiuQi

net/mlx5e: XDP, Fix shifted flag index in RQ bitmap

mainline inclusion
from mainline-5.1
commit f03590f74cc2
category: bugfix
bugzilla: 15065
CVE: NA

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

Values in enum mlx5e_rq_flag are used as bit indixes.
Intention was to use them with no BIT(i) wrapping.

No functional bug fix here, as the same (shifted)flag bit
is used for all set, test, and clear operations.

Fixes: 121e8927 ("net/mlx5e: Refactor RQ XDP_TX indication")
Signed-off-by: NTariq Toukan <tariqt@mellanox.com>
Reviewed-by: NShay Agroskin <shayag@mellanox.com>
Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: NZhiqiang Liu <liuzhiqiang26@huawei.com>
Reviewed-by: NWenan Mao <maowenan@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 2ae92522
...@@ -511,7 +511,7 @@ typedef bool (*mlx5e_fp_post_rx_wqes)(struct mlx5e_rq *rq); ...@@ -511,7 +511,7 @@ typedef bool (*mlx5e_fp_post_rx_wqes)(struct mlx5e_rq *rq);
typedef void (*mlx5e_fp_dealloc_wqe)(struct mlx5e_rq*, u16); typedef void (*mlx5e_fp_dealloc_wqe)(struct mlx5e_rq*, u16);
enum mlx5e_rq_flag { enum mlx5e_rq_flag {
MLX5E_RQ_FLAG_XDP_XMIT = BIT(0), MLX5E_RQ_FLAG_XDP_XMIT,
}; };
struct mlx5e_rq_frag_info { struct mlx5e_rq_frag_info {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册