From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.ics.ntt-tx.co.jp (mail05.ics.ntt-tx.co.jp [210.232.35.69]) by dpdk.org (Postfix) with ESMTP id 13EB17D30 for ; Thu, 28 Dec 2017 05:56:12 +0100 (CET) Received: from gwchk03.silk.ntt-tx.co.jp (gwchk03.silk.ntt-tx.co.jp [10.107.0.111]) by mail04.ics.ntt-tx.co.jp (unknown) with ESMTP id vBS4uBUM025233 for unknown; Thu, 28 Dec 2017 13:56:11 +0900 Received: (from root@localhost) by gwchk03.silk.ntt-tx.co.jp (unknown) id vBS4u9id027464 for unknown; Thu, 28 Dec 2017 13:56:09 +0900 Received: from gwchk.silk.ntt-tx.co.jp [10.107.0.110] by gwchk03.silk.ntt-tx.co.jp with ESMTP id PAA27449; Thu, 28 Dec 2017 13:56:09 +0900 Received: from imss03.silk.ntt-tx.co.jp (localhost [127.0.0.1]) by imss03.silk.ntt-tx.co.jp (unknown) with ESMTP id vBS4u8Lf011188 for unknown; Thu, 28 Dec 2017 13:56:08 +0900 Received: from mgate01.silk.ntt-tx.co.jp (smtp02.silk.ntt-tx.co.jp [10.107.0.37]) by imss03.silk.ntt-tx.co.jp (unknown) with ESMTP id vBS4u8Z9011167 for unknown; Thu, 28 Dec 2017 13:56:08 +0900 Message-Id: <201712280456.vBS4u8Z9011167@imss03.silk.ntt-tx.co.jp> Received: from localhost by mgate01.silk.ntt-tx.co.jp (unknown) id vBS4u4bK025622 ; Thu, 28 Dec 2017 13:56:07 +0900 From: x-fn-spp@sl.ntt-tx.co.jp To: spp@dpdk.org Date: Thu, 28 Dec 2017 13:55:53 +0900 X-Mailer: git-send-email 1.9.1 In-Reply-To: <4aae78ff-3b6c-cdfe-a8b7-24ec08b73935@lab.ntt.co.jp> References: <4aae78ff-3b6c-cdfe-a8b7-24ec08b73935@lab.ntt.co.jp> X-TM-AS-MML: No Subject: [spp] [PATCH 46/57] spp_vf: fix a bug in status command X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Dec 2017 04:56:15 -0000 From: Hiroyuki Nakamura Fix the problem that the default port set by classifier_table command is not displayed with the status command. Signed-off-by: Kentaro Watanabe Signed-off-by: Yasufum Ogawa --- 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