[dpdk-dev] [PATCH] kni: allow per-net instances

2015-10-22 Thread Zhang, Helin
pdk-dev] [PATCH] kni: allow per-net instances > > There is a global variable 'device_in_use' which is used to make sure only one > instance is using /dev/kni device. If you were using LXC, you will find there > is only > one instance of KNI example could be run even differnt

[dpdk-dev] [PATCH] kni: allow per-net instances

2015-10-21 Thread Thomas Monjalon
Hi, It may look strange but you have to ask for reviews of your patches. Otherwise, people forget to check it. Helin, You are the KNI maintainer. Could you look at it please? 2015-07-02 18:12, Dex Chen: > There is a global variable 'device_in_use' which is used to make sure > only one instance is

[dpdk-dev] [PATCH] kni: allow per-net instances

2015-10-21 Thread Stephen Hemminger
On Thu, 2 Jul 2015 18:12:13 +0800 Dex Chen wrote: > +static __net_exit void kni_exit_net(struct net *net) > +{ > + /* > + * Nothing to do here. > + * Assuming all cleanup jobs were done in kni_release(). > + */ > +} I don't think you need an exit stub. Looks like kernel does

[dpdk-dev] [PATCH] kni: allow per-net instances

2015-07-02 Thread Dex Chen
There is a global variable 'device_in_use' which is used to make sure only one instance is using /dev/kni device. If you were using LXC, you will find there is only one instance of KNI example could be run even differnt namespaces were created. In order to have /dev/kni used simultaneously in diff