aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2011-08-16 02:29:02 -0400
committerDavid S. Miller <davem@davemloft.net>2011-08-17 23:22:03 -0400
commitb81693d9149c598302e8eb9c20cb20330d922c8e (patch)
tree450ac7ce3252d90d55c46c5a3c28dec8e2f2308c /net/core
parentafc4b13df143122f99a0eb10bfefb216c2806de0 (diff)
net: remove ndo_set_multicast_list callback
Remove no longer used operation. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c6
-rw-r--r--net/core/dev_addr_lists.c4
2 files changed, 4 insertions, 6 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 6eb03fdaf075..ead0366ee1e4 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4537,8 +4537,6 @@ void __dev_set_rx_mode(struct net_device *dev)
4537 4537
4538 if (ops->ndo_set_rx_mode) 4538 if (ops->ndo_set_rx_mode)
4539 ops->ndo_set_rx_mode(dev); 4539 ops->ndo_set_rx_mode(dev);
4540 else if (ops->ndo_set_multicast_list)
4541 ops->ndo_set_multicast_list(dev);
4542} 4540}
4543 4541
4544void dev_set_rx_mode(struct net_device *dev) 4542void dev_set_rx_mode(struct net_device *dev)
@@ -4888,7 +4886,7 @@ static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd)
4888 return -EOPNOTSUPP; 4886 return -EOPNOTSUPP;
4889 4887
4890 case SIOCADDMULTI: 4888 case SIOCADDMULTI:
4891 if ((!ops->ndo_set_multicast_list && !ops->ndo_set_rx_mode) || 4889 if (!ops->ndo_set_rx_mode ||
4892 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) 4890 ifr->ifr_hwaddr.sa_family != AF_UNSPEC)
4893 return -EINVAL; 4891 return -EINVAL;
4894 if (!netif_device_present(dev)) 4892 if (!netif_device_present(dev))
@@ -4896,7 +4894,7 @@ static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd)
4896 return dev_mc_add_global(dev, ifr->ifr_hwaddr.sa_data); 4894 return dev_mc_add_global(dev, ifr->ifr_hwaddr.sa_data);
4897 4895
4898 case SIOCDELMULTI: 4896 case SIOCDELMULTI:
4899 if ((!ops->ndo_set_multicast_list && !ops->ndo_set_rx_mode) || 4897 if (!ops->ndo_set_rx_mode ||
4900 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) 4898 ifr->ifr_hwaddr.sa_family != AF_UNSPEC)
4901 return -EINVAL; 4899 return -EINVAL;
4902 if (!netif_device_present(dev)) 4900 if (!netif_device_present(dev))
diff --git a/net/core/dev_addr_lists.c b/net/core/dev_addr_lists.c
index e2e66939ed00..283d1b863876 100644
--- a/net/core/dev_addr_lists.c
+++ b/net/core/dev_addr_lists.c
@@ -591,8 +591,8 @@ EXPORT_SYMBOL(dev_mc_del_global);
591 * addresses that have no users left. The source device must be 591 * addresses that have no users left. The source device must be
592 * locked by netif_tx_lock_bh. 592 * locked by netif_tx_lock_bh.
593 * 593 *
594 * This function is intended to be called from the dev->set_multicast_list 594 * This function is intended to be called from the ndo_set_rx_mode
595 * or dev->set_rx_mode function of layered software devices. 595 * function of layered software devices.
596 */ 596 */
597int dev_mc_sync(struct net_device *to, struct net_device *from) 597int dev_mc_sync(struct net_device *to, struct net_device *from)
598{ 598{