mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 04:30:08 +07:00
sh_eth: Optionally log RX and TX status for each completed descriptor
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6b4b4fead3
commit
e5fd13f476
@ -1417,6 +1417,9 @@ static int sh_eth_txfree(struct net_device *ndev)
|
|||||||
break;
|
break;
|
||||||
/* TACT bit must be checked before all the following reads */
|
/* TACT bit must be checked before all the following reads */
|
||||||
rmb();
|
rmb();
|
||||||
|
netif_info(mdp, tx_done, ndev,
|
||||||
|
"tx entry %d status 0x%08x\n",
|
||||||
|
entry, edmac_to_cpu(mdp, txdesc->status));
|
||||||
/* Free the original skb. */
|
/* Free the original skb. */
|
||||||
if (mdp->tx_skbuff[entry]) {
|
if (mdp->tx_skbuff[entry]) {
|
||||||
dma_unmap_single(&ndev->dev, txdesc->addr,
|
dma_unmap_single(&ndev->dev, txdesc->addr,
|
||||||
@ -1462,6 +1465,10 @@ static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota)
|
|||||||
if (--boguscnt < 0)
|
if (--boguscnt < 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
netif_info(mdp, rx_status, ndev,
|
||||||
|
"rx entry %d status 0x%08x len %d\n",
|
||||||
|
entry, desc_status, pkt_len);
|
||||||
|
|
||||||
if (!(desc_status & RDFEND))
|
if (!(desc_status & RDFEND))
|
||||||
ndev->stats.rx_length_errors++;
|
ndev->stats.rx_length_errors++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user