kni: restrict bifurcated device support
authorFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Nov 2021 16:46:17 +0000 (16:46 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Nov 2021 13:45:55 +0000 (14:45 +0100)
commita1b2558cdb6aff0c459c9cb11b382840b66d1d2b
treefaf3b2ec6b711a6a3e98f5cd6f8223aeb2095b01
parent0f4611cc2642aa19a1fb845c443d10dd83f18ec0
kni: restrict bifurcated device support

To enable bifurcated device support, rtnl_lock is released before calling
userspace callbacks and asynchronous requests are enabled.

But these changes caused more issues, like bug #809, #816. To reduce the
scope of the problems, the bifurcated device support related changes are
only enabled when it is requested explicitly with new 'enable_bifurcated'
module parameter.
And bifurcated device support is disabled by default.

So the bifurcated device related problems are isolated and they can be
fixed without impacting all use cases.

Bugzilla ID: 816
Fixes: 631217c76135 ("kni: fix kernel deadlock with bifurcated device")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Igor Ryzhov <iryzhov@nfware.com>
doc/guides/prog_guide/kernel_nic_interface.rst
doc/guides/rel_notes/release_21_11.rst
kernel/linux/kni/kni_dev.h
kernel/linux/kni/kni_misc.c
kernel/linux/kni/kni_net.c