[spp] [PATCH 46/57] spp_vf: fix a bug in status command
x-fn-spp at sl.ntt-tx.co.jp
x-fn-spp at sl.ntt-tx.co.jp
Thu Dec 28 05:55:53 CET 2017
From: Hiroyuki Nakamura <nakamura.hioryuki at po.ntt-tx.co.jp>
Fix the problem that the default port set by classifier_table command
is not displayed with the status command.
Signed-off-by: Kentaro Watanabe <watanabe.kentaro.z01 at as.ntt-tx.co.jp>
Signed-off-by: Yasufum Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
src/vf/classifier_mac.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/vf/classifier_mac.c b/src/vf/classifier_mac.c
index 9769b30..a088040 100644
--- a/src/vf/classifier_mac.c
+++ b/src/vf/classifier_mac.c
@@ -554,6 +554,17 @@ int spp_classifier_mac_iterate_table(
RTE_LOG(DEBUG, SPP_CLASSIFIER_MAC,
"Core[%u] Start iterate classifier table.\n", i);
+ if (classifier_info->default_classified >= 0) {
+ port.if_type = (classified_data + classifier_info->default_classified)->if_type;
+ port.if_no = (classified_data + classifier_info->default_classified)->if_no_global;
+
+ (*params->element_proc)(
+ params->opaque,
+ SPP_CLASSIFIER_TYPE_MAC,
+ SPP_CONFIG_DEFAULT_CLASSIFIED_SPEC_STR,
+ &port);
+ }
+
while(1) {
ret = rte_hash_iterate(classifier_info->classifier_table,
&key, &data, &next);
--
1.9.1
More information about the spp
mailing list