net: convert multicast list to list_head
Converts the list and the core manipulating with it to be the same as uc_list. +uses two functions for adding/removing mc address (normal and "global" variant) instead of a function parameter. +removes dev_mcast.c completely. +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for manipulation with lists on a sandbox (used in bonding and 80211 drivers) Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a748ee2426
commit
22bedad3ce
@@ -1056,14 +1056,14 @@ int __orinoco_hw_set_multicast_list(struct orinoco_private *priv,
|
||||
* group address if either we want to multicast, or if we were
|
||||
* multicasting and want to stop */
|
||||
if (!promisc && (mc_count || priv->mc_count)) {
|
||||
struct dev_mc_list *p;
|
||||
struct netdev_hw_addr *ha;
|
||||
struct hermes_multicast mclist;
|
||||
int i = 0;
|
||||
|
||||
netdev_for_each_mc_addr(p, dev) {
|
||||
netdev_for_each_mc_addr(ha, dev) {
|
||||
if (i == mc_count)
|
||||
break;
|
||||
memcpy(mclist.addr[i++], p->dmi_addr, ETH_ALEN);
|
||||
memcpy(mclist.addr[i++], ha->addr, ETH_ALEN);
|
||||
}
|
||||
|
||||
err = hermes_write_ltv(hw, USER_BAP,
|
||||
|
@@ -22,7 +22,6 @@
|
||||
|
||||
/* Forward declarations */
|
||||
struct orinoco_private;
|
||||
struct dev_addr_list;
|
||||
|
||||
int determine_fw_capabilities(struct orinoco_private *priv, char *fw_name,
|
||||
size_t fw_name_len, u32 *hw_ver);
|
||||
|
Reference in New Issue
Block a user