Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ia67662a5b988b3b5351cea21d6d92fb3a86629b5
ct = (ct_connection_t *) session_get_transport (s);
peer_ct = ct_connection_get (ct->peer_index);
if (!peer_ct)
- return -1;
+ return 0;
peer_s = session_get (peer_ct->c_s_index, 0);
if (peer_s->session_state >= SESSION_STATE_TRANSPORT_CLOSING)
return 0;
- return session_enqueue_notify (peer_s);
+ session_enqueue_notify (peer_s);
+ /* The scheduler uses packet count as a means of upper bounding the amount
+ * of work done per dispatch. So make it look like we have sent something */
+ return 1;
}
static clib_error_t *