Xin Long e4ff952a7e sctp: clean up sctp_packet_transmit
After adding sctp gso, sctp_packet_transmit is a quite big function now.

This patch is to extract the codes for packing packet to sctp_packet_pack
from sctp_packet_transmit, and add some comments, simplify the err path by
freeing auth chunk when freeing packet chunk_list in out path and freeing
head skb early if it fails to pack packet.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-02 15:03:13 -04:00
..
2013-12-06 12:37:56 -05:00
2016-09-22 03:13:26 -04:00
2016-04-15 17:29:36 -04:00
2016-06-03 19:37:21 -04:00
2016-07-16 22:02:09 -07:00
2016-11-02 15:03:13 -04:00
2016-10-23 17:43:15 -04:00
2013-12-06 12:37:56 -05:00
2013-12-06 12:37:56 -05:00
2016-09-19 01:34:01 -04:00