linux/drivers/net/ethernet/intel
Jesus Sanchez-Palencia a798fbac33 igb: Use an advanced ctx descriptor for launchtime
On i210, Launchtime (TxTime) requires the usage of an "Advanced
Transmit Context Descriptor" for retrieving the timestamp of a packet.

The igb driver correctly builds such descriptor on the segmentation
flow (i.e. igb_tso()) or on the checksum one (i.e. igb_tx_csum()), but the
feature is broken for AF_PACKET if the IGB_TX_FLAGS_VLAN is not set,
which happens due to an early return on igb_tx_csum().

This flag is only set by the kernel when a VLAN interface is used,
thus we can't just rely on it. Here we are fixing this issue by checking
if launchtime is enabled for the current tx_ring before performing the
early return.

Signed-off-by: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-08-24 08:52:35 -07:00
..
e1000 e1000: ensure to free old tx/rx rings in set_ringparam() 2018-08-24 08:52:35 -07:00
e1000e treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
fm10k treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
i40e i40e_txrx: mark expected switch fall-through 2018-08-07 17:54:20 -07:00
i40evf i40e: Add AQ command for rearrange NVM structure 2018-08-07 12:20:45 -07:00
ice ice: Trivial formatting fixes 2018-08-23 11:34:26 -07:00
igb igb: Use an advanced ctx descriptor for launchtime 2018-08-24 08:52:35 -07:00
igbvf igbvf: netdev: Mark expected switch fall-through 2018-08-07 17:54:20 -07:00
ixgb ixgb: use dma_zalloc_coherent instead of allocator/memset 2018-08-24 08:52:35 -07:00
ixgbe net_sched: remove list_head from tc_action 2018-08-21 12:45:44 -07:00
ixgbevf xdp: don't make drivers report attachment mode 2018-07-13 20:26:35 +02:00
e100.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
Kconfig docs: Fix more broken references 2018-06-15 18:11:26 -03:00
Makefile ice: Add basic driver framework for Intel(R) E800 Series 2018-03-26 08:28:02 -07:00