net/mlx4_en: fix spurious timestamping callbacks
authorEric Dumazet <edumazet@google.com>
Sat, 23 Apr 2016 18:35:46 +0000 (11:35 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 12 Jul 2016 12:48:09 +0000 (08:48 -0400)
commit9a6ca41f366ea39cac1f175ebda8f209c5271d57
treeabecfcaa8fc6a17489face7f11fa5f62bd4163bd
parentd06f8ffbe758cb0e4ff7ba8e311ef496bcaf9532
net/mlx4_en: fix spurious timestamping callbacks

[ Upstream commit fc96256c906362e845d848d0f6a6354450059e81 ]

When multiple skb are TX-completed in a row, we might incorrectly keep
a timestamp of a prior skb and cause extra work.

Fixes: ec693d47010e8 ("net/mlx4_en: Add HW timestamping (TS) support")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/ethernet/mellanox/mlx4/en_tx.c