diff options
author | Klement Sekera <ksekera@cisco.com> | 2021-02-02 13:25:40 +0100 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-02-10 13:12:33 +0000 |
commit | 98d82ca04ba438cd2ba3c03de6e1e82e4786cd83 (patch) | |
tree | d63d0b002555b63730fab3cea261d824c21986b1 /test/test_vhost.py | |
parent | 4f423bf6b4f3dedf6a3e8d5bbb38c31558d13534 (diff) |
nat: fix EI hairpinning thread safety
Avoid doing inter-thread reads without locks by doing a handoff before
destination address rewrite. Destination address is read from a session
which is possibly owned by a different thread. By splitting the work in
two parts with a handoff in the middle, we can do both in a thread safe
way.
Type: improvement
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I1c50d188393a610f5564fa230c75771a8065f273
Diffstat (limited to 'test/test_vhost.py')
0 files changed, 0 insertions, 0 deletions