pktgen: Automate flag enumeration for unknown flag handling
authorLiang Chen <liangchen.linux@gmail.com>
Wed, 20 Sep 2023 12:56:57 +0000 (20:56 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 28 Sep 2023 14:25:14 +0000 (16:25 +0200)
commit057708a9ca5930d4d9a456c29010f4f90ae760b7
tree20456ddae923ddce919add14f03fab6f13d8ac28
parent19f5eef8bf732406415b44783ea623e3a31c34c9
pktgen: Automate flag enumeration for unknown flag handling

When specifying an unknown flag, it will print all available flags.
Currently, these flags are provided as fixed strings, which requires
manual updates when flags change. Replacing it with automated flag
enumeration.

Signed-off-by: Liang Chen <liangchen.linux@gmail.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Link: https://lore.kernel.org/r/20230920125658.46978-1-liangchen.linux@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/pktgen.c