OSDN Git Service

net: mscc: ocelot: avoid incorrect consuming in skbs list
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 27 Nov 2019 07:27:56 +0000 (15:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Nov 2019 18:53:37 +0000 (10:53 -0800)
commitfc62c0948986b7aa6b2871a450a4469e35c5f9bc
treed89b7949c6c4a1615d4387caa436e015b518f8d3
parenta95069ecb7092d03b2ea1c39ee04514fe9627540
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>
drivers/net/ethernet/mscc/ocelot.c