vppinfra: add vec_set_len() 35/21935/6
authorBenoît Ganne <bganne@cisco.com>
Mon, 22 Jul 2019 12:21:46 +0000 (14:21 +0200)
committerDamjan Marion <dmarion@me.com>
Tue, 22 Oct 2019 08:14:26 +0000 (08:14 +0000)
commit8a4bfdae87286ed281df855c58b669eb6b76aaf8
treec7d98f8132069974782dbc0d88530d623153fabf
parent26ea1465aeb2934fd86a372666cc3c65e190826c
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>
src/vnet/bier/bier_lookup.c
src/vnet/l2/l2_flood.c
src/vppinfra/vec_bootstrap.h