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

Commit 93e0ed15 authored by Richard Cochran's avatar Richard Cochran Committed by David S. Miller
Browse files

ll_temac: enable transmit and receive time stamping.



This patch enables software (and phy device) time stamping. Since this MAC
is based on phylib, adding the hooks makes hardware time stamping in the
phy possible.

Compile tested only.

Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarRichard Cochran <richard.cochran@omicron.at>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 570773c5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -728,6 +728,8 @@ static int temac_start_xmit(struct sk_buff *skb, struct net_device *ndev)
	if (lp->tx_bd_tail >= TX_BD_NUM)
		lp->tx_bd_tail = 0;

	skb_tx_timestamp(skb);

	/* Kick off the transfer */
	lp->dma_out(lp, TX_TAILDESC_PTR, tail_p); /* DMA start */

@@ -773,6 +775,7 @@ static void ll_temac_recv(struct net_device *ndev)
			skb->ip_summed = CHECKSUM_COMPLETE;
		}

		if (!skb_defer_rx_timestamp(skb))
			netif_rx(skb);

		ndev->stats.rx_packets++;