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
@@ -1266,7 +1266,7 @@ static void streamer_set_rx_mode(struct net_device *dev)
|
||||
netdev_priv(dev);
|
||||
__u8 __iomem *streamer_mmio = streamer_priv->streamer_mmio;
|
||||
__u8 options = 0;
|
||||
struct dev_mc_list *dmi;
|
||||
struct netdev_hw_addr *ha;
|
||||
unsigned char dev_mc_address[5];
|
||||
|
||||
writel(streamer_priv->srb, streamer_mmio + LAPA);
|
||||
@@ -1302,11 +1302,11 @@ static void streamer_set_rx_mode(struct net_device *dev)
|
||||
writel(streamer_priv->srb,streamer_mmio+LAPA);
|
||||
dev_mc_address[0] = dev_mc_address[1] = dev_mc_address[2] = dev_mc_address[3] = 0 ;
|
||||
|
||||
netdev_for_each_mc_addr(dmi, dev) {
|
||||
dev_mc_address[0] |= dmi->dmi_addr[2] ;
|
||||
dev_mc_address[1] |= dmi->dmi_addr[3] ;
|
||||
dev_mc_address[2] |= dmi->dmi_addr[4] ;
|
||||
dev_mc_address[3] |= dmi->dmi_addr[5] ;
|
||||
netdev_for_each_mc_addr(ha, dev) {
|
||||
dev_mc_address[0] |= ha->addr[2];
|
||||
dev_mc_address[1] |= ha->addr[3];
|
||||
dev_mc_address[2] |= ha->addr[4];
|
||||
dev_mc_address[3] |= ha->addr[5];
|
||||
}
|
||||
|
||||
writew(htons(SRB_SET_FUNC_ADDRESS << 8),streamer_mmio+LAPDINC);
|
||||
|
Reference in New Issue
Block a user