aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/segment_manager.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-10-23 16:31:40 -0700
committerFlorin Coras <florin.coras@gmail.com>2020-10-27 00:09:36 +0000
commit2d0e3de146c239f584004444491c2b25fd1a7bd7 (patch)
tree0ffb98719c8d676a6f0b5044b522c9c850e47724 /src/vnet/session/segment_manager.c
parent70ae0a9682709ede68de467c9932472ea3c0e100 (diff)
session: per worker state for ct sessions
Type: feature Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Id6f7b2b969eb50eb7611e4e9ca77b7ef0e0519a1
Diffstat (limited to 'src/vnet/session/segment_manager.c')
-rw-r--r--src/vnet/session/segment_manager.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/vnet/session/segment_manager.c b/src/vnet/session/segment_manager.c
index e00a7616448..1d648f9e410 100644
--- a/src/vnet/session/segment_manager.c
+++ b/src/vnet/session/segment_manager.c
@@ -231,7 +231,7 @@ segment_manager_get_segment_if_valid (segment_manager_t * sm,
* Removes segment after acquiring writer lock
*/
static inline void
-segment_manager_lock_and_del_segment (segment_manager_t * sm, u32 fs_index)
+sm_lock_and_del_segment_inline (segment_manager_t * sm, u32 fs_index)
{
fifo_segment_t *fs;
u8 is_prealloc;
@@ -252,6 +252,12 @@ done:
clib_rwlock_writer_unlock (&sm->segments_rwlock);
}
+void
+segment_manager_lock_and_del_segment (segment_manager_t * sm, u32 fs_index)
+{
+ sm_lock_and_del_segment_inline (sm, fs_index);
+}
+
/**
* Reads a segment from the segment manager's pool without lock
*/
@@ -774,7 +780,7 @@ segment_manager_dealloc_fifos (svm_fifo_t * rx_fifo, svm_fifo_t * tx_fifo)
/* Remove segment if it holds no fifos or first but not protected */
if (segment_index != 0 || !sm->first_is_protected)
- segment_manager_lock_and_del_segment (sm, segment_index);
+ sm_lock_and_del_segment_inline (sm, segment_index);
/* Remove segment manager if no sessions and detached from app */
if (segment_manager_app_detached (sm)
0' href='#n70'>70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
# DISCLAIMER: BEFORE EDITING THIS FILE!
#
# This file has two closely related consequences. The common part is that this
# file defines the content of virtual Python environment used when Robot tests
# are running.
#
# But the virtual environment is also being created on containerized
# environment created by either Nomad cluster (Jenkins, vpp_device) or during
# execution on SUT machines, which might have specific restrictions.
#
# Complete package and setting snapshot (for all container images),
# with network being limited to local only. This implies pip currently being
# set to site-packages only. So if the "container image" applied on the machine
# does not reflect the edits, some installations might fail.
# Even if the failure may not directly impact execution, this leads into
# inconsistency between installed environment and the code base which may lead
# into fatal error or uncaught exceptions.
#
# CSIT Core dependencies
ecdsa==0.18.0
paramiko==2.9.3
pycrypto==2.6.1
PyYAML==5.4.1
requests==2.25.1
robotframework==5.0.1
scapy==2.4.5
scp==0.14.4

# IaaC dependencies
ansible==5.10.0
ansible-core==2.12.7

# PLRsearch dependencies
dill==0.3.5.1
numpy==1.22.4
scipy==1.8.1

# PAL/DOC dependencies
boto3==1.17.78
botocore==1.20.78
hdrhistogram==0.6.1
pandas==1.4.2
plotly==4.1.1
PTable==0.9.2
Sphinx==3.5.4
sphinx-rtd-theme==0.5.2
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-programoutput==0.17
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-robotdoc==0.11.0
sphinxcontrib-serializinghtml==1.1.5

# VPP requirements
ply==3.11

# JSON schema validation
jsonschema==4.1.0
rfc3339-validator==0.1.4
rfc3987==1.3.8

# Other PIP freeze dependencies.
alabaster==0.7.12
attrs==21.4.0
Babel==2.10.3
bcrypt==3.2.2
certifi==2022.6.15
cffi==1.15.1
chardet==4.0.0
cryptography==36.0.2
docutils==0.16
future==0.18.2
idna==2.10
imagesize==1.4.1
Jinja2==3.0.3
jmespath==0.10.0
MarkupSafe==2.1.1
packaging==21.3
pbr==5.9.0
pycparser==2.21
Pygments==2.12.0
PyNaCl==1.5.0
pyparsing==3.0.9
pyrsistent==0.18.1
python-dateutil==2.8.2
pytz==2022.1
resolvelib==0.5.4
retrying==1.3.3
s3transfer==0.4.2
six==1.16.0
snowballstemmer==2.2.0
urllib3==1.26.10