session: fix build when debugging is on 48/8848/1
authorFlorin Coras <fcoras@cisco.com>
Tue, 17 Oct 2017 03:47:56 +0000 (20:47 -0700)
committerFlorin Coras <fcoras@cisco.com>
Tue, 17 Oct 2017 03:49:05 +0000 (20:49 -0700)
Change-Id: I193832a0cd0557fffc034a1223f67fa64a4d45ae
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/session/session.c
src/vnet/session/session_debug.h
src/vnet/session/session_node.c

index 7f28a39..5893b65 100644 (file)
@@ -490,7 +490,7 @@ session_enqueue_notify (stream_session_t * s, u8 block)
 
   /* *INDENT-OFF* */
   SESSION_EVT_DBG(SESSION_EVT_ENQ, s, ({
-      ed->data[0] = evt.event_id;
+      ed->data[0] = evt.event_type;
       ed->data[1] = svm_fifo_max_dequeue (s->server_rx_fifo);
   }));
   /* *INDENT-ON* */
index d9b7103..702fe96 100644 (file)
@@ -45,7 +45,7 @@ typedef enum _session_evt_dbg
     u32 data[_size];                                                   \
   } * ed;                                                              \
   transport_proto_vft_t *vft =                                                 \
-      session_get_transport_vft (_s->session_type);                    \
+      transport_protocol_get_vft (_s->session_type);                   \
   transport_connection_t *_tc =                                        \
       vft->get_connection (_s->connection_index, _s->thread_index);    \
   ed = ELOG_TRACK_DATA (&vlib_global_main.elog_main,                   \
index cbe936c..bc24d95 100644 (file)
@@ -319,7 +319,7 @@ session_tx_fifo_read_and_snd_i (vlib_main_t * vm, vlib_node_runtime_t * node,
 
          /* *INDENT-OFF* */
          SESSION_EVT_DBG(SESSION_EVT_DEQ, s0, ({
-             ed->data[0] = e0->event_id;
+             ed->data[0] = e0->event_type;
              ed->data[1] = max_dequeue0;
              ed->data[2] = len_to_deq0;
              ed->data[3] = left_to_snd0;