Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
session: cleanup part 1
[vpp.git]
/
src
/
vnet
/
udp
/
udp_input.c
diff --git
a/src/vnet/udp/udp_input.c
b/src/vnet/udp/udp_input.c
index
ad469f6
..
bbfee57
100644
(file)
--- a/
src/vnet/udp/udp_input.c
+++ b/
src/vnet/udp/udp_input.c
@@
-104,7
+104,7
@@
udp46_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
ip4_header_t *ip40;
ip6_header_t *ip60;
u8 *data0;
ip4_header_t *ip40;
ip6_header_t *ip60;
u8 *data0;
- s
tream_s
ession_t *s0;
+ session_t *s0;
udp_connection_t *uc0, *child0, *new_uc0;
transport_connection_t *tc0;
int wrote0;
udp_connection_t *uc0, *child0, *new_uc0;
transport_connection_t *tc0;
int wrote0;
@@
-229,7
+229,7
@@
udp46_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
if (!uc0->is_connected)
{
if (!uc0->is_connected)
{
- if (svm_fifo_max_enqueue (s0->
server_
rx_fifo)
+ if (svm_fifo_max_enqueue (s0->rx_fifo)
< b0->current_length + sizeof (session_dgram_hdr_t))
{
error0 = UDP_ERROR_FIFO_FULL;
< b0->current_length + sizeof (session_dgram_hdr_t))
{
error0 = UDP_ERROR_FIFO_FULL;
@@
-255,8
+255,7
@@
udp46_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
}
else
{
}
else
{
- if (svm_fifo_max_enqueue (s0->server_rx_fifo)
- < b0->current_length)
+ if (svm_fifo_max_enqueue (s0->rx_fifo) < b0->current_length)
{
error0 = UDP_ERROR_FIFO_FULL;
goto trace0;
{
error0 = UDP_ERROR_FIFO_FULL;
goto trace0;