• Kirill Tkhai's avatar
    net: Convert ipvlan_net_ops · 68eabe8b
    Kirill Tkhai authored
    These pernet_operations unregister ipvlan net hooks.
    nf_unregister_net_hooks() removes hooks one-by-one,
    and then frees the memory via rcu. This looks similar
    to that happens, when a new hooks is added: allocation
    of bigger memory region, copy of old content, and rcu
    freeing the old memory. So, all of net code should be
    well with this behavior. Also at the time of hook
    unregistering, there are no packets, and foreign net
    pernet_operations are not interested in others hooks.
    So, we mark them as async.
    Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    68eabe8b
ipvlan_main.c 27.6 KB