|
From: | Jason Wang |
Subject: | Re: [Qemu-devel] [PATCH v5 2/4][RFC] tap: do not close fd if only vhost failed to initialize |
Date: | Thu, 11 Jan 2018 11:34:52 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
On 2018年01月10日 15:39, Zhoujian (jay) wrote:
+ *vhost_init_failed = true;Why not simply check s->vhost_net after call net_init_tap_one()?s->vhost_net is always NULL if net_init_tap_one() failed, it can't distinguish failure reasons.
On which condition net_init_tap_one() fail but s->vhost_net is set? Thanks
[Prev in Thread] | Current Thread | [Next in Thread] |