Re: [PATCH net] sctp: get sock from transport in sctp_transport_update_pmtu

2017-04-05 Thread David Miller
From: Xin Long Date: Tue, 4 Apr 2017 13:39:55 +0800 > This patch is almost to revert commit 02f3d4ce9e81 ("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 func

Re: [PATCH net] sctp: get sock from transport in sctp_transport_update_pmtu

2017-04-04 Thread Marcelo Ricardo Leitner
On Tue, Apr 04, 2017 at 01:39:55PM +0800, Xin Long wrote: > This patch is almost to revert commit 02f3d4ce9e81 ("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 f

[PATCH net] sctp: get sock from transport in sctp_transport_update_pmtu

2017-04-03 Thread Xin Long
This patch is almost to revert commit 02f3d4ce9e81 ("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 fun