aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2013-04-23 02:06:50 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-24 16:30:14 -0400
commiteb0cabbd1bebbf41858ded768c9cad8840708447 (patch)
tree213870df2f1d71789b063c4c461d1d70eb9d61f2 /drivers/net/ethernet/mellanox
parentec693d47010e8302e61e0bdf3f47496c5610641a (diff)
net/mlx4_en: Support software timestamping
Kernel software timestamping requires that the driver calls skb_tx_timestamp just before passing the skb to the HW MAC layer. This patch adds this call. Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_tx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_tx.c b/drivers/net/ethernet/mellanox/mlx4/en_tx.c
index b0a2d2b96e43..4e6877a032a8 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_tx.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_tx.c
@@ -752,6 +752,8 @@ netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev)
752 if (bounce) 752 if (bounce)
753 tx_desc = mlx4_en_bounce_to_desc(priv, ring, index, desc_size); 753 tx_desc = mlx4_en_bounce_to_desc(priv, ring, index, desc_size);
754 754
755 skb_tx_timestamp(skb);
756
755 if (ring->bf_enabled && desc_size <= MAX_BF && !bounce && !vlan_tx_tag_present(skb)) { 757 if (ring->bf_enabled && desc_size <= MAX_BF && !bounce && !vlan_tx_tag_present(skb)) {
756 *(__be32 *) (&tx_desc->ctrl.vlan_tag) |= cpu_to_be32(ring->doorbell_qpn); 758 *(__be32 *) (&tx_desc->ctrl.vlan_tag) |= cpu_to_be32(ring->doorbell_qpn);
757 op_own |= htonl((bf_index & 0xffff) << 8); 759 op_own |= htonl((bf_index & 0xffff) << 8);