Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27626
b: refs/heads/master
c: 12bbb2b
h: refs/heads/master
v: v3
  • Loading branch information
Leonid Arsh authored and Roland Dreier committed Jun 18, 2006
1 parent 4dec60b commit 67b2017
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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: da2ab62ab5e430e6ffafc2d0e6046dcd2780f570
refs/heads/master: 12bbb2b7be7f5564952ebe0196623e97464b8ac5
14 changes: 11 additions & 3 deletions trunk/drivers/infiniband/hw/mthca/mthca_mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,22 @@ static void smp_snoop(struct ib_device *ibdev,
mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) &&
mad->mad_hdr.method == IB_MGMT_METHOD_SET) {
if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) {
struct ib_port_info *pinfo =
(struct ib_port_info *) ((struct ib_smp *) mad)->data;

mthca_update_rate(to_mdev(ibdev), port_num);
update_sm_ah(to_mdev(ibdev), port_num,
be16_to_cpup((__be16 *) (mad->data + 58)),
(*(u8 *) (mad->data + 76)) & 0xf);
be16_to_cpu(pinfo->lid),
pinfo->neighbormtu_mastersmsl & 0xf);

event.device = ibdev;
event.event = IB_EVENT_LID_CHANGE;
event.element.port_num = port_num;

if(pinfo->clientrereg_resv_subnetto & 0x80)
event.event = IB_EVENT_CLIENT_REREGISTER;
else
event.event = IB_EVENT_LID_CHANGE;

ib_dispatch_event(&event);
}

Expand Down

0 comments on commit 67b2017

Please sign in to comment.