{
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;
/* 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:
#else
unregister_pernet_gen_subsys(kni_net_id, &kni_net_ops);
#endif
- pr_debug("####### DPDK kni module unloaded #######\n");
}
module_init(kni_init);
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;
}
{
struct kni_dev *kni = netdev_priv(dev);
- pr_debug("kni_net_init\n");
-
init_waitqueue_head(&kni->wq);
mutex_init(&kni->sync_lock);