aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2012-05-03 21:55:23 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-05-10 02:13:26 -0400
commitaa7bd467e3db3ddac503d0126a0c021871ca7d88 (patch)
tree5338f8ae1ca7fa9280c6d9f7cc0241bbaced3c6c
parente3aac889c78ab87de40a90cbb5fc0ff56394f47c (diff)
ixgbe: support software timestamping
Kernel software timestamping requires that the driver calls skb_tx_timestamp just before passing the skb to the MAC, in order to provide the best software timestamps. This patch adds this call for that support. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index 1ad6e2aa1dc8..05f66a24da2a 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -6298,6 +6298,8 @@ netdev_tx_t ixgbe_xmit_frame_ring(struct sk_buff *skb,
6298 tx_flags |= IXGBE_TX_FLAGS_SW_VLAN; 6298 tx_flags |= IXGBE_TX_FLAGS_SW_VLAN;
6299 } 6299 }
6300 6300
6301 skb_tx_timestamp(skb);
6302
6301#ifdef CONFIG_IXGBE_PTP 6303#ifdef CONFIG_IXGBE_PTP
6302 if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP)) { 6304 if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP)) {
6303 skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS; 6305 skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;