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

bnx2x: 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>
Cc: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e65c3e1d
...@@ -738,8 +738,9 @@ static void bnx2x_gro_receive(struct bnx2x *bp, struct bnx2x_fastpath *fp, ...@@ -738,8 +738,9 @@ static void bnx2x_gro_receive(struct bnx2x *bp, struct bnx2x_fastpath *fp,
bnx2x_gro_csum(bp, skb, bnx2x_gro_ipv6_csum); bnx2x_gro_csum(bp, skb, bnx2x_gro_ipv6_csum);
break; break;
default: default:
WARN_ONCE(1, "Error: FW GRO supports only IPv4/IPv6, not 0x%04x\n", netdev_WARN_ONCE(bp->dev,
be16_to_cpu(skb->protocol)); "Error: FW GRO supports only IPv4/IPv6, not 0x%04x\n",
be16_to_cpu(skb->protocol));
} }
} }
#endif #endif
......
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