ib_types/events: remove trap data from event record
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 23 Jul 2008 20:01:18 +0000 (20:01 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 23 Jul 2008 20:01:18 +0000 (20:01 +0000)
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/trunk@1434 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/kernel/hca/data.c
hw/mthca/kernel/hca_data.c
inc/iba/ib_types.h

index f4f0492..52925d4 100644 (file)
@@ -320,7 +320,6 @@ void ca_event_handler(struct ib_event *ev, void *context)
 \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
index aa98771..cb9a2ac 100644 (file)
@@ -356,7 +356,6 @@ void ca_event_handler(struct ib_event *ev, void *context)
 \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
index 49b9d4d..c284e64 100644 (file)
@@ -8954,43 +8954,6 @@ typedef struct _ib_event_rec
        /* 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