From: Russell King Date: Sun, 13 Sep 2020 07:05:52 +0000 (+0100) Subject: net: mvpp2: set SKBTX_IN_PROGRESS X-Git-Tag: io_uring-5.10-2020-10-20~32^2~285 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=068b62148255c796516bdd2bb2435c49ac33aa18;p=linux-block.git net: mvpp2: set SKBTX_IN_PROGRESS Richard Cochran points out that SKBTX_IN_PROGRESS should be set when the skbuff is queued for timestamping. Add this. Signed-off-by: Russell King Acked-by: Richard Cochran Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c index 87b1c9cfdc77..d11d33cf3443 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -3701,6 +3701,8 @@ static bool mvpp2_tx_hw_tstamp(struct mvpp2_port *port, if (!hdr) return false; + skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS; + ptpdesc = MVPP22_PTP_MACTIMESTAMPINGEN | MVPP22_PTP_ACTION_CAPTURE; queue = &port->tx_hwtstamp_queue[0];