]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: move transport pathmtu calc away of sctp_assoc_add_peer
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Thu, 26 Apr 2018 19:58:51 +0000 (16:58 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:35:22 +0000 (14:35 -0400)
commit81aca8cebd08acfdb83e85d6c68af29237e74f51
tree073b2244e2fc44c74187656c97b40ee68486a591
parentbf07297d4f8f2864bd285d7d8ede7c2b6d6fca34
sctp: move transport pathmtu calc away of sctp_assoc_add_peer

There was only one case that sctp_assoc_add_peer couldn't handle, which
is when SPP_PMTUD_DISABLE is set and pathmtu not initialized.
So add this situation to sctp_transport_route and reuse what was
already in there.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/associola.c
net/sctp/transport.c