]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: implement missing ndo_uninit()
authorIdo Schimmel <idosch@mellanox.com>
Mon, 10 Apr 2017 11:59:27 +0000 (14:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Apr 2017 02:22:44 +0000 (22:22 -0400)
commit4d12f4d52f83c0c74161d58e4a6a223466dbb0bd
tree60ea2b07bf9c997f66f6a3931676c4664ca1ea99
parentd86c8d078acbe19ddc05d39fb622f84b64631b0f
bridge: implement missing ndo_uninit()

While the bridge driver implements an ndo_init(), it was missing a
symmetric ndo_uninit(), causing the different de-initialization
operations to be scattered around its dellink() and destructor().

Implement a symmetric ndo_uninit() and remove the overlapping operations
from its dellink() and destructor().

This is a prerequisite for the next patch, as it allows us to have a
proper cleanup upon changelink() failure during the bridge's newlink().

Fixes: e6fac185998f ("bridge: netlink: call br_changelink() during br_dev_newlink()")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c
net/bridge/br_if.c
net/bridge/br_multicast.c
net/bridge/br_private.h