summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorshubing guo <guo.shubing@zte.com.cn>2018-08-30 13:29:49 +0800
committerFlorin Coras <florin.coras@gmail.com>2018-08-31 01:37:35 +0000
commitaea5f39b6448b6dc2bb823f6de704dbd6c4962f5 (patch)
tree16716952e607b862614fa8e7530d6563594334b0 /src/vnet
parent134a996a0279577080b626d5172c1739efa00b92 (diff)
VPP-1408: Fix bug that wrong tx fifo drop in buffer chains flow of dgram mode
-- Not drop session dgram hdr when to drop processed udp message from tx fifo Change-Id: Id5ce5780817041bca05011f7b9b53e97a6d78da4 Signed-off-by: shubing guo <guo.shubing@zte.com.cn>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/session_node.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/session/session_node.c b/src/vnet/session/session_node.c
index fcb3a3dc016..2c425abeaf3 100644
--- a/src/vnet/session/session_node.c
+++ b/src/vnet/session/session_node.c
@@ -307,7 +307,10 @@ session_tx_fifo_chain_tail (vlib_main_t * vm, session_tx_context_t * ctx,
hdr->data_offset += n_bytes_read;
if (hdr->data_offset == hdr->data_length)
- svm_fifo_dequeue_drop (f, hdr->data_length);
+ {
+ u32 offset = hdr->data_length + SESSION_CONN_HDR_LEN;
+ svm_fifo_dequeue_drop (f, offset);
+ }
}
else
n_bytes_read = svm_fifo_dequeue_nowait (ctx->s->server_tx_fifo,