ipv6: don't use inetpeer to store metrics for routes.
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 5 Sep 2011 21:34:30 +0000 (21:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Sep 2011 04:57:26 +0000 (00:57 -0400)
commit8e2ec639173f325977818c45011ee176ef2b11f6
tree2b194fa7556bcde37cdc4d28042a5bdf86d0f2ff
parent34b8686d278f00fb16234e74be44c253d6d6b676
ipv6: don't use inetpeer to store metrics for routes.

Current IPv6 implementation uses inetpeer to store metrics for
routes. The problem of inetpeer is that it doesn't take subnet
prefix length in to consideration. If two routes have the same
address but different prefix length, they share same inetpeer.
So changing metrics of one route also affects the other. The
fix is to allocate separate metrics storage for each route.

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c