From: Frank Liang Date: Thu, 24 Jul 2025 16:21:07 +0000 (+0800) Subject: xdp-trafficgen: fix probe_options missing END_OPTIONS X-Git-Url: https://git.feebdaed.xyz/?a=commitdiff_plain;h=180fa464467b4438ddd93b68068a37dfe853930c;p=0xmirror%2Fxdp-tools.git xdp-trafficgen: fix probe_options missing END_OPTIONS Probe does not work w/o "-i" option. Fix the error by adding END_OPTIONS to probe_options. $ sudo xdp-trafficgen probe -i ens5 Missing required option '--interface' Usage: xdp-trafficgen [options] Use --help (or -h) to see full option list. Signed-off-by: Frank Liang --- diff --git a/xdp-trafficgen/xdp-trafficgen.c b/xdp-trafficgen/xdp-trafficgen.c index 9904906..797d753 100644 --- a/xdp-trafficgen/xdp-trafficgen.c +++ b/xdp-trafficgen/xdp-trafficgen.c @@ -1031,6 +1031,7 @@ static struct prog_option probe_options[] = { .metavar = "", .short_opt = 'i', .help = "Probe features of device "), + END_OPTIONS }; int do_probe(const void *opt, __unused const char *pin_root_path)