quic : Use TX event for app read notification
[vpp.git] / src / plugins / quic / quic.h
index 759dc9f..3ecb04f 100644 (file)
@@ -31,9 +31,7 @@
  * 4 - timer events
  **/
 
-#define QUIC_DEBUG               2
-#define QUIC_DEBUG_LEVEL_CLIENT  0
-#define QUIC_DEBUG_LEVEL_SERVER  0
+#define QUIC_DEBUG               0
 
 #define QUIC_DEFAULT_CA_CERT_PATH        "/etc/ssl/certs/ca-certificates.crt"
 
@@ -41,7 +39,7 @@
 
 
 #if QUIC_DEBUG
-#define QUIC_DBG(_lvl, _fmt, _args...)           \
+#define QUIC_DBG(_lvl, _fmt, _args...)   \
   if (_lvl <= QUIC_DEBUG)                \
     clib_warning (_fmt, ##_args)
 #else
@@ -95,6 +93,7 @@ typedef struct quic_stream_data_
 {
   u32 ctx_id;
   u32 thread_index;
+  u32 app_rx_data_len;         /* bytes received, to be read by external app */
 } quic_stream_data_t;
 
 typedef struct quic_worker_ctx_
@@ -112,7 +111,6 @@ typedef struct quic_main_
   quic_worker_ctx_t *wrk_ctx;
   clib_bihash_16_8_t connection_hash;  /* quicly connection id -> conn handle */
   f64 tstamp_ticks_per_clock;
-  u32 fake_app_listener_index; /* ugly hack for accept cb */
 
   /*
    * Config