The trap data in the ib_event_rec is both incomplete (wrt the types of
traps that it can report) and unused. Remove it to save stack space.
This will also make it cleaner to have event handlers per QP, SRQ, CQ, etc.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1434
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
\r
// prepare parameters\r
event_rec.context = (void *)p_hca->ca_context;\r
- event_rec.trap.info.port_num = ev->element.port_num;\r
event_rec.type = ev->event;\r
if (event_rec.type > IB_AE_UNKNOWN) {\r
// CL_ASSERT(0); // This shouldn't happen\r
\r
// prepare parameters\r
event_rec.context = (void *)hob_p->ca_context;\r
- event_rec.trap.info.port_num = ev->element.port_num;\r
event_rec.type = ev->event;\r
if (event_rec.type > IB_AE_UNKNOWN) {\r
// CL_ASSERT(0); // This shouldn't happen\r
/* HCA vendor specific event information. */\r
uint64_t vendor_specific;\r
\r
- /* The following structures are valid only for trap types. */\r
- union _trap\r
- {\r
- struct\r
- {\r
- uint16_t lid;\r
- ib_net64_t port_guid;\r
- uint8_t port_num;\r
-\r
- /*\r
- * The following structure is valid only for\r
- * P_KEY, Q_KEY, and M_KEY violation traps.\r
- */\r
- struct\r
- {\r
- uint8_t sl;\r
- uint16_t src_lid;\r
- uint16_t dest_lid;\r
- union _key\r
- {\r
- uint16_t pkey;\r
- uint32_t qkey;\r
- uint64_t mkey;\r
- } key;\r
- uint32_t src_qp;\r
- uint32_t dest_qp;\r
- ib_gid_t src_gid;\r
- ib_gid_t dest_gid;\r
-\r
- } violation;\r
-\r
- } info;\r
-\r
- ib_net64_t sysimg_guid;\r
-\r
- } trap;\r
-\r
} ib_event_rec_t;\r
/*******/\r
\r