Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ca7992c authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

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: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bdb42166
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -3436,7 +3436,6 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit, u32 queue)
			if (netif_msg_rx_status(priv)) {
			if (netif_msg_rx_status(priv)) {
				netdev_dbg(priv->dev, "\tdesc: %p [entry %d] buff=0x%x\n",
				netdev_dbg(priv->dev, "\tdesc: %p [entry %d] buff=0x%x\n",
					   p, entry, des);
					   p, entry, des);
				if (frame_len > ETH_FRAME_LEN)
				netdev_dbg(priv->dev, "frame size %d, COE: %d\n",
				netdev_dbg(priv->dev, "frame size %d, COE: %d\n",
					   frame_len, status);
					   frame_len, status);
			}
			}