vppinfra: add vec_set_len() 25/23025/2
authorBenoît Ganne <bganne@cisco.com>
Mon, 22 Jul 2019 12:21:46 +0000 (14:21 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 29 Oct 2019 09:53:17 +0000 (09:53 +0000)
commit16a17507f418c89ac0aacaf19d83dd07dee42d21
tree1d45bb793116a1a3732781a6ac37e11ae339359d
parentf7b53e155a779a45ec0cf140bd5f4cb716fb551f
vppinfra: add vec_set_len()

l2-flood and bier nodes reset vector length without updating it to its
effective size. Introduce a helper to do it (this allows ASAN to keep
track of the new vector size).

Type: refactor

Change-Id: I2d652550c440f0553a2b49c3ee3d37b49ebc16c3
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 8a4bfdae87286ed281df855c58b669eb6b76aaf8)
src/vnet/bier/bier_lookup.c
src/vnet/l2/l2_flood.c
src/vppinfra/vec_bootstrap.h