aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/udp/udp.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-12-02 21:14:56 -0800
committerDave Barach <openvpp@barachs.net>2021-02-26 21:58:12 +0000
commit30fdf39628c095ed4a5d607079c1b18294050c56 (patch)
tree36f2c9a87fe9565f974437339e6a85c18cefd598 /src/vnet/udp/udp.h
parent4f0ac7e833fffe8fec659037efe0928d1bba0677 (diff)
udp: avoid locking connected udp sessions on rx
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I52aa2322980b51cfc0b282fb37d7f63d30777dee
Diffstat (limited to 'src/vnet/udp/udp.h')
-rw-r--r--src/vnet/udp/udp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/udp/udp.h b/src/vnet/udp/udp.h
index 1494b33a8c3..d0e3bf3015d 100644
--- a/src/vnet/udp/udp.h
+++ b/src/vnet/udp/udp.h
@@ -218,6 +218,8 @@ udp_connection_clone_safe (u32 connection_index, u32 thread_index)
new_c->c_thread_index = current_thread_index;
new_c->c_c_index = udp_connection_index (new_c);
new_c->c_fib_index = old_c->c_fib_index;
+ /* Assume cloned sessions don't need lock */
+ new_c->rx_lock = 0;
return new_c;
}