]> 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)
commit1943c1ddef80f4461c872dea17bd12d627e8fe52
treefeac6ec40f28f12ea7bfee8cca2df719f1f22d50
parent8ec13b7e60a75d3ba4966f1c6d66d3ef371254f8
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