1
0
Fork 0

net: mscc: ocelot: avoid incorrect consuming in skbs list

Break the matching loop when find the matching skb for TX timestamp.
This is to avoid consuming more skbs incorrectly. The timestamp ID
is from 0 to 3 while the FIFO could support 128 timestamps at most.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
5.4-rM2-2.2.x-imx-squashed
Yangbo Lu 2019-11-27 15:27:56 +08:00 committed by Dong Aisheng
parent e0c76105a0
commit 8dcd7db3b0
1 changed files with 1 additions and 0 deletions

View File

@ -736,6 +736,7 @@ void ocelot_get_txtstamp(struct ocelot *ocelot)
list_del(pos);
kfree(entry);
break;
}
/* Next ts */