Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134681
b: refs/heads/master
c: bb58b5b
h: refs/heads/master
i:
  134679: 284fe69
v: v3
  • Loading branch information
Ron Mercer authored and David S. Miller committed Feb 25, 2009
1 parent dc3258d commit 858c61b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 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: bb80087a9440178bcd8363dc27a486f34786fec3
refs/heads/master: bb58b5b67c08b5fde08090917a040a07ac9d43de
31 changes: 22 additions & 9 deletions trunk/drivers/net/qlge/qlge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2958,6 +2958,24 @@ static int ql_route_initialize(struct ql_adapter *qdev)
return status;
}

static int ql_cam_route_initialize(struct ql_adapter *qdev)
{
int status;

status = ql_set_mac_addr_reg(qdev, (u8 *) qdev->ndev->perm_addr,
MAC_ADDR_TYPE_CAM_MAC, qdev->func * MAX_CQ);
if (status) {
QPRINTK(qdev, IFUP, ERR, "Failed to init mac address.\n");
return status;
}

status = ql_route_initialize(qdev);
if (status)
QPRINTK(qdev, IFUP, ERR, "Failed to init routing table.\n");

return status;
}

static int ql_adapter_initialize(struct ql_adapter *qdev)
{
u32 value, mask;
Expand Down Expand Up @@ -3028,16 +3046,11 @@ static int ql_adapter_initialize(struct ql_adapter *qdev)
return status;
}

status = ql_set_mac_addr_reg(qdev, (u8 *) qdev->ndev->perm_addr,
MAC_ADDR_TYPE_CAM_MAC, qdev->func);
if (status) {
QPRINTK(qdev, IFUP, ERR, "Failed to init mac address.\n");
return status;
}

status = ql_route_initialize(qdev);
/* Set up the MAC address and frame routing filter. */
status = ql_cam_route_initialize(qdev);
if (status) {
QPRINTK(qdev, IFUP, ERR, "Failed to init routing table.\n");
QPRINTK(qdev, IFUP, ERR,
"Failed to init CAM/Routing tables.\n");
return status;
}

Expand Down

0 comments on commit 858c61b

Please sign in to comment.