udp: fix udp_local length errors accounting 14/38514/3
authorVladislav Grishenko <themiron@yandex-team.ru>
Sat, 18 Mar 2023 14:39:28 +0000 (19:39 +0500)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 24 Mar 2023 16:44:20 +0000 (16:44 +0000)
commit696f8e042f89d18ea4150ea2c61614b9d11c0c52
treea741a219f776a10011e64be374c81bc3a2fee937
parentb052c6702e769ca3c3008926103abc7d6c9cbd98
udp: fix udp_local length errors accounting

In case of UDP length errors in udp_local node, these errors are
being lost and incomplete header may be advanced by wrong offset.
Fix it with only full packets processing and explicit error set
otherwise. Also, optimize two buffer loop perfomance into fast
path with both buffers are ok and slow path with one or none.

Type: fix
Change-Id: I6b7edc3eb5593981e55d7ae20d753c0fd1549d86
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
src/vnet/udp/udp_local.c