Skip to content

Commit

Permalink
netxen: fix set mac addr
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed Jan 8, 2010
1 parent 581e8ae commit d49c964
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/netxen/netxen_nic_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,9 @@ void netxen_p3_nic_set_multi(struct net_device *netdev)
struct list_head *head;
nx_mac_list_t *cur;

if (adapter->is_up != NETXEN_ADAPTER_UP_MAGIC)
return;

list_splice_tail_init(&adapter->mac_list, &del_list);

nx_p3_nic_add_mac(adapter, adapter->mac_addr, &del_list);
Expand Down

0 comments on commit d49c964

Please sign in to comment.