nfp: TX time stamp packets before HW doorbell is rung
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 23 Aug 2017 21:41:50 +0000 (14:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Aug 2017 05:40:49 +0000 (22:40 -0700)
commit46f1c52e66dbc0d7a99f7c2a3c9debb497fe7b7b
tree71d077de7e2b677bdffe612392cd612f42bfc4ad
parentee6c88bb754e3d363e568da78086adfedb692447
nfp: TX time stamp packets before HW doorbell is rung

TX completion may happen any time after HW queue was kicked.
We can't access the skb afterwards.  Move the time stamping
before ringing the doorbell.

Fixes: 4c3523623dc0 ("net: add driver for Netronome NFP4000/NFP6000 NIC VFs")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c