]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: call sk_setup_caps in sctp_packet_transmit instead
authorXin Long <lucien.xin@gmail.com>
Thu, 29 Oct 2020 07:05:05 +0000 (15:05 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Oct 2020 22:24:25 +0000 (15:24 -0700)
commitb1012298f6b986426b77543d2d272565e3dd2233
treeca32b6424a9444acfb2ef27e4b78b3bf6b8f7647
parent9605dd976146b8af76133aa80f15dabfcb44710f
sctp: call sk_setup_caps in sctp_packet_transmit instead

sk_setup_caps() was originally called in Commit fe68150eda3c ("sctp:
Add GSO support"), as:

  "We have to refresh this in case we are xmiting to more than one
   transport at a time"

This actually happens in the loop of sctp_outq_flush_transports(),
and it shouldn't be tied to gso, so move it out of gso part and
before sctp_packet_pack().

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sctp/output.c