tcp: delivery rate estimator
[vpp.git] / src / vnet / session / transport.h
index 0aaaf74..fadb02d 100644 (file)
@@ -193,9 +193,24 @@ void transport_connection_tx_pacer_update (transport_connection_t * tc,
 u32 transport_connection_snd_space (transport_connection_t * tc,
                                    u64 time_now, u16 mss);
 
+/**
+ * Get tx pacer max burst
+ *
+ * @param tc           transport connection
+ * @param time_now     current cpu time
+ * @return             max burst for connection
+ */
 u32 transport_connection_tx_pacer_burst (transport_connection_t * tc,
                                         u64 time_now);
 
+/**
+ * Get tx pacer current rate
+ *
+ * @param tc           transport connection
+ * @return             rate for connection in bytes/s
+ */
+u64 transport_connection_tx_pacer_rate (transport_connection_t * tc);
+
 /**
  * Initialize period for tx pacers
  *