cxgb4: fix initial addition of MAC address

The call to add the MAC address during link initialization wasn't adding the
address to one of the HW tables.  Fix.

Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Dimitris Michailidis 2010-05-18 10:07:11 +00:00 committed by David S. Miller
parent 48f753d2ba
commit b6bd29e793

View File

@ -315,7 +315,7 @@ static int link_start(struct net_device *dev)
if (ret == 0) {
ret = t4_change_mac(pi->adapter, 0, pi->viid,
pi->xact_addr_filt, dev->dev_addr, true,
false);
true);
if (ret >= 0) {
pi->xact_addr_filt = ret;
ret = 0;