net: stmmac: Allow debug prints of frame_len/COE
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 30 Dec 2017 03:56:33 +0000 (19:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 02:54:56 +0000 (21:54 -0500)
There is no reason not to allow printing the frame_len/COE value and put
that under a check for ETH_FRAME_LEN, drop it so we can see what the
descriptor reports.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index 0323d672e1c5b365eace923de3e6702b9058011e..d9c98fd810bb63ac4e8eb1f3d52155c238ecdd78 100644 (file)
@@ -3436,9 +3436,8 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit, u32 queue)
                        if (netif_msg_rx_status(priv)) {
                                netdev_dbg(priv->dev, "\tdesc: %p [entry %d] buff=0x%x\n",
                                           p, entry, des);
-                               if (frame_len > ETH_FRAME_LEN)
-                                       netdev_dbg(priv->dev, "frame size %d, COE: %d\n",
-                                                  frame_len, status);
+                               netdev_dbg(priv->dev, "frame size %d, COE: %d\n",
+                                          frame_len, status);
                        }
 
                        /* The zero-copy is always used for all the sizes