Skip to content

Commit

Permalink
xdp-bench: Add correct logging message for XDP_PASS
Browse files Browse the repository at this point in the history
Before this commit, the XDP_TX message was used for the XDP_PASS case.

Signed-off-by: Nimrod Oren <[email protected]>
  • Loading branch information
nimrod-oren authored and tohojo committed Apr 2, 2024
1 parent 7fe0a09 commit cecda0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdp-bench/xdp_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static int do_basic(const struct basic_opts *opt, enum xdp_action action)
ret = EXIT_FAIL;

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

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

0 comments on commit cecda0c

Please sign in to comment.