bridge: remove br_dev_set_multicast_list
Subsystems (3)
PATCH 1/1 bridge: remove br_dev_set_multicast_list
From: Li RongQing <[email protected]>
remove br_dev_set_multicast_list which does nothing
Signed-off-by Li RongQing <[email protected]>
--- net/bridge/br_device.c | 5 ----- 1 file changed, 5 deletions(-)
net/bridge/br_device.c +0 -5
@@ -123,10 +123,6 @@ static int br_dev_open(struct net_device *dev)return 0 ; } -static void br_dev_set_multicast_list (struct net_device *dev) -{ -} -static void br_dev_change_rx_flags (struct net_device *dev,int change) {if (change &IFF_PROMISC )
@@ -329,7 +325,6 @@ static const struct net_device_ops br_netdev_ops = { .ndo_start_xmit = br_dev_xmit, .ndo_get_stats64 = br_get_stats64, .ndo_set_mac_address = br_set_mac_address, - .ndo_set_rx_mode = br_dev_set_multicast_list, .ndo_change_rx_flags = br_dev_change_rx_flags, .ndo_change_mtu = br_change_mtu, .ndo_do_ioctl = br_dev_ioctl,
Signature · 1 line
2.1.4
David Miller
maintainerFrom: [email protected]
Date: Fri, 1 Apr 2016 16:16:10 +0800
Quoted 5 lines
From: Li RongQing <[email protected]>
remove
br_dev_set_multicast_listwhich does nothingSigned-off-by Li RongQing <[email protected]>
This will break SIOCADDMULTI et al. on the bridge, see net/core/dev.c which checks whether this ndo OP is NULL or not.
Please sufficiently grep the source tree on how an ndo operation is used before making changes like this.
Thanks.