|
|
4aca6e |
From 7adefadcd79a33ba625a948c42745a7ff51325f6 Mon Sep 17 00:00:00 2001
|
|
|
4aca6e |
From: Ivan Vecera <ivecera@redhat.com>
|
|
|
4aca6e |
Date: Wed, 31 May 2017 15:45:26 +0200
|
|
|
4aca6e |
Subject: [PATCH 168/169] tc: matchall: Print skip flags when dumping a filter
|
|
|
4aca6e |
|
|
|
4aca6e |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1435624
|
|
|
4aca6e |
Upstream status: iproute2.git commit afdc1fed243f5
|
|
|
4aca6e |
|
|
|
4aca6e |
commit afdc1fed243f5499a53f5fda202031cf4c4d4044
|
|
|
4aca6e |
Author: Or Gerlitz <ogerlitz@mellanox.com>
|
|
|
4aca6e |
Date: Thu Feb 9 15:10:14 2017 +0200
|
|
|
4aca6e |
|
|
|
4aca6e |
tc: matchall: Print skip flags when dumping a filter
|
|
|
4aca6e |
|
|
|
4aca6e |
Print the skip flags when we dump a filter.
|
|
|
4aca6e |
|
|
|
4aca6e |
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
|
|
|
4aca6e |
Acked by: Yotam Gigi <yotamg@mellanox.com>
|
|
|
4aca6e |
Reviewed-by: Simon Horman <simon.horman@netronome.com>
|
|
|
4aca6e |
|
|
|
4aca6e |
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
|
|
|
4aca6e |
---
|
|
|
4aca6e |
tc/f_matchall.c | 9 +++++++++
|
|
|
4aca6e |
1 file changed, 9 insertions(+)
|
|
|
4aca6e |
|
|
|
4aca6e |
diff --git a/tc/f_matchall.c b/tc/f_matchall.c
|
|
|
4aca6e |
index 04e524e3..ac486308 100644
|
|
|
4aca6e |
--- a/tc/f_matchall.c
|
|
|
4aca6e |
+++ b/tc/f_matchall.c
|
|
|
4aca6e |
@@ -130,6 +130,15 @@ static int matchall_print_opt(struct filter_util *qu, FILE *f,
|
|
|
4aca6e |
sprint_tc_classid(rta_getattr_u32(tb[TCA_MATCHALL_CLASSID]), b1));
|
|
|
4aca6e |
}
|
|
|
4aca6e |
|
|
|
4aca6e |
+ if (tb[TCA_MATCHALL_FLAGS]) {
|
|
|
4aca6e |
+ __u32 flags = rta_getattr_u32(tb[TCA_MATCHALL_FLAGS]);
|
|
|
4aca6e |
+
|
|
|
4aca6e |
+ if (flags & TCA_CLS_FLAGS_SKIP_HW)
|
|
|
4aca6e |
+ fprintf(f, "\n skip_hw");
|
|
|
4aca6e |
+ if (flags & TCA_CLS_FLAGS_SKIP_SW)
|
|
|
4aca6e |
+ fprintf(f, "\n skip_sw");
|
|
|
4aca6e |
+ }
|
|
|
4aca6e |
+
|
|
|
4aca6e |
if (tb[TCA_MATCHALL_ACT])
|
|
|
4aca6e |
tc_print_action(f, tb[TCA_MATCHALL_ACT]);
|
|
|
4aca6e |
|
|
|
4aca6e |
--
|
|
|
4aca6e |
2.13.0
|
|
|
4aca6e |
|