]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Calling ->cow_metrics() now is a bug.
authorDavid S. Miller <davem@davemloft.net>
Tue, 10 Jul 2012 14:08:18 +0000 (07:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jul 2012 05:40:17 +0000 (22:40 -0700)
commit32924d0fc54e7a216058dd865ac85125948378c1
treefeac6ec40f28f12ea7bfee8cca2df719f1f22d50
parent3b4aa50a7fb2dbb9d83e733925272f679fa5683d
ipv4: Calling ->cow_metrics() now is a bug.

Nothing every writes to ipv4 metrics any longer.

PMTU is stored in rt->rt_pmtu.

Dynamic TCP metrics are stored in a special TCP metrics cache,
completely outside of the routes.

Therefore ->cow_metrics() can simply nothing more than a WARN_ON
trigger so we can catch anyone who tries to add new writes to
ipv4 route metrics.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c