net/ixgbe: fix TDH register write
authorYanglong Wu <yanglong.wu@intel.com>
Tue, 20 Nov 2018 05:59:21 +0000 (13:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 22 Nov 2018 12:58:23 +0000 (13:58 +0100)
commitff30a020bb400f04bf64a91416993862f45f9ada
tree488990c8214204b6a3c8e85a0a81622e9e39e8f8
parent6bb0f8917315d186b84588a9f5d5d3985f8d46b9
net/ixgbe: fix TDH register write

The only time that software should write to the TDH register
is after a reset (hardware reset or CTRL.RST) and
before enabling the transmit function (TXDCTL.ENABLE).
If software were to write to this register while the transmit
function was enabled, the on-chip descriptor buffers might
be invalidated and the hardware could become confused.

Fixes: 029fd06d40fa ("ixgbe: queue start and stop")
Cc: stable@dpdk.org
Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ixgbe/ixgbe_rxtx.c