aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/common.h
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-02-17 07:27:14 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-17 18:59:48 -0500
commit0988d26978561d568efed45cc5576d85ea7b609d (patch)
treed6b658928b8ab50d81db521c1ea9547df9a9aec0 /drivers/net/cxgb3/common.h
parente4a474f82ddaaef65433b0b4f5169f2f6cd8ddb0 (diff)
cxgb3: convert to use netdev_for_each_addr
Removed whole t3_rx_mode structure and appropriate helpers cause they are no longer needed. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb3/common.h')
-rw-r--r--drivers/net/cxgb3/common.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/drivers/net/cxgb3/common.h b/drivers/net/cxgb3/common.h
index 6ff356d4c7ab..fe08a004b0dd 100644
--- a/drivers/net/cxgb3/common.h
+++ b/drivers/net/cxgb3/common.h
@@ -67,32 +67,6 @@
67/* Additional NETIF_MSG_* categories */ 67/* Additional NETIF_MSG_* categories */
68#define NETIF_MSG_MMIO 0x8000000 68#define NETIF_MSG_MMIO 0x8000000
69 69
70struct t3_rx_mode {
71 struct net_device *dev;
72 struct dev_mc_list *mclist;
73 unsigned int idx;
74};
75
76static inline void init_rx_mode(struct t3_rx_mode *p, struct net_device *dev,
77 struct dev_mc_list *mclist)
78{
79 p->dev = dev;
80 p->mclist = mclist;
81 p->idx = 0;
82}
83
84static inline u8 *t3_get_next_mcaddr(struct t3_rx_mode *rm)
85{
86 u8 *addr = NULL;
87
88 if (rm->mclist && rm->idx < rm->dev->mc_count) {
89 addr = rm->mclist->dmi_addr;
90 rm->mclist = rm->mclist->next;
91 rm->idx++;
92 }
93 return addr;
94}
95
96enum { 70enum {
97 MAX_NPORTS = 2, /* max # of ports */ 71 MAX_NPORTS = 2, /* max # of ports */
98 MAX_FRAME_SIZE = 10240, /* max MAC frame size, including header + FCS */ 72 MAX_FRAME_SIZE = 10240, /* max MAC frame size, including header + FCS */
@@ -746,7 +720,7 @@ void t3_mac_enable_exact_filters(struct cmac *mac);
746int t3_mac_enable(struct cmac *mac, int which); 720int t3_mac_enable(struct cmac *mac, int which);
747int t3_mac_disable(struct cmac *mac, int which); 721int t3_mac_disable(struct cmac *mac, int which);
748int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu); 722int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu);
749int t3_mac_set_rx_mode(struct cmac *mac, struct t3_rx_mode *rm); 723int t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev);
750int t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]); 724int t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]);
751int t3_mac_set_num_ucast(struct cmac *mac, int n); 725int t3_mac_set_num_ucast(struct cmac *mac, int n);
752const struct mac_stats *t3_mac_update_stats(struct cmac *mac); 726const struct mac_stats *t3_mac_update_stats(struct cmac *mac);