On 21-Jun-18 3:00 AM, Qi Zhang wrote:
The sample code demonstrate device (ethdev only) management
at multi-process envrionment. User can attach/detach a device
on primary process and see it is synced on secondary process
automatically, also user can lock a device to prevent it be
detached or unlock it to go back to default behaviour.
How to start?
./devmgm_mp --proc-type=auto
Command Line Example:
help
list
/* attach a af_packet vdev */
attach net_af_packet,iface=eth0
/* detach port 0 */
detach 0
/* attach a private af_packet vdev (secondary process only)*/
attachp net_af_packet,iface=eth0
/* detach a private device (secondary process only) */
detachp 0
/* lock port 0 */
lock 0
/* unlock port 0 */
unlock 0
Signed-off-by: Qi Zhang <qi.z.zh...@intel.com>
---
Hi Qi,
I believe you've missed my comments for v1 of this patch.
--
Thanks,
Anatoly