| lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
|
Open Source and information security mailing list archives
| ||
|
Message-Id: <1a5a97397356b4b715e12bac3b10ad9074756ea3.1307880494.git.richard.cochran@omicron.at> Date: Sun, 12 Jun 2011 14:18:59 +0200 From: Richard Cochran <richardcochran@...il.com> To: <netdev@...r.kernel.org> Cc: David Miller <davem@...emloft.net>, Greg Ungerer <gerg@...inux.org>, Uwe Kleine-König <u.kleine-koenig@...gutronix.de>, Shawn Guo <shawn.guo@...escale.com> Subject: [PATCH V3 02/10] 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@...inux.org> Cc: "Uwe Kleine-König" <u.kleine-koenig@...gutronix.de> Cc: Shawn Guo <shawn.guo@...escale.com> Signed-off-by: Richard Cochran <richard.cochran@...cron.at> --- drivers/net/fec.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 885d8ba..965fe90 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -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,7 +652,8 @@ 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); - netif_rx(skb); + if (!skb_defer_rx_timestamp(skb)) + netif_rx(skb); } bdp->cbd_bufaddr = dma_map_single(&fep->pdev->dev, data, -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists