]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit14b20c4f438905b2fb85d2ee6fe9b7e30358d561
treed89b7949c6c4a1615d4387caa436e015b518f8d3
parent7a519986465f52efec81b9f6d07411f6f9fc7377
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