l2: handle complete clone fail in l2_flood 67/26467/2
authorDave Barach <[email protected]>
Tue, 7 Apr 2020 14:52:43 +0000 (10:52 -0400)
committerDave Wallace <[email protected]>
Mon, 13 Apr 2020 15:02:30 +0000 (15:02 +0000)
commit7f094c2212cf906227ecb06e00f3082d886b32a0
tree86d102165da82983f1a6db9d0e16152f72fd6091
parente2568b5d0a5e34f02adda788e51ed0147644bec9
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 <[email protected]>
Change-Id: I14d9d53637a220485c7a0036cfc75a4149b264ea
(cherry picked from commit 95e19253320ab07748787f4c8a7620704563f6b8)
src/vlib/buffer_funcs.h
src/vnet/l2/l2_flood.c