diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-05-05 15:05:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-06 18:33:36 -0400 |
commit | 5cf4d323f8864dab818d500ec74f2fcb9ad5bf89 (patch) | |
tree | 5f90365023b2b7a78852be460b770c5ae8731723 /drivers/net/netxen/netxen_nic.h | |
parent | 22527864ed7ee6c50f3c4d4b03c83c963caf5c0b (diff) |
netxen: fix mac list management
o use standard linked list api for mac addr list management
in NX3031.
o release mac addresses in firmware in dev close().
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index 8dacfbb003e2..d368e24c0235 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -1019,8 +1019,8 @@ typedef struct { | |||
1019 | #define NETXEN_MAC_DEL 2 | 1019 | #define NETXEN_MAC_DEL 2 |
1020 | 1020 | ||
1021 | typedef struct nx_mac_list_s { | 1021 | typedef struct nx_mac_list_s { |
1022 | struct nx_mac_list_s *next; | 1022 | struct list_head list; |
1023 | uint8_t mac_addr[MAX_ADDR_LEN]; | 1023 | uint8_t mac_addr[ETH_ALEN+2]; |
1024 | } nx_mac_list_t; | 1024 | } nx_mac_list_t; |
1025 | 1025 | ||
1026 | /* | 1026 | /* |
@@ -1213,7 +1213,7 @@ struct netxen_adapter { | |||
1213 | 1213 | ||
1214 | struct net_device *netdev; | 1214 | struct net_device *netdev; |
1215 | struct pci_dev *pdev; | 1215 | struct pci_dev *pdev; |
1216 | nx_mac_list_t *mac_list; | 1216 | struct list_head mac_list; |
1217 | 1217 | ||
1218 | u32 curr_window; | 1218 | u32 curr_window; |
1219 | u32 crb_win; | 1219 | u32 crb_win; |