diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-05-05 19:05:07 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-06 15:33:36 -0700 |
commit | 5cf4d323f8864dab818d500ec74f2fcb9ad5bf89 (patch) | |
tree | 5f90365023b2b7a78852be460b770c5ae8731723 /drivers/net/netxen/netxen_nic.h | |
parent | 22527864ed7ee6c50f3c4d4b03c83c963caf5c0b (diff) | |
download | kernel-crypto-5cf4d323f8864dab818d500ec74f2fcb9ad5bf89.tar.gz kernel-crypto-5cf4d323f8864dab818d500ec74f2fcb9ad5bf89.tar.xz kernel-crypto-5cf4d323f8864dab818d500ec74f2fcb9ad5bf89.zip |
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 8dacfbb003e..d368e24c023 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h @@ -1019,8 +1019,8 @@ typedef struct { #define NETXEN_MAC_DEL 2 typedef struct nx_mac_list_s { - struct nx_mac_list_s *next; - uint8_t mac_addr[MAX_ADDR_LEN]; + struct list_head list; + uint8_t mac_addr[ETH_ALEN+2]; } nx_mac_list_t; /* @@ -1213,7 +1213,7 @@ struct netxen_adapter { struct net_device *netdev; struct pci_dev *pdev; - nx_mac_list_t *mac_list; + struct list_head mac_list; u32 curr_window; u32 crb_win; |