l2: handle complete clone fail in l2_flood 07/26407/5
authorDave Barach <dave@barachs.net>
Tue, 7 Apr 2020 14:52:43 +0000 (10:52 -0400)
committerJohn Lo <loj@cisco.com>
Tue, 7 Apr 2020 22:14:26 +0000 (22:14 +0000)
commit95e19253320ab07748787f4c8a7620704563f6b8
tree1b8f6b2805d561e43f9a5e5aa31a9a6db9353ef8
parent85bee7548bc5a360851d92807dae6d4159b68314
l2: handle complete clone fail in l2_flood

vlib_buffer_clone(...) may not manage to produce any buffer clones at
all.

vlib_buffer_clone_256 should not smash the original buffer reference
count if no clones are produced.

Type: fix

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I14d9d53637a220485c7a0036cfc75a4149b264ea
src/vlib/buffer_funcs.h
src/vnet/l2/l2_flood.c