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.faine...@gmail.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 
b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 0323d672e1c5..d9c98fd810bb 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -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
-- 
2.14.1

Reply via email to