Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302634
b: refs/heads/master
c: 4ccf28a
h: refs/heads/master
v: v3
  • Loading branch information
Todd Rimmer authored and Roland Dreier committed May 14, 2012
1 parent d612107 commit 02bbf08
Show file tree
Hide file tree
Showing 2 changed files with 9 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: bb77a077232e78476d7bc39c080f9e6685cbfd3c
refs/heads/master: 4ccf28a26c981bcc6f938a7ea293a623d2d66d7b
17 changes: 8 additions & 9 deletions trunk/drivers/infiniband/hw/qib/qib_mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ static int subn_set_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
struct qib_devdata *dd;
struct qib_pportdata *ppd;
struct qib_ibport *ibp;
char clientrereg = 0;
u8 clientrereg = (pip->clientrereg_resv_subnetto & 0x80);
unsigned long flags;
u16 lid, smlid;
u8 lwe;
Expand Down Expand Up @@ -781,12 +781,6 @@ static int subn_set_portinfo(struct ib_smp *smp, struct ib_device *ibdev,

ibp->subnet_timeout = pip->clientrereg_resv_subnetto & 0x1F;

if (pip->clientrereg_resv_subnetto & 0x80) {
clientrereg = 1;
event.event = IB_EVENT_CLIENT_REREGISTER;
ib_dispatch_event(&event);
}

/*
* Do the port state change now that the other link parameters
* have been set.
Expand Down Expand Up @@ -844,10 +838,15 @@ static int subn_set_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
smp->status |= IB_SMP_INVALID_FIELD;
}

if (clientrereg) {
event.event = IB_EVENT_CLIENT_REREGISTER;
ib_dispatch_event(&event);
}

ret = subn_get_portinfo(smp, ibdev, port);

if (clientrereg)
pip->clientrereg_resv_subnetto |= 0x80;
/* restore re-reg bit per o14-12.2.1 */
pip->clientrereg_resv_subnetto |= clientrereg;

goto get_only;

Expand Down

0 comments on commit 02bbf08

Please sign in to comment.