diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-05-15 13:58:55 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-05-27 09:51:05 +0100 |
commit | 80b832c300c2fc39c68e0ab095d408cb9199cfa0 (patch) | |
tree | 70f684044340242ad58bb5e5a095399a3928aadd /net/tap.c | |
parent | a8a21be9855e0bb0947a7325d0d1741a8814f21e (diff) |
tap: Convert tap_set_sndbuf() to Error
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1431691143-1015-8-git-send-email-armbru@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'net/tap.c')
-rw-r--r-- | net/tap.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -610,7 +610,9 @@ static int net_init_tap_one(const NetdevTapOptions *tap, NetClientState *peer, TAPState *s = net_tap_fd_init(peer, model, name, fd, vnet_hdr); int vhostfd; - if (tap_set_sndbuf(s->fd, tap) < 0) { + tap_set_sndbuf(s->fd, tap, &err); + if (err) { + error_report_err(err); return -1; } |