diff options
| author | Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> | 2016-04-21 21:44:00 -0600 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-05-25 14:22:16 -0700 |
| commit | b97da4469bcf76f330d5b2b691ade01c4bda110a (patch) | |
| tree | 2f208ddfd528d42b74fad911a8f98b34c391cb35 /net | |
| parent | 6ddfbd7d4fae5687eb1b7fbb99e733f2b7021f7f (diff) | |
net: Warn for cloned packets in ingress path on SMP systems only
GRO is currently enabled only on SMP systems so move the check for
cloned packets from commit b8a7d12f33ecba4 ("net: Warn for cloned
packets in ingress path") within CONFIG_RPS to prevent printing an
unnecessary warning on single core systems.
CRs-Fixed: 1006937
Change-Id: Ib8cb979136def6696861a7835bcde763dabe874f
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Diffstat (limited to 'net')
| -rw-r--r-- | net/core/dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index b9b64e517511..51b156ed09d7 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3535,13 +3535,13 @@ 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); #ifdef CONFIG_RPS + WARN_ONCE(skb_cloned(skb), "Cloned packet from dev %s\n", + skb->dev->name); + if (static_key_false(&rps_needed)) { struct rps_dev_flow voidflow, *rflow = &voidflow; int cpu; |
