From: Xin Long <lucien....@gmail.com> Date: Sat, 1 Apr 2017 17:15:59 +0800
> This patch is to move sctp_transport_dst_check into sctp_packet_config > from sctp_packet_transmit and add pathmtu check in sctp_packet_config. > > With this fix, sctp can update dst or pathmtu before appending chunks, > which can void dropping packets in sctp_packet_transmit when dst is > obsolete or dst's mtu is changed. > > This patch is also to improve some other codes in sctp_packet_config. > It updates packet max_size with gso_max_size, checks for dst and > pathmtu, and appends ecne chunk only when packet is empty and asoc > is not NULL. > > It makes sctp flush work better, as we only need to set up them once > for one flush schedule. It's also safe, since asoc is NULL only when > the packet is created by sctp_ootb_pkt_new in which it just gets the > new dst, no need to do more things for it other than set packet with > transport's pathmtu. > > Signed-off-by: Xin Long <lucien....@gmail.com> Applied, thanks Xin.