Skip to content

Commit

Permalink
sctp: clean up sctp_packet_transmit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xin Long authored and David S. Miller committed Nov 2, 2016
1 parent 9290182 commit e4ff952
Showing 1 changed file with 158 additions and 277 deletions.
Loading

0 comments on commit e4ff952

Please sign in to comment.