summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session_node.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-07-22 15:57:19 -0700
committerDave Barach <openvpp@barachs.net>2019-07-23 16:07:48 +0000
commit198cba8be543e58592e784f8c5bcc8c7edc0cfce (patch)
tree904a12a1c1e73fbfcf74aee5db8eb1cb67cf9bdf /src/vnet/session/session_node.c
parenta0904f0e3f15873d01e2d5bc53d321a70412d5f4 (diff)
session: avoid postponing close
Type: feature Change-Id: I96e850fc15b79349abbb52d91c0314f255d635be Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_node.c')
-rw-r--r--src/vnet/session/session_node.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c
index a8478884806..bfe7702388c 100644
--- a/src/vnet/session/session_node.c
+++ b/src/vnet/session/session_node.c
@@ -955,20 +955,6 @@ session_queue_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
s = session_get_from_handle_if_valid (e->session_handle);
if (PREDICT_FALSE (!s))
break;
-
- /* Make sure session disconnects run after the pending list is
- * drained, i.e., postpone if the first time. If not the first
- * and the tx queue is still not empty, try to wait for some
- * dispatch cycles */
- if (!e->postponed
- || (e->postponed < 200
- && svm_fifo_max_dequeue_cons (s->tx_fifo)))
- {
- e->postponed += 1;
- session_evt_add_pending (wrk, elt);
- continue;
- }
-
session_transport_close (s);
break;
case SESSION_IO_EVT_BUILTIN_RX: