]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: clean up sctp_packet_transmit
authorXin Long <lucien.xin@gmail.com>
Mon, 31 Oct 2016 16:49:41 +0000 (00:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Nov 2016 19:03:13 +0000 (15:03 -0400)
commit64388966415da3c6a3e511ad462c4967324f26e6
tree89b6b808602a3c6942321a814d6292947a2ddae1
parent71e4e2eae07138c86b77a5418562a78df1643225
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>
net/sctp/output.c