From e1f88edd76e19eee1bf0efb3b60a222e32944980 Mon Sep 17 00:00:00 2001 From: Subash Abhinov Kasiviswanathan Date: Tue, 28 Apr 2015 14:31:40 -0600 Subject: [PATCH] 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: Subash Abhinov Kasiviswanathan [subashab@codeaurora.org: resolve trivial merge conflicts] Signed-off-by: Subash Abhinov Kasiviswanathan --- net/core/dev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index 524e7da30471..5e213494bb0f 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3529,6 +3529,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);