]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: re-use sctp_transport_pmtu in sctp_transport_route
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Thu, 26 Apr 2018 19:58:59 +0000 (16:58 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:35:23 +0000 (14:35 -0400)
commit54eedb78e60cd215dfd9ff725f8526253e7518d8
tree9985910ee8df0b0e20cefbf64aa9881132f202ab
parent62acf873204a5e277d5ec1902b6b02d685910311
sctp: re-use sctp_transport_pmtu in sctp_transport_route

sctp_transport_route currently is very similar to sctp_transport_pmtu plus
a few other bits.

This patch reuses sctp_transport_pmtu in sctp_transport_route and removes
the duplicated code.

Also, as all calls to sctp_transport_route were forcing the dst release
before calling it, let's just include such release too.

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