udp: calculate inner checksums if needed before udp encap 06/32506/2
authorArthur de Kerhor <arthurdekerhor@gmail.com>
Tue, 1 Jun 2021 09:27:48 +0000 (11:27 +0200)
committerArthur de Kerhor <arthurdekerhor@gmail.com>
Tue, 1 Jun 2021 10:03:47 +0000 (12:03 +0200)
commit7aeb647c69d5d583d6df319ee7eac7a32bc9fced
treeb204cb54aa2f3f9781a8fd136c5cda8206efc6f0
parent90f7008dc05a7911e8f341f77dbf5250fe895997
udp: calculate inner checksums if needed before udp encap

We do not want to encap headers containing wrong checksums.

Additionnally, this clears the checksums offlads flags, which
was something missing since the outer headers checksums were
calculated during the encap. Hence, those should not be
recalculated afterwards.

Type: fix
Change-Id: I7fd07987b4f13f76c6990a1c08dc2f960bdd8de1
Signed-off-by: Arthur de Kerhor <arthurdekerhor@gmail.com>
src/vnet/udp/udp_encap.c
src/vnet/udp/udp_inlines.h