]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: factor out sctp_outq_select_transport
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Mon, 14 May 2018 17:34:37 +0000 (14:34 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 May 2018 02:57:14 +0000 (22:57 -0400)
commit9c731dd451696ff48b947069f92b743bff8804ec
tree9c929ba54bb692bfa50fc7fd704251c12e1eccac
parentacbb7f385fbb2ac56f328e286cbaf21e28baf45f
sctp: factor out sctp_outq_select_transport

We had two spots doing such complex operation and they were very close to
each other, a bit more tailored to here or there.

This patch unifies these under the same function,
sctp_outq_select_transport, which knows how to handle control chunks and
original transmissions (but not retransmissions).

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/outqueue.c