net: use skb_clone to avoid alloc_pages failure.
authorMartin Zhang <martinbj2008@gmail.com>
Tue, 17 Nov 2015 12:49:30 +0000 (20:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Nov 2015 20:25:44 +0000 (15:25 -0500)
commit19125c1a4fd873421698876f34a06dbe18d25f17
treecc8f92877c45f9876a6d602de42d094805bcc478
parent90836b67e2171f48be696bdd3c4006d1e6f031fc
net: use skb_clone to avoid alloc_pages failure.

1. new skb only need dst and ip address(v4 or v6).
2. skb_copy may need high order pages, which is very rare on long running server.

Signed-off-by: Junwei Zhang <linggao.zjw@alibaba-inc.com>
Signed-off-by: Martin Zhang <martinbj2008@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c