net/virtio: support to turn on/off traffic flow
authorZhiyong Yang <zhiyong.yang@intel.com>
Wed, 19 Apr 2017 06:29:21 +0000 (14:29 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 19 Apr 2017 08:49:06 +0000 (10:49 +0200)
commitb7be4f461ad426b343b105d13c5d89b629d24026
tree8fd0ac80f68f7fa47eb91b344f403c92b5e0995a
parent260aae9ad9621e3e758f1443abb8fcbc25ece07c
net/virtio: support to turn on/off traffic flow

Current virtio_dev_stop only disables interrupt and marks link down,
When it is invoked, tx/rx traffic flows still work. This is a strange
behavior. The patch supports the switch of flow.

Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_rxtx_simple.c
drivers/net/virtio/virtio_rxtx_simple_neon.c
drivers/net/virtio/virtio_rxtx_simple_sse.c