diff options
author | Nicholas Bellinger | 2012-08-21 22:52:07 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2012-09-07 08:15:08 +0200 |
commit | a96ed02fc73e23748c8b3e38880eeac91f83ab9f (patch) | |
tree | 86a10ae01782252461f841c9a1e14fa2f8298f8a /net/tap.c | |
parent | pcie_aer: clear cmask for Advanced Error Interrupt Message Number (diff) | |
download | qemu-a96ed02fc73e23748c8b3e38880eeac91f83ab9f.tar.gz qemu-a96ed02fc73e23748c8b3e38880eeac91f83ab9f.tar.xz qemu-a96ed02fc73e23748c8b3e38880eeac91f83ab9f.zip |
monitor: Rename+move net_handle_fd_param -> monitor_handle_fd_param
This patch renames+moves the net_handle_fd_param() caller used to
obtain a file descriptor from either qemu_parse_fd() (the normal case)
or from monitor_get_fd() (migration case) into a generically prefixed
monitor_handle_fd_param() to be used by vhost-scsi code.
Also update net/[socket,tap].c consumers to use the new prefix.
Reported-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'net/tap.c')
-rw-r--r-- | net/tap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -610,7 +610,7 @@ int net_init_tap(const NetClientOptions *opts, const char *name, return -1; } - fd = net_handle_fd_param(cur_mon, tap->fd); + fd = monitor_handle_fd_param(cur_mon, tap->fd); if (fd == -1) { return -1; } @@ -686,7 +686,7 @@ int net_init_tap(const NetClientOptions *opts, const char *name, int vhostfd; if (tap->has_vhostfd) { - vhostfd = net_handle_fd_param(cur_mon, tap->vhostfd); + vhostfd = monitor_handle_fd_param(cur_mon, tap->vhostfd); if (vhostfd == -1) { return -1; } |