From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 9F49D2C2A for ; Fri, 16 Sep 2016 18:29:53 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP; 16 Sep 2016 09:29:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,345,1470726000"; d="scan'208";a="169526101" Received: from sivswdev02.ir.intel.com (HELO localhost.localdomain) ([10.237.217.46]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2016 09:29:53 -0700 From: Ferruh Yigit To: dev@dpdk.org Cc: Ferruh Yigit Date: Fri, 16 Sep 2016 17:26:50 +0100 Message-Id: <1474043212-15663-18-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1473954405-7150-1-git-send-email-ferruh.yigit@intel.com> References: <1473954405-7150-1-git-send-email-ferruh.yigit@intel.com> Subject: [dpdk-dev] [PATCH v2 17/19] kni: updated log messages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2016 16:29:54 -0000 Remove some function entrance logs and changed log level of some logs. Signed-off-by: Ferruh Yigit --- lib/librte_eal/linuxapp/kni/kni_misc.c | 9 ++------- lib/librte_eal/linuxapp/kni/kni_net.c | 6 ++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c index 17299da..e012b50 100644 --- a/lib/librte_eal/linuxapp/kni/kni_misc.c +++ b/lib/librte_eal/linuxapp/kni/kni_misc.c @@ -186,7 +186,7 @@ kni_open(struct inode *inode, struct file *file) /* Create kernel thread for single mode */ if (multiple_kthread_on == 0) { - pr_debug("Single kernel thread for all KNI devices\n"); + pr_info("Single kernel thread for all KNI devices\n"); /* Create kernel thread for RX */ knet->kni_kthread = kthread_run(kni_thread_single, (void *)knet, "kni_single"); @@ -195,7 +195,7 @@ kni_open(struct inode *inode, struct file *file) return PTR_ERR(knet->kni_kthread); } } else - pr_debug("Multiple kernel thread mode enabled\n"); + pr_info("Multiple kernel thread mode enabled\n"); file->private_data = get_net(net); pr_debug("/dev/kni opened\n"); @@ -596,8 +596,6 @@ kni_init(void) { int rc; - pr_debug("######## DPDK kni module loading ########\n"); - if (kni_parse_kthread_mode() < 0) { pr_err("Invalid parameter for kthread_mode\n"); return -EINVAL; @@ -620,8 +618,6 @@ kni_init(void) /* Configure the lo mode according to the input parameter */ kni_net_config_lo_mode(lo_mode); - pr_debug("######## DPDK kni module loaded ########\n"); - return 0; out: @@ -642,7 +638,6 @@ kni_exit(void) #else unregister_pernet_gen_subsys(kni_net_id, &kni_net_ops); #endif - pr_debug("####### DPDK kni module unloaded #######\n"); } module_init(kni_init); diff --git a/lib/librte_eal/linuxapp/kni/kni_net.c b/lib/librte_eal/linuxapp/kni/kni_net.c index 12dd89f..7c3e30b 100644 --- a/lib/librte_eal/linuxapp/kni/kni_net.c +++ b/lib/librte_eal/linuxapp/kni/kni_net.c @@ -560,8 +560,8 @@ kni_net_tx_timeout(struct net_device *dev) static int kni_net_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) { - pr_debug("kni_net_ioctl %d\n", - ((struct kni_dev *)netdev_priv(dev))->group_id); + pr_debug("kni_net_ioctl group:%d cmd:%d\n", + ((struct kni_dev *)netdev_priv(dev))->group_id, cmd); return 0; } @@ -704,8 +704,6 @@ kni_net_init(struct net_device *dev) { struct kni_dev *kni = netdev_priv(dev); - pr_debug("kni_net_init\n"); - init_waitqueue_head(&kni->wq); mutex_init(&kni->sync_lock); -- 2.7.4