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:
parent
f272ea5ba7
commit
a774cba0bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user