]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: extract sctp_v6_err_handle function from sctp_v6_err
authorXin Long <lucien.xin@gmail.com>
Tue, 22 Jun 2021 18:04:58 +0000 (14:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 18:28:52 +0000 (11:28 -0700)
commit7631fa8bd35eb8bd9c4edcc8ff6524cd07f45ba1
treeb594d7e5900e002fb017db83a2a0c74c953d2c52
parentada478b38af7ff59276c0b519275391bd0309b15
sctp: extract sctp_v6_err_handle function from sctp_v6_err

This patch is to extract sctp_v6_err_handle() from sctp_v6_err() to
only handle the icmp err after the sock lookup, and it also makes
the code clearer.

sctp_v6_err_handle() will be used in sctp over udp's err handling
in the following patch.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/ipv6.c