diff options
author | Damjan Marion <damarion@cisco.com> | 2018-10-31 10:59:02 +0100 |
---|---|---|
committer | Marco Varlese <marco.varlese@suse.de> | 2018-11-02 08:54:02 +0000 |
commit | bd0da97e5ac0f84e1ea8e6e7f9549dd4e1a6a4ab (patch) | |
tree | 246454ea45763bdca40b608cc89735ad23dcd00a /src/vnet/l2/l2_flood.c | |
parent | 93468adfc4c5a449532fbfecd575f17d9cae7099 (diff) |
vlib: define minimum chained buffer segment size
Change-Id: I9b5f7b264f9978e3dd97b2d1eb103b7d10ac3170
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_flood.c')
-rw-r--r-- | src/vnet/l2/l2_flood.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vnet/l2/l2_flood.c b/src/vnet/l2/l2_flood.c index 8908c4312d3..aeac8ff10d8 100644 --- a/src/vnet/l2/l2_flood.c +++ b/src/vnet/l2/l2_flood.c @@ -223,9 +223,7 @@ l2flood_node_fn (vlib_main_t * vm, n_cloned = vlib_buffer_clone (vm, bi0, msm->clones[thread_index], n_clones, - (vnet_buffer (b0)->l2.l2_len + - sizeof (udp_header_t) + - 2 * sizeof (ip6_header_t))); + VLIB_BUFFER_CLONE_HEAD_SIZE); if (PREDICT_FALSE (n_cloned != n_clones)) { |