]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: fix mac address mgmt
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Tue, 22 Jun 2010 03:19:00 +0000 (03:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jun 2010 20:16:29 +0000 (13:16 -0700)
commit11d11f5bc19964138e2a694edc51f9f5e18f9170
tree201468cfbf275a8849b853b1e5c920ef5b3f767f
parent1e4c07b0dcd8217972f3a29ae90ff8620222d318
qlcnic: fix mac address mgmt

We first add mac address in driver local list and then send command to
fw to add same. There are checks in driver to ensure send command doesn't fail
before adding mac address in local list.

But instead fix should be:
Add mac address in fw and if it succeeds, add it in driver local list.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_hw.c