dhcp: calls to vnet_feature_enable_disable needs to be protected 77/31477/4
authorSteven Luong <sluong@cisco.com>
Mon, 1 Mar 2021 23:42:00 +0000 (15:42 -0800)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 3 Mar 2021 05:25:03 +0000 (05:25 +0000)
commitc3ba58cd14d6bf1cc0cd4a5e6c439613c1ec3425
tree23e6e6c0821057e036238ea29e243c41e39b0506
parenta6406b962316a02e526899f743c6677943be18f2
dhcp: calls to vnet_feature_enable_disable needs to be protected

dhcp is makeing calls to vnet_feature_enable_disable without barrier sync
protection. This can cause data contention with the worker threads. Wrap
all calls to vnet_feature_enable_disable with barrier sync and barrier
release.

Type: fix

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I74545b074599273429f47e3e726551156bc11bbc
src/plugins/dhcp/client.c