diff options
author | Amit Kumar Salecha <amit.salecha@qlogic.com> | 2010-01-07 17:10:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-08 03:35:28 -0500 |
commit | d49c9640975355c79f346869831bf9780d185de0 (patch) | |
tree | b0eb8f464e2369494dd57f4535b3ad5dc9106cd1 /drivers | |
parent | 581e8ae49ea3a70b438991e388ded2dcbdbd2162 (diff) |
netxen: fix set mac addr
o If tx and rx resources are not available, during set mac request.
Then this request wont be passed to firmware and it will be added to
driver mac list and will never make it to firmware.
So if resources are not available, don't add it to driver mac list.
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index 398dfd46b8c1..85e28e60ecf1 100644 --- a/drivers/net/netxen/netxen_nic_hw.c +++ b/drivers/net/netxen/netxen_nic_hw.c | |||
@@ -690,6 +690,9 @@ void netxen_p3_nic_set_multi(struct net_device *netdev) | |||
690 | struct list_head *head; | 690 | struct list_head *head; |
691 | nx_mac_list_t *cur; | 691 | nx_mac_list_t *cur; |
692 | 692 | ||
693 | if (adapter->is_up != NETXEN_ADAPTER_UP_MAGIC) | ||
694 | return; | ||
695 | |||
693 | list_splice_tail_init(&adapter->mac_list, &del_list); | 696 | list_splice_tail_init(&adapter->mac_list, &del_list); |
694 | 697 | ||
695 | nx_p3_nic_add_mac(adapter, adapter->mac_addr, &del_list); | 698 | nx_p3_nic_add_mac(adapter, adapter->mac_addr, &del_list); |