Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db176edc authored by Sergey Matyukevich's avatar Sergey Matyukevich Committed by David S. Miller
Browse files

ucc_geth: fix for RX skb buffers recycling



This patch implements a proper modification of RX skb buffers before
recycling. Adjusting only skb->data is not enough because after that
skb->tail and skb->len become incorrect.

Signed-off-by: default avatarSergey Matyukevich <geomatsi@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b1d920f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3215,6 +3215,8 @@ static int ucc_geth_rx(struct ucc_geth_private *ugeth, u8 rxQ, int rx_work_limit
					   __func__, __LINE__, (u32) skb);
			if (skb) {
				skb->data = skb->head + NET_SKB_PAD;
				skb->len = 0;
				skb_reset_tail_pointer(skb);
				__skb_queue_head(&ugeth->rx_recycle, skb);
			}