]> git.baikalelectronics.ru Git - kernel.git/commit
net: Convert fib6_net_ops, ipv6_addr_label_ops and ip6_segments_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 19 Feb 2018 08:50:28 +0000 (11:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Feb 2018 19:19:11 +0000 (14:19 -0500)
commit670f9d1605652e3ec60292c8a5a0e5edc48e3b6c
treef47cd599f28dac4c5b7f05b265f66537121a932b
parent6666e284ac75c842fd5d9e7524429b50ae0f4c0a
net: Convert fib6_net_ops, ipv6_addr_label_ops and ip6_segments_ops

These pernet_operations register and unregister tables
and lists for packets forwarding. All of the entities
are per-net. Init methods makes simple initializations,
and since net is not visible for foreigners at the time
it is working, it can't race with anything. Exit method
is executed when there are only local devices, and there
mustn't be packets in-flight. Also, it looks like no one
pernet_operations want to send ipv6 packets to foreign
net. The same reasons are for ipv6_addr_label_ops and
ip6_segments_ops. So, we are able to mark all them as
async.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrlabel.c
net/ipv6/ip6_fib.c
net/ipv6/seg6.c