]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mscc-skb-lists'
authorDavid S. Miller <davem@davemloft.net>
Wed, 27 Nov 2019 18:53:37 +0000 (10:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Nov 2019 18:53:37 +0000 (10:53 -0800)
commit119d78cb806ea425dd5608d795213c056c3aa06e
treeaba3f3692d0cc33761d3db91cabc9d09d5b28911
parentd228793249f12491b5c40f19f53a475303da4a4c
parent65f67a029faf165f49711c3c1aa893caed74a7d6
Merge branch 'mscc-skb-lists'

Yangbo Lu says:

====================
net: mscc: ocelot: fix potential issues accessing skbs list

Fix two prtential issues accessing skbs list.
- Break the matching loop when find the matching skb to avoid
  consuming more skbs incorrectly. The timestamp ID is only
  from 0 to 3 while the FIFO supports 128 timestamps at most.
- Convert to use skb queue instead of the list of skbs to provide
  protect with lock.

Changes for v2:
- Split into two patches.
- Converted to use skb queue.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>