[dpdk-dev] [PATCH v2] kni: Bug fix in module_init and module_exit

2016-09-02 Thread Vincent Guo
Fix pernet calls when HAVE_SIMPLIFIED_PERNET_OPERATIONS is not set. Fixes: e6734d21b4e1 ("kni: fix build with kernel 2.6.32") Signed-off-by: Vincent Guo --- lib/librte_eal/linuxapp/kni/kni_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_ea

[dpdk-dev] [PATCH] Bug fix in module_init and module_exit

2016-08-29 Thread Vincent Guo
Fix pernet calls when HAVE_SIMPLIFIED_PERNET_OPERATIONS is not set. Signed-off-by: Vincent Guo --- lib/librte_eal/linuxapp/kni/kni_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c

[PATCH] kni: bug fix in module_init and module_exit unregister_XXX should be called when module exits or error occurs during module init, but register_XXX is called in case that HAVE_SIMPLIFIED_PERNET

2016-08-25 Thread Vincent Guo
--- lib/librte_eal/linuxapp/kni/kni_misc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c index 67e9b7d..d7850be 100644 --- a/lib/librte_eal/linuxapp/kni/kni_misc.c +++ b/lib/librte_eal/