net/mlx5e: Fix xmit_more counter race issue
authorTariq Toukan <tariqt@mellanox.com>
Wed, 7 Sep 2016 16:07:57 +0000 (19:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Sep 2016 23:15:28 +0000 (16:15 -0700)
commit0dbf657c3993a269fa0cd7dabbb9c02741d4aefa
tree038b2f484391cdeb2f3f155663d1efa68152801e
parent76061f631c2ea4ab9c4d66f3a96ecc5737f5aaf7
net/mlx5e: Fix xmit_more counter race issue

Update the xmit_more counter before notifying the HW,
to prevent a possible use-after-free of the skb.

Fixes: c8cf78fe100b ("net/mlx5e: Add ethtool counter for TX xmit_more")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c