Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86277
b: refs/heads/master
c: fa90789
h: refs/heads/master
i:
  86275: 036a9b8
v: v3
  • Loading branch information
Matheos Worku authored and David S. Miller committed Feb 20, 2008
1 parent 5bbe326 commit dfdcd77
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b33ed22194d8f0dbcf682f5cdf5b9c2ef551e7c
refs/heads/master: fa907895b7b776208a1406efe5ba7ffe0f49f507
9 changes: 5 additions & 4 deletions trunk/drivers/net/niu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1616,12 +1616,13 @@ static int niu_enable_alt_mac(struct niu *np, int index, int on)
if (index >= niu_num_alt_addr(np))
return -EINVAL;

if (np->flags & NIU_FLAGS_XMAC)
if (np->flags & NIU_FLAGS_XMAC) {
reg = XMAC_ADDR_CMPEN;
else
mask = 1 << index;
} else {
reg = BMAC_ADDR_CMPEN;

mask = 1 << index;
mask = 1 << (index + 1);
}

val = nr64_mac(reg);
if (on)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/niu.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@
#define BMAC_ADDR2 0x00110UL
#define BMAC_ADDR2_ADDR2 0x000000000000ffffULL

#define BMAC_NUM_ALT_ADDR 7
#define BMAC_NUM_ALT_ADDR 6

#define BMAC_ALT_ADDR0(NUM) (0x00118UL + (NUM)*0x18UL)
#define BMAC_ALT_ADDR0_ADDR0 0x000000000000ffffULL
Expand Down

0 comments on commit dfdcd77

Please sign in to comment.