vlib: fix offload flags value reset 37/31337/2
authorBenoît Ganne <bganne@cisco.com>
Thu, 18 Feb 2021 09:34:33 +0000 (10:34 +0100)
committerDamjan Marion <dmarion@me.com>
Tue, 23 Feb 2021 10:01:15 +0000 (10:01 +0000)
commitaa80f07209d85e3fa32d7c404f2d55cf97cf343f
treea75591860ff9ae3507f2c97dbf6a79dcf763569f
parent5fdc47c237b3e370dc18d3ed593ce3bd7c346110
vlib: fix offload flags value reset

When a buffer is freed and re-allocated for a new packet, opaque2 is
not reset, so the offload flags can be set to a stale value.
Make sure the offload flags are reset to the current value on 1st set.

Type: fix
Fixes: 6809538e646bf86c000dc1faba60b0a4157ad898

Change-Id: I4048febedf25b9995dbd080a11495ee7dbe59153
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/buffer.h