pipeline: fix validate header instruction

The exported data structure for the header validate instruction did
not populate its struct_id field, which results in segmentation fault.

Fixes: 216bc906d0 ("pipeline: export pipeline instructions to file")
Cc: stable@dpdk.org

Signed-off-by: Yogesh Jangra <yogesh.jangra@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
Yogesh Jangra 2022-11-21 14:24:38 +00:00 committed by Thomas Monjalon
parent f272ea5ba7
commit a774cba0bb
1 changed files with 3 additions and 1 deletions

View File

@ -11793,10 +11793,12 @@ instr_hdr_validate_export(struct instruction *instr, FILE *f)
"\t\t.type = %s,\n"
"\t\t.valid = {\n"
"\t\t\t.header_id = %u,\n"
"\t\t\t.struct_id = %u,\n"
"\t\t},\n"
"\t},\n",
instr_type_to_name(instr),
instr->valid.header_id);
instr->valid.header_id,
instr->valid.struct_id);
}
static void