vcl: store libc_epfd in vls instead of vcl 27/41927/4
authorFlorin Coras <[email protected]>
Tue, 26 Nov 2024 08:29:24 +0000 (00:29 -0800)
committerDave Barach <[email protected]>
Thu, 28 Nov 2024 21:58:56 +0000 (21:58 +0000)
commit978d48b7656a0b2dd53a032c37681c5e7d66ba90
tree3196b72ce43f35318ff4dcec8462a8d5a5c322bd
parent3628353e093752f34704a82ae85a27d8f951e05e
vcl: store libc_epfd in vls instead of vcl

ldp stores the libc epfds it uses in conjunction with vcl epfds in vcl
attributes. Apart from being an ldp, as opposed to vcl, specific
attribute, the epfd is retrieved on session close with vls locks that
could be acquired from multiple threads.

Avoid grabbing locks when retrieving the attribute.

Type: improvement

Signed-off-by: Florin Coras <[email protected]>
Change-Id: I5fc52d72667a7693b1557d209c3890a968422f1e
src/vcl/ldp.c
src/vcl/vcl_locked.c
src/vcl/vcl_locked.h
src/vcl/vcl_private.h
src/vcl/vppcom.c
src/vcl/vppcom.h