]> 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)
commitf6549bd37b927655c6fecad88428a731cd8a4a34
treeb594d7e5900e002fb017db83a2a0c74c953d2c52
parent237a6a2e318c1ed7429e72f2640054bdda91646f
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