diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-12-29 19:56:33 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-02 21:54:56 -0500 |
commit | 1ca7992cc26012794cd30d2a560e9cf09d328b4d (patch) | |
tree | ac55be8e1a671f390e87760cd511ac8e30a1bdd9 /drivers/net/ethernet/stmicro | |
parent | bdb421663d936eb9b29c743a668614276cf3b97d (diff) | |
download | linux-1ca7992cc26012794cd30d2a560e9cf09d328b4d.tar.bz2 |
net: stmmac: Allow debug prints of frame_len/COE
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 5 |
1 files 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 |