summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.bie@intel.com>2018-10-29 13:28:04 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-11-05 15:01:25 +0100
commit86d4b0618495faf58ef5e698b3c8ea76e82b54d6 (patch)
treed95aaf17d3a70edb84702d52884c17b880a7063a /drivers
parentf457e9007a117a2ca8fd00ed9ee29e734d04752d (diff)
downloaddpdk-86d4b0618495faf58ef5e698b3c8ea76e82b54d6.zip
dpdk-86d4b0618495faf58ef5e698b3c8ea76e82b54d6.tar.gz
dpdk-86d4b0618495faf58ef5e698b3c8ea76e82b54d6.tar.xz
net/virtio-user: do not make vhost channel non-block
There is no need to make the vhost user channel nonblock, and making it nonblock will make vhost_user_read() fail with EAGAIN when vhost messages need a reply. Fixes: bd8f50a45d0f ("net/virtio-user: support server mode") Cc: stable@dpdk.org Signed-off-by: Tiwei Bie <tiwei.bie@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/virtio/virtio_user_ethdev.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c
index 3cf8bc1..a31b9b4 100644
--- a/drivers/net/virtio/virtio_user_ethdev.c
+++ b/drivers/net/virtio/virtio_user_ethdev.c
@@ -28,7 +28,6 @@ static int
virtio_user_server_reconnect(struct virtio_user_dev *dev)
{
int ret;
- int flag;
int connectfd;
struct rte_eth_dev *eth_dev = &rte_eth_devices[dev->port_id];
@@ -49,9 +48,6 @@ virtio_user_server_reconnect(struct virtio_user_dev *dev)
dev->features &= dev->device_features;
- flag = fcntl(connectfd, F_GETFD);
- fcntl(connectfd, F_SETFL, flag | O_NONBLOCK);
-
ret = virtio_user_start_device(dev);
if (ret < 0)
return -1;