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

Commit b8a7d12f authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan Committed by Matt Wagantall
Browse files

net: Warn for cloned packets in ingress path



Cloned packets arriving in ingress path can cause issues with GRO
since the skb shared info is garbled.

Warn once if a cloned packet is queued up to the network stack.

CRs-Fixed: 823275
Change-Id: I049f04f39b3d1338838560e08c93a973de427fc0
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 57f13be5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3337,6 +3337,9 @@ static int netif_rx_internal(struct sk_buff *skb)
{
	int ret;

	WARN_ONCE(skb_cloned(skb), "Cloned packet from dev %s\n",
		  skb->dev->name);

	net_timestamp_check(netdev_tstamp_prequeue, skb);

	trace_netif_rx(skb);