i40e: never generate both software and hardware timestamps
authorJakub Kicinski <kubakici@wp.pl>
Sat, 15 Mar 2014 14:55:37 +0000 (14:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 16 Jul 2014 19:07:40 +0000 (12:07 -0700)
commit259afec7c34bbaa0236edd7e6ad811c4dce2fb1b
treef4ad7c2255087b39131884440dfadd6bc422788d
parent1f224ad2f760288dcc58b26546892a6b200b2af2
i40e: never generate both software and hardware timestamps

skb_tx_timestamp() does not report software time stamp
if SKBTX_IN_PROGRESS is set. According to timestamping.txt
software time stamps are a fallback and should not be
generated if hardware time stamp is provided.

Move call to skb_tx_timestamp() after setting
SKBTX_IN_PROGRESS.

Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c