[dpdk-dev] [PATCH v3 2/2] net/vhost: emulate device start/stop behavior

2017-01-01 Thread Charles (Chas) Williams
.dev_start()/.dev_stop() roughly corresponds to the local device's port being up or down. This is different from the remote client being connected which is roughtly link up or down. Emulate the behavior by separately tracking the local start/stop state to determine if we should allow packets to b

[dpdk-dev] [PATCH v3 1/2] net/vhost: create datagram sockets immediately

2017-01-01 Thread Charles (Chas) Williams
If you create a vhost server device, it doesn't create the actual datagram socket until you call .dev_start(). If you call .dev_stop() is also deletes those sockets. For QEMU clients, this is a problem since QEMU doesn't know how to re-attach to datagram sockets that have gone away. To work arou

[dpdk-dev] [PATCH v2 2/2] net/vhost: emulate device start/stop behavior

2017-01-01 Thread Charles (Chas) Williams
.dev_start()/.dev_stop() roughly corresponds to the local device's port being up or down. This is different from the remote client being connected which is roughtly link up or down. Emulate the behavior by separately tracking the local start/stop state to determine if we should allow packets to b

[dpdk-dev] [PATCH v2 1/2] net/vhost: create datagram sockets immediately

2017-01-01 Thread Charles (Chas) Williams
If you create a vhost server device, it doesn't create the actual datagram socket until you call .dev_start(). If you call .dev_stop() is also deletes those sockets. For QEMU clients, this is a problem since QEMU doesn't know how to re-attach to datagram sockets that have gone away. To work arou