mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[NIU]: Fix BMAC alternate MAC address indexing.
BMAC port alternate MAC address index needs to start at 1. Index 0 is used for the main MAC address. Signed-off-by: Matheos Worku <matheos.worku@sun.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3172936341
commit
3b5bcedeeb
1 changed files with 6 additions and 1 deletions
|
@ -5147,7 +5147,12 @@ static void niu_set_rx_mode(struct net_device *dev)
|
|||
index++;
|
||||
}
|
||||
} else {
|
||||
for (i = 0; i < niu_num_alt_addr(np); i++) {
|
||||
int alt_start;
|
||||
if (np->flags & NIU_FLAGS_XMAC)
|
||||
alt_start = 0;
|
||||
else
|
||||
alt_start = 1;
|
||||
for (i = alt_start; i < niu_num_alt_addr(np); i++) {
|
||||
err = niu_enable_alt_mac(np, i, 0);
|
||||
if (err)
|
||||
printk(KERN_WARNING PFX "%s: Error %d "
|
||||
|
|
Loading…
Reference in a new issue