!10 xdp-bench: Add correct logging message for XDP_PASS
From: @baiguoguo Reviewed-by: @chenyuan0, @wonleing Signed-off-by: @chenyuan0, @wonleing
This commit is contained in:
commit
56e05b2e61
@ -0,0 +1,25 @@
|
|||||||
|
From 11ef232c878b8499498106d5ede49d7d1bf0fc9d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nimrod Oren <noren@nvidia.com>
|
||||||
|
Date: Mon, 4 Mar 2024 17:11:16 +0200
|
||||||
|
Subject: [PATCH] xdp-bench: Add correct logging message for XDP_PASS
|
||||||
|
|
||||||
|
---
|
||||||
|
xdp-bench/xdp_basic.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/xdp-bench/xdp_basic.c b/xdp-bench/xdp_basic.c
|
||||||
|
index bdb8a0b..f808966 100644
|
||||||
|
--- a/xdp-bench/xdp_basic.c
|
||||||
|
+++ b/xdp-bench/xdp_basic.c
|
||||||
|
@@ -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);
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -7,13 +7,14 @@
|
|||||||
|
|
||||||
Name: xdp-tools
|
Name: xdp-tools
|
||||||
Version: 1.4.1
|
Version: 1.4.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Utilities and example programs for use with XDP
|
Summary: Utilities and example programs for use with XDP
|
||||||
%global _soversion 1.4.0
|
%global _soversion 1.4.0
|
||||||
|
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/xdp-project/%{name}
|
URL: https://github.com/xdp-project/%{name}
|
||||||
Source0: https://github.com/xdp-project/%{name}/archive/v%{version}.tar.gz
|
Source0: https://github.com/xdp-project/%{name}/archive/v%{version}.tar.gz
|
||||||
|
Patch01: backport-xdp-bench-Add-correct-logging-message-for-XDP_PASS.patch
|
||||||
|
|
||||||
BuildRequires: libbpf-devel
|
BuildRequires: libbpf-devel
|
||||||
BuildRequires: elfutils-libelf-devel
|
BuildRequires: elfutils-libelf-devel
|
||||||
@ -117,6 +118,9 @@ make install V=1
|
|||||||
%{_libdir}/pkgconfig/libxdp.pc
|
%{_libdir}/pkgconfig/libxdp.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 11 2024 baiguo <baiguo@kylinos.cn> 1.4.1-2
|
||||||
|
- xdp-bench: Add correct logging message for XDP_PASS
|
||||||
|
|
||||||
* Fri Dec 22 2023 Ouuleilei <wangliu@iscas.ac.cn> 1.4.1-1
|
* Fri Dec 22 2023 Ouuleilei <wangliu@iscas.ac.cn> 1.4.1-1
|
||||||
- upgrade to 1.4.1
|
- upgrade to 1.4.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user