* [PATCH] bridge: remove br_dev_set_multicast_list
@ 2016-04-01 8:16 roy.qing.li
2016-04-01 18:43 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: roy.qing.li @ 2016-04-01 8:16 UTC (permalink / raw)
To: netdev
From: Li RongQing <roy.qing.li@gmail.com>
remove br_dev_set_multicast_list which does nothing
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
---
net/bridge/br_device.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c
index 2c8095a..75c7e00 100644
--- a/net/bridge/br_device.c
+++ b/net/bridge/br_device.c
@@ -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,
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bridge: remove br_dev_set_multicast_list
2016-04-01 8:16 [PATCH] bridge: remove br_dev_set_multicast_list roy.qing.li
@ 2016-04-01 18:43 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-04-01 18:43 UTC (permalink / raw)
To: roy.qing.li; +Cc: netdev
From: roy.qing.li@gmail.com
Date: Fri, 1 Apr 2016 16:16:10 +0800
> From: Li RongQing <roy.qing.li@gmail.com>
>
> remove br_dev_set_multicast_list which does nothing
>
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-01 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-01 8:16 [PATCH] bridge: remove br_dev_set_multicast_list roy.qing.li
2016-04-01 18:43 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).