net: bridge: move bridge ioctls out of .ndo_do_ioctl
authorArnd Bergmann <arnd@arndb.de>
Tue, 27 Jul 2021 13:45:16 +0000 (15:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 19:11:45 +0000 (20:11 +0100)
commitad2f99aedf8fa77f3ae647153284fa63c43d3055
tree555d6a10cc82eb3910c56a05b1b2af2fc0588b07
parent88fc023f7de22922c6c61e2f3d4c54befb8b3549
net: bridge: move bridge ioctls out of .ndo_do_ioctl

Working towards obsoleting the .ndo_do_ioctl operation entirely,
stop passing the SIOCBRADDIF/SIOCBRDELIF device ioctl commands
into this callback.

My first attempt was to add another ndo_siocbr() callback, but
as there is only a single driver that takes these commands and
there is already a hook mechanism to call directly into this
driver, extend this hook instead, and use it for both the
deviceless and the device specific ioctl commands.

Cc: Roopa Prabhu <roopa@nvidia.com>
Cc: Nikolay Aleksandrov <nikolay@nvidia.com>
Cc: bridge@lists.linux-foundation.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_bridge.h
net/bridge/br.c
net/bridge/br_device.c
net/bridge/br_ioctl.c
net/bridge/br_private.h
net/core/dev_ioctl.c
net/socket.c