net/vhost: emulate device start/stop behavior
authorChas Williams <ciwillia@brocade.com>
Tue, 3 Jan 2017 16:22:43 +0000 (11:22 -0500)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 17 Jan 2017 08:20:18 +0000 (09:20 +0100)
commit1ce3c7fe149f9eb2660d017c98ca1a94f0e35018
treea1b85ea8c8f03241cbfbd4ef407751adacf901b9
parentaed0b12930b3338a9735c9f1bb85b54d61456e43
net/vhost: emulate device start/stop behavior

.dev_start()/.dev_stop() roughly corresponds to the local device's port
being ready.  This is different from the remote client being connected
which is roughly link up or down.  Emulate the device start/stop behavior
by separately tracking the start/stop state to determine if we should
allow packets to be queued to/from the remote client.

Signed-off-by: Chas Williams <ciwillia@brocade.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/vhost/rte_eth_vhost.c