]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: change FW GRO error message to WARN_ONCE
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 4 Dec 2015 16:22:35 +0000 (17:22 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 02:28:36 +0000 (19:28 -0700)
It's supposed to be impossible for TPA to give us anything else
than IPv4 or IPv6 here. But in case there is a way to reach this error
by some strange received frames, we don't want to flood the kernel log.
WARN_ONCE is better for this purpose.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 23718192
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

index 37118439a36d80e9db08a69968420c305ddb8704..b24291a45a8528f866f8cfd2be0c847982647c96 100644 (file)
@@ -745,7 +745,7 @@ static void bnx2x_gro_receive(struct bnx2x *bp, struct bnx2x_fastpath *fp,
                        bnx2x_gro_csum(bp, skb, bnx2x_gro_ipv6_csum);
                        break;
                default:
-                       BNX2X_ERR("Error: FW GRO supports only IPv4/IPv6, not 0x%04x\n",
+                       WARN_ONCE(1, "Error: FW GRO supports only IPv4/IPv6, not 0x%04x\n",
                                  be16_to_cpu(skb->protocol));
                }
        }