]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Add helper inet_csk_update_pmtu().
authorDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2012 10:28:06 +0000 (03:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2012 10:28:06 +0000 (03:28 -0700)
commitf15f5c56cb4f5298a8b7b0c72fe0249065351119
treefeb310b5075d3a4f118fcdde7bc44970b1c3f07e
parent78930e9d17f1b586910377ff583cc0ea75e87f4b
ipv4: Add helper inet_csk_update_pmtu().

This abstracts away the call to dst_ops->update_pmtu() so that we can
transparently handle the fact that, in the future, the dst itself can
be invalidated by the PMTU update (when we have non-host routes cached
in sockets).

So we try to rebuild the socket cached route after the method
invocation if necessary.

This isn't used by SCTP because it needs to cache dsts per-transport,
and thus will need it's own local version of this helper.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_connection_sock.h
net/dccp/ipv4.c
net/ipv4/inet_connection_sock.c
net/ipv4/tcp_ipv4.c