aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
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
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')
-rw-r--r--src/vnet/session/session.c1
-rw-r--r--src/vnet/session/session_types.h1
2 files changed, 2 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));
/*
diff --git a/src/vnet/session/session_types.h b/src/vnet/session/session_types.h
index bf45855e264..03f7096c4b8 100644
--- a/src/vnet/session/session_types.h
+++ b/src/vnet/session/session_types.h
@@ -148,6 +148,7 @@ typedef enum session_flags_
SESSION_F_RX_EVT = 1,
SESSION_F_PROXY = (1 << 1),
SESSION_F_CUSTOM_TX = (1 << 2),
+ SESSION_F_IS_MIGRATING = (1 << 3),
} session_flags_t;
typedef struct session_