aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-03-28 08:39:01 -0700
committerFlorin Coras <fcoras@cisco.com>2019-03-28 08:39:01 -0700
commit51793f54fd91ada610db6a9e78436075f2e33bdd (patch)
tree87814ecc2102c7b0db02339ecbfd82d418895838 /src
parent987aea8ec122065ab781242de24877f7cb377a5c (diff)
tcp: remove unused buffer flags
Change-Id: I86e71f32dee3cc48f680e6432a96caef0a7f66a1 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/tcp/tcp.h20
-rw-r--r--src/vnet/tcp/tcp_output.c3
2 files changed, 0 insertions, 23 deletions
diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h
index d15a36dc774..d9f49df6d32 100644
--- a/src/vnet/tcp/tcp.h
+++ b/src/vnet/tcp/tcp.h
@@ -144,26 +144,6 @@ typedef enum _tcp_connection_flag
TCP_CONN_N_FLAGS
} tcp_connection_flags_e;
-/** TCP buffer flags */
-#define foreach_tcp_buf_flag \
- _ (ACK) /**< Sending ACK. */ \
- _ (DUPACK) /**< Sending DUPACK. */ \
-
-enum
-{
-#define _(f) TCP_BUF_BIT_##f,
- foreach_tcp_buf_flag
-#undef _
- TCP_N_BUF_BITS,
-};
-
-enum
-{
-#define _(f) TCP_BUF_FLAG_##f = 1 << TCP_BUF_BIT_##f,
- foreach_tcp_buf_flag
-#undef _
-};
-
#define TCP_SCOREBOARD_TRACE (0)
#define TCP_MAX_SACK_BLOCKS 256 /**< Max number of SACK blocks stored */
#define TCP_INVALID_SACK_HOLE_INDEX ((u32)~0)
diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c
index 2abc40a8cc7..30549c4e729 100644
--- a/src/vnet/tcp/tcp_output.c
+++ b/src/vnet/tcp/tcp_output.c
@@ -535,9 +535,6 @@ void
tcp_make_fin (tcp_connection_t * tc, vlib_buffer_t * b)
{
tcp_make_ack_i (tc, b, TCP_STATE_ESTABLISHED, TCP_FLAG_FIN | TCP_FLAG_ACK);
-
- /* Reset flags, make sure ack is sent */
- vnet_buffer (b)->tcp.flags &= ~TCP_BUF_FLAG_DUPACK;
}
/**