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

Commit 18a03b97 authored by Richard Cochran's avatar Richard Cochran Committed by David S. Miller
Browse files

fec: enable transmit and receive time stamping.



This patch has been tested on the Freescale M5234BCC, which includes the
National Semiconductor DP83640 with IEEE 1588 support.

Cc: Greg Ungerer <gerg@uclinux.org>
Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: default avatarRichard Cochran <richard.cochran@omicron.at>
Signed-off-by: default avatarDavid S. Miller <davem@conan.davemloft.net>
parent 1c17216e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -326,6 +326,8 @@ fec_enet_start_xmit(struct sk_buff *skb, struct net_device *ndev)

	spin_unlock_irqrestore(&fep->hw_lock, flags);

	skb_tx_timestamp(skb);

	return NETDEV_TX_OK;
}

@@ -650,6 +652,7 @@ fec_enet_rx(struct net_device *ndev)
			skb_put(skb, pkt_len - 4);	/* Make room */
			skb_copy_to_linear_data(skb, data, pkt_len - 4);
			skb->protocol = eth_type_trans(skb, ndev);
			if (!skb_defer_rx_timestamp(skb))
				netif_rx(skb);
		}