summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.c
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-10-02 10:02:05 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-10-08 01:11:23 +0000
commitcaa7acf5c55a78ef4f7addfb94da0ad788f59a75 (patch)
tree148aaa1ba4add1a3d072b9a2f906d42ba28c9304 /src/vnet/session/session.c
parent859b59133c143b09fed86af1d409d320fa45424f (diff)
session: add is_migrating flag
Type: fix Add SESSION_F_IS_MIGRATING flag for session. It is set by the session layer before poking the transport for migration. It's the transport responsibility to unset the flag & act apropriatly if RX happens on a migrating session. Change-Id: Ie722917f1cf9344d8f041cad4ed8b064fb5853b6 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r--src/vnet/session/session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index be62d929363..f1360226152 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -799,6 +799,7 @@ session_dgram_connect_notify (transport_connection_t * tc,
new_s->rx_fifo->master_session_index = new_s->session_index;
new_s->rx_fifo->master_thread_index = new_s->thread_index;
new_s->session_state = SESSION_STATE_READY;
+ new_s->flags |= SESSION_F_IS_MIGRATING;
session_lookup_add_connection (tc, session_handle (new_s));
/*