2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

odp-execute: Fix ipv4 missing clearing of connection tracking fields.

This patch add clearing of connection tracking fields to the
avx512 implementation of the ipv4 action. This patch also extends
the actions autovalidator to include a compare for packet metadata.

Fixes: 92eb03f7b0 ("odp-execute: Add ISA implementation of set_masked IPv4 action")
Signed-off-by: Emma Finn <emma.finn@intel.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
Emma Finn
2022-12-06 14:18:00 +00:00
committed by Ilya Maximets
parent 481555587f
commit 739bcf2263
2 changed files with 14 additions and 0 deletions

View File

@@ -229,6 +229,18 @@ action_autoval_generic(struct dp_packet_batch *batch, const struct nlattr *a)
}
}
/* Compare packet metadata. */
if (memcmp(&good_pkt->md, &test_pkt->md, sizeof good_pkt->md)) {
ds_put_format(&log_msg, "Autovalidation metadata failed\n");
ds_put_format(&log_msg, "Good packet metadata:\n");
ds_put_sparse_hex_dump(&log_msg, &good_pkt->md,
sizeof good_pkt->md, 0, false);
ds_put_format(&log_msg, "Test packet metadata:\n");
ds_put_sparse_hex_dump(&log_msg, &test_pkt->md,
sizeof test_pkt->md, 0, false);
failed = true;
}
if (failed) {
VLOG_ERR("Autovalidation of %s failed. Details:\n%s",
action_impls[impl].name, ds_cstr(&log_msg));