diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-02-17 11:56:45 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 15:59:48 -0800 |
commit | 305b0160932af0ed67259b4b13c471aed2a86588 (patch) | |
tree | 2a3965e812a6e8f747619a7714cbf5b35528b4a0 /drivers/net/chelsio/common.h | |
parent | 0988d26978561d568efed45cc5576d85ea7b609d (diff) | |
download | linux-305b0160932af0ed67259b4b13c471aed2a86588.tar.gz linux-305b0160932af0ed67259b4b13c471aed2a86588.tar.bz2 linux-305b0160932af0ed67259b4b13c471aed2a86588.zip |
chelsio: convert to use netdev_for_each_mc_addr
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/chelsio/common.h')
-rw-r--r-- | drivers/net/chelsio/common.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/net/chelsio/common.h b/drivers/net/chelsio/common.h index bb159d9603bf..9f89fd600643 100644 --- a/drivers/net/chelsio/common.h +++ b/drivers/net/chelsio/common.h @@ -90,25 +90,13 @@ typedef struct adapter adapter_t; struct t1_rx_mode { - struct net_device *dev; - u32 idx; - struct dev_mc_list *list; + struct net_device *dev; }; #define t1_rx_mode_promisc(rm) (rm->dev->flags & IFF_PROMISC) #define t1_rx_mode_allmulti(rm) (rm->dev->flags & IFF_ALLMULTI) #define t1_rx_mode_mc_cnt(rm) (netdev_mc_count(rm->dev)) - -static inline u8 *t1_get_next_mcaddr(struct t1_rx_mode *rm) -{ - u8 *addr = NULL; - - if (rm->idx++ < t1_rx_mode_mc_cnt(rm)) { - addr = rm->list->dmi_addr; - rm->list = rm->list->next; - } - return addr; -} +#define t1_get_netdev(rm) (rm->dev) #define MAX_NPORTS 4 #define PORT_MASK ((1 << MAX_NPORTS) - 1) |