]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: add transmit timestamping support
authorJoe Jin <joe.jin@oracle.com>
Mon, 27 Aug 2012 13:10:50 +0000 (21:10 +0800)
committerJoe Jin <joe.jin@oracle.com>
Wed, 29 Aug 2012 00:22:02 +0000 (08:22 +0800)
(backported from upstream commit 8373c57d6fa59ca35ad3cf11d719060051ccd920)
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_cmn.c

index 4ef2f3ee6efa75ff18180da262e7eb43d4c4cf10..95be99fcb3ca9d2a27d0ace1fffbefb1b0d250f9 100644 (file)
@@ -2932,6 +2932,8 @@ netdev_tx_t bnx2x_start_xmit(struct sk_buff *skb, struct net_device *dev)
                   pbd_e2->parsing_data);
        DP(NETIF_MSG_TX_QUEUED, "doorbell: nbd %d  bd %u\n", nbd, bd_prod);
 
+       skb_tx_timestamp(skb);
+
        txdata->tx_pkt_prod++;
        /*
         * Make sure that the BD data is updated before updating the producer