aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGal Pressman <galp@mellanox.com>2018-01-07 05:08:37 -0500
committerDavid S. Miller <davem@davemloft.net>2018-01-08 20:53:14 -0500
commitcd4a87dff7057ec905871530df9c04c8e50e0e36 (patch)
tree89ad478d1f7bdaf2c0b2602d6c488694b998c64d
parente1cfe3d0eb0430f4fb849ef606fb095b6e149853 (diff)
net/mlx5e: Replace WARN_ONCE with netdev_WARN_ONCE
Use the more appropriate netdev_WARN_ONCE instead of WARN_ONCE macro. Signed-off-by: Gal Pressman <galp@mellanox.com> Reviewed-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_rx.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
index 7b38480811d4..90354e676f0d 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
@@ -495,8 +495,8 @@ static inline void mlx5e_poll_ico_single_cqe(struct mlx5e_cq *cq,
495 mlx5_cqwq_pop(&cq->wq); 495 mlx5_cqwq_pop(&cq->wq);
496 496
497 if (unlikely((cqe->op_own >> 4) != MLX5_CQE_REQ)) { 497 if (unlikely((cqe->op_own >> 4) != MLX5_CQE_REQ)) {
498 WARN_ONCE(true, "mlx5e: Bad OP in ICOSQ CQE: 0x%x\n", 498 netdev_WARN_ONCE(cq->channel->netdev,
499 cqe->op_own); 499 "Bad OP in ICOSQ CQE: 0x%x\n", cqe->op_own);
500 return; 500 return;
501 } 501 }
502 502
@@ -506,9 +506,8 @@ static inline void mlx5e_poll_ico_single_cqe(struct mlx5e_cq *cq,
506 } 506 }
507 507
508 if (unlikely(icowi->opcode != MLX5_OPCODE_NOP)) 508 if (unlikely(icowi->opcode != MLX5_OPCODE_NOP))
509 WARN_ONCE(true, 509 netdev_WARN_ONCE(cq->channel->netdev,
510 "mlx5e: Bad OPCODE in ICOSQ WQE info: 0x%x\n", 510 "Bad OPCODE in ICOSQ WQE info: 0x%x\n", icowi->opcode);
511 icowi->opcode);
512} 511}
513 512
514static void mlx5e_poll_ico_cq(struct mlx5e_cq *cq, struct mlx5e_rq *rq) 513static void mlx5e_poll_ico_cq(struct mlx5e_cq *cq, struct mlx5e_rq *rq)