1 From e6208c23045ece890eebfe0564f73ccc52603867 Mon Sep 17 00:00:00 2001
2 From: Yangbo Lu <yangbo.lu@nxp.com>
3 Date: Wed, 27 Nov 2019 15:27:56 +0800
4 Subject: [PATCH] net: mscc: ocelot: avoid incorrect consuming in skbs list
6 Break the matching loop when find the matching skb for TX timestamp.
7 This is to avoid consuming more skbs incorrectly. The timestamp ID
8 is from 0 to 3 while the FIFO could support 128 timestamps at most.
10 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
11 Signed-off-by: David S. Miller <davem@davemloft.net>
13 drivers/net/ethernet/mscc/ocelot.c | 1 +
14 1 file changed, 1 insertion(+)
16 --- a/drivers/net/ethernet/mscc/ocelot.c
17 +++ b/drivers/net/ethernet/mscc/ocelot.c
18 @@ -736,6 +736,7 @@ void ocelot_get_txtstamp(struct ocelot *