rds: tcp: remove register_netdevice_notifier infrastructure.
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Mon, 19 Mar 2018 13:52:48 +0000 (06:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 15:21:45 +0000 (11:21 -0400)
commitbdf5bd7f21323493dbe5f2c723dc33f2fbb0241a
tree12633ea0651bab430f07624ec38878c843e9f46c
parent692ec06d7c92af8ca841a6367648b9b3045344fd
rds: tcp: remove register_netdevice_notifier infrastructure.

The netns deletion path does not need to wait for all net_devices
to be unregistered before dismantling rds_tcp state for the netns
(we are able to dismantle this state on module unload even when
all net_devices are active so there is no dependency here).

This patch removes code related to netdevice notifiers and
refactors all the code needed to dismantle rds_tcp state
into a ->exit callback for the pernet_operations used with
register_pernet_device().

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp.c