]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx4_en: fix spurious timestamping callbacks
authorEric Dumazet <edumazet@google.com>
Sat, 23 Apr 2016 18:35:46 +0000 (11:35 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:22:03 +0000 (17:22 -0500)
commit11319cc5025e5ebb395f51ea5e5c70303ddbd763
tree7590564290a9354822bbd22250b0fe770e031f9f
parente85c5b78339eb1713b4080e7e58a63f20ef4cdfb
net/mlx4_en: fix spurious timestamping callbacks

Orabug: 25308079

[ 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>
(cherry picked from commit eeee948a652e9ee02643bf031cd613339ccc6864)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/mellanox/mlx4/en_tx.c