diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2016-12-06 10:31:57 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2016-12-13 15:43:03 +0000 |
commit | cdab4bde04eab3250b8b4f8b42fcf1dc9a4d2af3 (patch) | |
tree | 47e4cb809227330d2c6529151458f3f20294cfbd /vnet/vnet/lisp-cp/control.h | |
parent | b1e7ead54babc5db656b5200684b743520d6b51f (diff) |
LISP: Move parsing of LISP map-reply to worker thread, VPP-554
Change-Id: I2c3093068b97bb3ed10e1ecb067fc297013d063c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vnet/vnet/lisp-cp/control.h')
-rw-r--r-- | vnet/vnet/lisp-cp/control.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/vnet/vnet/lisp-cp/control.h b/vnet/vnet/lisp-cp/control.h index 71bb39afed5..7f5390a91e5 100644 --- a/vnet/vnet/lisp-cp/control.h +++ b/vnet/vnet/lisp-cp/control.h @@ -136,7 +136,6 @@ typedef struct /* pool of pending map requests */ pending_map_request_t *pending_map_requests_pool; - volatile u32 *pending_map_request_lock; /* hash map of sent map register messages */ uword *map_register_messages_by_nonce; @@ -302,21 +301,6 @@ int vnet_lisp_map_register_enable_disable (u8 is_enable); u8 vnet_lisp_map_register_state_get (void); u8 vnet_lisp_rloc_probe_state_get (void); -static inline void -lisp_pending_map_request_lock (lisp_cp_main_t * lcm) -{ - if (lcm->pending_map_request_lock) - while (__sync_lock_test_and_set (lcm->pending_map_request_lock, 1)) - /* sweet dreams */ ; -} - -static inline void -lisp_pending_map_request_unlock (lisp_cp_main_t * lcm) -{ - if (lcm->pending_map_request_lock) - *lcm->pending_map_request_lock = 0; -} - #endif /* VNET_CONTROL_H_ */ /* |