[hermon] Map all event types to our event queue
Only port state change events are currently mapped to our event queue, since those are the only events we are prepared to handle. This ignores a potentially useful source of diagnostic information in the case of unexpected failures. Fix by mapping all events to the event queue; a build with debugging enabled will therefore at least dump the raw content of the unexpected events. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1727,9 +1727,8 @@ static int hermon_create_eq ( struct hermon *hermon ) {
|
||||
goto err_sw2hw_eq;
|
||||
}
|
||||
|
||||
/* Map events to this event queue */
|
||||
memset ( &mask, 0, sizeof ( mask ) );
|
||||
MLX_FILL_1 ( &mask, 1, port_state_change, 1 );
|
||||
/* Map all events to this event queue */
|
||||
memset ( &mask, 0xff, sizeof ( mask ) );
|
||||
if ( ( rc = hermon_cmd_map_eq ( hermon,
|
||||
( HERMON_MAP_EQ | hermon_eq->eqn ),
|
||||
&mask ) ) != 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user