]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: cleanup netlink send of tunnel address information
authorTom Parkin <tparkin@katalix.com>
Thu, 23 Jul 2020 11:29:53 +0000 (12:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 18:54:40 +0000 (11:54 -0700)
commit0fd6599adcfc4497ed1dbf955aaae2628065238f
tree1d9f7847fd13a97838af2c58bb5452cf28991a96
parentb86247d1b3902bf9a8a923c90a85451fe13f062d
l2tp: cleanup netlink send of tunnel address information

l2tp_nl_tunnel_send has conditionally compiled code to support AF_INET6,
which makes the code difficult to follow and triggers checkpatch
warnings.

Split the code out into functions to handle the AF_INET v.s. AF_INET6
cases, which both improves readability and resolves the checkpatch
warnings.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_netlink.c