]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: get sock from transport in sctp_transport_update_pmtu
authorXin Long <lucien.xin@gmail.com>
Tue, 4 Apr 2017 05:39:55 +0000 (13:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Apr 2017 14:20:06 +0000 (07:20 -0700)
commit77627805d0b4dd79f3ef3f10f07c633e3f317f0d
tree363997b3262abfcec1b85cc1652fca6fbfb2eda7
parent383053bc6c5bae0d1365736b105a6372ccd2fa6c
sctp: get sock from transport in sctp_transport_update_pmtu

This patch is almost to revert commit 33c9c084a6f2 ("sctp: Adjust PMTU
updates to accomodate route invalidation."). As t->asoc can't be NULL
in sctp_transport_update_pmtu, it could get sk from asoc, and no need
to pass sk into that function.

It is also to remove some duplicated codes from that function.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sctp.h
include/net/sctp/structs.h
net/sctp/associola.c
net/sctp/input.c
net/sctp/output.c
net/sctp/socket.c
net/sctp/transport.c