projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
710ab6c
)
ipv4: Kill dst_copy_metrics() call from ipv4_blackhole_route().
author
David S. Miller
<davem@davemloft.net>
Tue, 10 Jul 2012 14:03:43 +0000
(07:03 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 11 Jul 2012 05:40:16 +0000
(22:40 -0700)
Blackhole routes have a COW metrics operation that returns NULL
always, therefore this dst_copy_metrics() call did absolutely
nothing.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/route.c
b/net/ipv4/route.c
index 1678b575165b0cb199401558cab45321f17aafa5..a967df54a4236cf212a0e439a7fecb33df5f50d2 100644
(file)
--- a/
net/ipv4/route.c
+++ b/
net/ipv4/route.c
@@
-2668,7
+2668,6
@@
struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_or
new->__use = 1;
new->input = dst_discard;
new->output = dst_discard;
- dst_copy_metrics(new, &ort->dst);
new->dev = ort->dst.dev;
if (new->dev)