提交 fc62c094 编写于 作者: Y Yangbo Lu 提交者: David S. Miller

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: NYangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a95069ec
......@@ -736,6 +736,7 @@ void ocelot_get_txtstamp(struct ocelot *ocelot)
list_del(pos);
kfree(entry);
break;
}
/* Next ts */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册