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>
This commit is contained in:
parent
04be6f96ac
commit
e1f88edd76
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue