IB/hfi1: Send MAD traps until repressed
A trap should be sent to the FM until the FM sends a repress message. This is in line with the IBTA 13.4.9. Add the ability to resend traps until a repress message is received. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Reviewed-by: Michael N. Henry <michael.n.henry@intel.com> Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
@@ -1535,6 +1535,11 @@ static void init_ibport(struct hfi1_pportdata *ppd)
|
||||
ibp->sc_to_sl[i] = i;
|
||||
}
|
||||
|
||||
for (i = 0; i < RVT_MAX_TRAP_LISTS ; i++)
|
||||
INIT_LIST_HEAD(&ibp->rvp.trap_lists[i].list);
|
||||
setup_timer(&ibp->rvp.trap_timer, hfi1_handle_trap_timer,
|
||||
(unsigned long)ibp);
|
||||
|
||||
spin_lock_init(&ibp->rvp.lock);
|
||||
/* Set the prefix to the default value (see ch. 4.1.1) */
|
||||
ibp->rvp.gid_prefix = IB_DEFAULT_GID_PREFIX;
|
||||
|
Reference in New Issue
Block a user