fib: add barrier sync, pool/vector expand cases 71/28471/2
authorDave Barach <dave@barachs.net>
Wed, 3 Jun 2020 12:05:15 +0000 (08:05 -0400)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 18 Aug 2020 19:47:21 +0000 (19:47 +0000)
commit1c73742cb3c90f11a7b9e9c01100c464a82951fd
treec63b341f270d52c5f1f534e415912ca9ef8a2668
parent77335de45a0904fd6d6e2a5597f1fd0fcbaf0917
fib: add barrier sync, pool/vector expand cases

load_balance_alloc_i(...) is not thread safe when the
load_balance_pool or combined counter vectors expand.

Type: fix

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I7f295ed77350d1df0434d5ff461eedafe79131de
(cherry picked from commit 8341f76fd1cd4351961cd8161cfed2814fc55103)
src/vlib/counter.c
src/vlib/counter.h
src/vnet/dpo/load_balance.c