diff options
| author | Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> | 2015-04-28 14:31:40 -0600 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:09:42 -0700 |
| commit | e1f88edd76e19eee1bf0efb3b60a222e32944980 (patch) | |
| tree | f239d71bbd44a776276de54be0d5e72d326370df | |
| parent | 04be6f96ac4a26346f4bf70132a82b2547f14a50 (diff) | |
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>
[subashab@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
| -rw-r--r-- | net/core/dev.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
