Commit cd4a87df authored by Gal Pressman's avatar Gal Pressman Committed by David S. Miller

net/mlx5e: Replace WARN_ONCE with netdev_WARN_ONCE

Use the more appropriate netdev_WARN_ONCE instead of WARN_ONCE macro.
Signed-off-by: default avatarGal Pressman <galp@mellanox.com>
Reviewed-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e1cfe3d0
...@@ -495,8 +495,8 @@ static inline void mlx5e_poll_ico_single_cqe(struct mlx5e_cq *cq, ...@@ -495,8 +495,8 @@ static inline void mlx5e_poll_ico_single_cqe(struct mlx5e_cq *cq,
mlx5_cqwq_pop(&cq->wq); mlx5_cqwq_pop(&cq->wq);
if (unlikely((cqe->op_own >> 4) != MLX5_CQE_REQ)) { if (unlikely((cqe->op_own >> 4) != MLX5_CQE_REQ)) {
WARN_ONCE(true, "mlx5e: Bad OP in ICOSQ CQE: 0x%x\n", netdev_WARN_ONCE(cq->channel->netdev,
cqe->op_own); "Bad OP in ICOSQ CQE: 0x%x\n", cqe->op_own);
return; return;
} }
...@@ -506,9 +506,8 @@ static inline void mlx5e_poll_ico_single_cqe(struct mlx5e_cq *cq, ...@@ -506,9 +506,8 @@ static inline void mlx5e_poll_ico_single_cqe(struct mlx5e_cq *cq,
} }
if (unlikely(icowi->opcode != MLX5_OPCODE_NOP)) if (unlikely(icowi->opcode != MLX5_OPCODE_NOP))
WARN_ONCE(true, netdev_WARN_ONCE(cq->channel->netdev,
"mlx5e: Bad OPCODE in ICOSQ WQE info: 0x%x\n", "Bad OPCODE in ICOSQ WQE info: 0x%x\n", icowi->opcode);
icowi->opcode);
} }
static void mlx5e_poll_ico_cq(struct mlx5e_cq *cq, struct mlx5e_rq *rq) static void mlx5e_poll_ico_cq(struct mlx5e_cq *cq, struct mlx5e_rq *rq)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment