Skip to contentSkip to conversation

bridge: remove br_dev_set_multicast_list

PATCH In review [email protected] 2 participants 2 messages Apr 1, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bridge: remove br_dev_set_multicast_list

From: Li RongQing <[email protected]>

remove br_dev_set_multicast_list which does nothing

---
 net/bridge/br_device.c | 5 -----
 1 file changed, 5 deletions(-)
net/bridge/br_device.c +0 -5
index 2c8095a..75c7e00 100644
@@ -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
maintainer
#1 lore raw

From: [email protected]
Date: Fri, 1 Apr 2016 16:16:10 +0800

Quoted 5 lines

From: Li RongQing <[email protected]>

remove br_dev_set_multicast_list which does nothing

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.