[dpdk-dev] [RFC PATCH 5/5] kni: support multiple userspace process working with kni module

Ferruh Yigit ferruh.yigit at intel.com
Fri May 5 15:08:52 CEST 2017


On 5/3/2017 12:21 PM, Hemant Agrawal wrote:
> in case of multiple application using the same KNI module,
> protect that one application will only clean it's own devices.

Idea looks OK, but there is already a check in the module that prevents
/dev/kni opened by more than one process [1], did you already removed
that limitation? Or is this something else?

[1]
kni_open(...) {
...
if (test_and_set_bit(KNI_DEV_IN_USE_BIT_NUM, &knet->device_in_use))
	return -EBUSY;
	...
}

> 
> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
> ---
<...>


More information about the dev mailing list