36fbffa2e130673368e7c8079a2e3a990dd1e729
[openwrt/openwrt.git] /
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
5
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.
9
10 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
11 Signed-off-by: David S. Miller <davem@davemloft.net>
12 ---
13 drivers/net/ethernet/mscc/ocelot.c | 1 +
14 1 file changed, 1 insertion(+)
15
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 *
19
20 list_del(pos);
21 kfree(entry);
22 + break;
23 }
24
25 /* Next ts */