Add trap details to notice log message
PATCH v3 1/1 Add trap details to notice log message
---
include/iba/ib_types.h +18 -0
@@ -3,6 +3,7 @@* Copyright (c) 2002-2011 Mellanox Technologies LTD. All rights reserved. * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. * Copyright (c) 2009 HNR Consulting. All rights reserved. +* Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU
@@ -7619,6 +7620,23 @@ ib_member_set_join_state(IN OUT ib_member_rec_t * p_mc_rec,#define IB_NOTICE_TYPE_INFO 0x04#define IB_NOTICE_TYPE_EMPTY 0x7F +#define SM_GID_IN_SERVICE_TRAP 64 +#define SM_GID_OUT_OF_SERVICE_TRAP 65 +#define SM_MGID_CREATED_TRAP 66 +#define SM_MGID_DESTROYED_TRAP 67 +#define SM_UNPATH_TRAP 68 +#define SM_REPATH_TRAP 69 +#define SM_LINK_STATE_CHANGED_TRAP 128 +#define SM_LINK_INTEGRITY_THRESHOLD_TRAP 129 +#define SM_BUFFER_OVERRUN_THRESHOLD_TRAP 130 +#define SM_WATCHDOG_TIMER_EXPIRED_TRAP 131 +#define SM_LOCAL_CHANGES_TRAP 144 +#define SM_SYS_IMG_GUID_CHANGED_TRAP 145 +#define SM_BAD_MKEY_TRAP 256 +#define SM_BAD_PKEY_TRAP 257 +#define SM_BAD_QKEY_TRAP 258 +#define SM_BAD_SWITCH_PKEY_TRAP 259 +#include <complib/cl_packon.h> typedef struct _ib_mad_notice_attr // Total Size calc Accumulated {
opensm/osm_inform.c +144 -10
179 lines not on this page · raw message
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PiBkaWZmIC0tZ2l0IGEvaW5jbHVkZS9pYmEvaWJfdHlwZXMuaCBiL2luY2x1ZGUvaWJhL2liX3R5 cGVzLmgNCj4gaW5kZXggZDVjZjI4Ny4uNWMyMzhhZSAxMDA2NDQNCj4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HSURfQ1JFQVRFRF9UUkFQ CQkJCTY2DQo+ICsjZGVmaW5lIFNNX01HSURfREVTVFJPWUVEX1RSQVAJCQkJNjcNCj4gKyNkZWZp bmUgU01fVU5QQVRIX1RSQVAJCQkJCTY4DQo+ICsjZGVmaW5lIFNNX1JFUEFUSF9UUkFQCQkJCQk2 OQ0KPiArI2RlZmluZSBTTV9MSU5LX1NUQVRFX0NIQU5HRURfVFJBUAkJCTEyOA0KPiArI2RlZmlu ZSBTTV9MSU5LX0lOVEVHUklUWV9USFJFU0hPTERfVFJBUAkJMTI5DQo+ICsjZGVmaW5lIFNNX0JV RkZFUl9PVkVSUlVOX1RIUkVTSE9MRF9UUkFQCQkxMzANCj4gKyNkZWZpbmUgU01fV0FUQ0hET0df VElNRVJfRVhQSVJFRF9UUkFQCQkJMTMxDQo+ICsjZGVmaW5lIFNNX0xPQ0FMX0NIQU5HRVNfVFJB UAkJCQkxNDQNCj4gKyNkZWZpbmUgU01fU1lTX0lNR19HVUlEX0NIQU5HRURfVFJBUAkJCTE0NQ0K PiArI2RlZmluZSBTTV9CQURfTUtFWV9UUkFQCQkJCTI1Ng0KPiArI2RlZmluZSBTTV9CQURfUEtF WV9UUkFQCQkJCTI1Nw0KPiArI2RlZmluZSBTTV9CQURfUUtFWV9UUkFQCQkJCTI1OA0KPiArI2Rl ZmluZSBTTV9CQURfU1dJVENIX1BLRVlfVFJBUAkJCQkyNTkNCg0KVGhlc2UgZGVmaW5pdGlvbnMg Y291bGQgZ28gaW50byBsaWJ1Ym1hZC9pbmNsdWRlL2luZmluaWJhbmQvdW1hZF9zbS5oLg0K --
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1828884A29C6694DAF28B7E6B8A823736FD2C024-P5GAC/[email protected]
Quoted 26 lines · Sean
Quoted 26 lines
include/iba/ib_types.h +10
-0@@ -3,6 +3,7 @@* Copyright (c) 2002-2011 Mellanox Technologies LTD. All rights reserved. * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. * Copyright (c) 2009 HNR Consulting. All rights reserved. +* Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU @@ -7619,6 +7620,23 @@ ib_member_set_join_state(IN OUT ib_member_rec_t * p_mc_rec,#define IB_NOTICE_TYPE_INFO 0x04#define IB_NOTICE_TYPE_EMPTY 0x7F +#define SM_GID_IN_SERVICE_TRAP 64 +#define SM_GID_OUT_OF_SERVICE_TRAP 65 +#define SM_MGID_CREATED_TRAP 66 +#define SM_MGID_DESTROYED_TRAP 67 +#define SM_UNPATH_TRAP 68 +#define SM_REPATH_TRAP 69 +#define SM_LINK_STATE_CHANGED_TRAP 128 +#define SM_LINK_INTEGRITY_THRESHOLD_TRAP 129 +#define SM_BUFFER_OVERRUN_THRESHOLD_TRAP 130
Quoted 8 lines
include/iba/ib_types.h ib_member_set_join_state(IN OUT ib_member_rec_t * p_mc_rec, · line 7638
Quoted 7 lines
include/iba/ib_types.h +7
-0+#define SM_WATCHDOG_TIMER_EXPIRED_TRAP 131 +#define SM_LOCAL_CHANGES_TRAP 144 +#define SM_SYS_IMG_GUID_CHANGED_TRAP 145 +#define SM_BAD_MKEY_TRAP 256 +#define SM_BAD_PKEY_TRAP 257 +#define SM_BAD_QKEY_TRAP 258 +#define SM_BAD_SWITCH_PKEY_TRAP 259These definitions could go into
libubmad/include/infiniband/umad_sm.h.
Are you suggesting to do this in addition to ib_types.h or instead of ? umad_sm.h seems to hold only a small subset of what's found in ib_types.h.
Line
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
PiBBcmUgeW91IHN1Z2dlc3RpbmcgdG8gZG8gdGhpcyBpbiBhZGRpdGlvbiB0byBpYl90eXBlcy5o IG9yIGluc3RlYWQgb2YgPw0KPiB1bWFkX3NtLmggc2VlbXMgdG8gaG9sZCBvbmx5IGEgc21hbGwg c3Vic2V0IG9mIHdoYXQncyBmb3VuZCBpbiBpYl90eXBlcy5oLg0KDQp1bWFkX3NtLmggd2FzIG9u bHkgcmVjZW50bHkgYWRkZWQuICBJJ20gc3VnZ2VzdGluZyB0byBwdXQgdGhlIGRlZmluaXRpb25z IHRoZXJlIGluc3RlYWQgb2Ygd2l0aGluIHRoZSBvcGVuc20gaGVhZGVyIGZpbGUsIHNvIHRoYXQg dGhlIGRlZmluaXRpb25zIGFyZSBhdmFpbGFibGUgdG8gYXBwbGljYXRpb25zIG90aGVyIHRoYW4g b3BlbnNtLg0K
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1828884A29C6694DAF28B7E6B8A823736FD2C27A-P5GAC/[email protected]
Quoted 4 lines · Sean
Quoted 2 lines
Are you suggesting to do this in addition to
ib_types.hor instead of ?umad_sm.hseems to hold only a small subset of what's found inib_types.h.
umad_sm.hwas only recently added.
and there is no release yet with those files.
Quoted 1 line
I'm suggesting to put the definitions there instead of within the opensm header file, so that the definitions are available to applications other than opensm.
My preference would be in addition to rather than instead of. In the future once there is libibumad release in the field for some time with these headers, then OpenSM can migrate definitions as makes sense.
-- Hal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 51A8C527.5070306-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org
Quoted 4 lines · Hal Rosenstock
Quoted 3 lines · Sean
Quoted 2 lines
Are you suggesting to do this in addition to
ib_types.hor instead of ?umad_sm.hseems to hold only a small subset of what's found inib_types.h.
umad_sm.hwas only recently added.
Quoted 8 lines
and there is no release yet with those files.
Quoted 1 line
I'm suggesting to put the definitions there instead of within the opensm header file, so that the definitions are available to applications other than opensm.
My preference would be in addition to rather than instead of. In the future once there is libibumad release in the field for some time with these headers, then OpenSM can migrate definitions as makes sense.
-- Hal
OK, so shall I send a v4 patch with both header files or can I do a second separate patch for the umad_sm.h file ?
Line
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 15 lines · Line Holen
Quoted 14 lines · Hal Rosenstock
Quoted 4 lines · Sean
Quoted 3 lines
Are you suggesting to do this in addition to
ib_types.hor instead of ?umad_sm.hseems to hold only a small subset of what's found inib_types.h.
umad_sm.hwas only recently added.and there is no release yet with those files.
Quoted 3 lines
I'm suggesting to put the definitions there instead of within the opensm header file, so that the definitions are available to applications other than opensm.
My preference would be in addition to rather than instead of. In the future once there is libibumad release in the field for some time with these headers, then OpenSM can migrate definitions as makes sense.
Quoted 6 lines
Quoted 1 line
-- Hal
OK, so shall I send a v4 patch with both header files or can I do a second separate patch
for theumad_sm.hfile ?From my perspective, a second patch for
umad_sm.hwould suffice. Thanks.
-- Hal
Quoted 3 lines
Line
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · Line Holen
Signed-off-by Line Holen <[email protected]>
Thanks. Applied.
-- Hal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html