summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-03-31 17:17:11 -0700
committerDave Barach <openvpp@barachs.net>2019-04-02 16:48:39 +0000
commitf65074e4df47d05238e051615dbaf5d2bcbaddf2 (patch)
tree5498cb0d07c0c19cd530ef17f35a5607c1319136 /src/vnet/session
parentc6c4394dbd4a128d07d0a0a72c4db7d132f4474e (diff)
tcp: improve rcv process ack processing
- Avoid doing cc in closing states. - Rest connections closed with unread data Change-Id: I97d46b0459f03ea5439eeb0f233b6c17d3e06dfd Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/session.h7
-rw-r--r--src/vnet/session/transport.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h
index a3b84a6c8ef..ed42e5476e9 100644
--- a/src/vnet/session/session.h
+++ b/src/vnet/session/session.h
@@ -389,6 +389,13 @@ transport_max_tx_dequeue (transport_connection_t * tc)
}
always_inline u32
+transport_max_rx_dequeue (transport_connection_t * tc)
+{
+ session_t *s = session_get (tc->s_index, tc->thread_index);
+ return svm_fifo_max_dequeue (s->rx_fifo);
+}
+
+always_inline u32
transport_rx_fifo_size (transport_connection_t * tc)
{
session_t *s = session_get (tc->s_index, tc->thread_index);
diff --git a/src/vnet/session/transport.c b/src/vnet/session/transport.c
index abab0865674..d83ecfb133c 100644
--- a/src/vnet/session/transport.c
+++ b/src/vnet/session/transport.c
@@ -49,7 +49,7 @@ static double transport_pacer_period;
#define TRANSPORT_PACER_MIN_MSS 1460
#define TRANSPORT_PACER_MIN_BURST TRANSPORT_PACER_MIN_MSS
-#define TRANSPORT_PACER_MAX_BURST (48 * TRANSPORT_PACER_MIN_MSS)
+#define TRANSPORT_PACER_MAX_BURST (32 * TRANSPORT_PACER_MIN_MSS)
u8 *
format_transport_proto (u8 * s, va_list * args)