[dpdk-dev] [PATCH v8 3/3] net/tap: allow secondary process to access primary device queues

Ferruh Yigit ferruh.yigit at intel.com
Wed Oct 17 18:02:06 CEST 2018


On 10/17/2018 3:45 PM, Raslan Darawsheh wrote:
> In the case the device is created by the primary process,
> the secondary must request some file descriptors to attach the queues.
> The file descriptors are shared via IPC Unix socket.
> 
> Thanks to the IPC synchronization, the secondary process
> is now able to do Rx/Tx on a TAP created by the primary process.
> 
> Signed-off-by: Raslan Darawsheh <rasland at mellanox.com>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> 
> ---
>     v2:
>        - translate file descriptors via IPC API
>        - add documentation
>     v3:
>        - rabse the commit
>        - use private static array for fd's to be local for each process
> 
>     v4:
>        - removed TODO and FIXME tags
>        - used strlcpy instead of strcpy
> 
>     v5: rebase the commit on top of Alejandro Lucero patch for secondary
>         process private pointer.
>         http://patches.dpdk.org/patch/46185/
> 
>     v6: reword the commit log
> 
>     v7: rely on tap_device_count for registration
>     v8: fix the fail recovery

The code is exact same with v7, perhaps send wrong branch/code ? (or testing
your luck :)


More information about the dev mailing list