Skip to content

Commit cecda0c

Browse files
nimrod-orentohojo
authored andcommitted
xdp-bench: Add correct logging message for XDP_PASS
Before this commit, the XDP_TX message was used for the XDP_PASS case. Signed-off-by: Nimrod Oren <[email protected]>
1 parent 7fe0a09 commit cecda0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xdp-bench/xdp_basic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static int do_basic(const struct basic_opts *opt, enum xdp_action action)
137137
ret = EXIT_FAIL;
138138

139139
pr_info("%s packets on %s (ifindex %d; driver %s)\n",
140-
action == XDP_DROP ? "Dropping" : "Hairpinning (XDP_TX)",
140+
action == XDP_DROP ? "Dropping" : action == XDP_TX ? "Hairpinning (XDP_TX)" : "Passing",
141141
opt->iface_in.ifname, opt->iface_in.ifindex, get_driver_name(opt->iface_in.ifindex));
142142

143143
ret = sample_run(opt->interval, NULL, NULL);

0 commit comments

Comments
 (0)