diff options
| author | Jiri Pirko <jpirko@redhat.com> | 2010-04-01 21:22:57 +0000 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-04-03 14:22:15 -0700 | 
| commit | 22bedad3ce112d5ca1eaf043d4990fa2ed698c87 (patch) | |
| tree | b6fba5688d48b1396f01d13ee53610dea7749c15 /drivers/net/bnx2x_main.c | |
| parent | a748ee2426817a95b1f03012d8f339c45c722ae1 (diff) | |
| download | olio-linux-3.10-22bedad3ce112d5ca1eaf043d4990fa2ed698c87.tar.xz olio-linux-3.10-22bedad3ce112d5ca1eaf043d4990fa2ed698c87.zip  | |
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>
Diffstat (limited to 'drivers/net/bnx2x_main.c')
| -rw-r--r-- | drivers/net/bnx2x_main.c | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index f4ea99d06c7..fa9275c2ef5 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c @@ -11496,21 +11496,21 @@ static void bnx2x_set_rx_mode(struct net_device *dev)  	else { /* some multicasts */  		if (CHIP_IS_E1(bp)) {  			int i, old, offset; -			struct dev_mc_list *mclist; +			struct netdev_hw_addr *ha;  			struct mac_configuration_cmd *config =  						bnx2x_sp(bp, mcast_config);  			i = 0; -			netdev_for_each_mc_addr(mclist, dev) { +			netdev_for_each_mc_addr(ha, dev) {  				config->config_table[i].  					cam_entry.msb_mac_addr = -					swab16(*(u16 *)&mclist->dmi_addr[0]); +					swab16(*(u16 *)&ha->addr[0]);  				config->config_table[i].  					cam_entry.middle_mac_addr = -					swab16(*(u16 *)&mclist->dmi_addr[2]); +					swab16(*(u16 *)&ha->addr[2]);  				config->config_table[i].  					cam_entry.lsb_mac_addr = -					swab16(*(u16 *)&mclist->dmi_addr[4]); +					swab16(*(u16 *)&ha->addr[4]);  				config->config_table[i].cam_entry.flags =  							cpu_to_le16(port);  				config->config_table[i]. @@ -11564,18 +11564,18 @@ static void bnx2x_set_rx_mode(struct net_device *dev)  				      0);  		} else { /* E1H */  			/* Accept one or more multicasts */ -			struct dev_mc_list *mclist; +			struct netdev_hw_addr *ha;  			u32 mc_filter[MC_HASH_SIZE];  			u32 crc, bit, regidx;  			int i;  			memset(mc_filter, 0, 4 * MC_HASH_SIZE); -			netdev_for_each_mc_addr(mclist, dev) { +			netdev_for_each_mc_addr(ha, dev) {  				DP(NETIF_MSG_IFUP, "Adding mcast MAC: %pM\n", -				   mclist->dmi_addr); +				   ha->addr); -				crc = crc32c_le(0, mclist->dmi_addr, ETH_ALEN); +				crc = crc32c_le(0, ha->addr, ETH_ALEN);  				bit = (crc >> 24) & 0xff;  				regidx = bit >> 5;  				bit &= 0x1f;  |