summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorMiao Yan2015-12-23 07:06:10 +0100
committerJason Wang2016-01-11 04:01:34 +0100
commit8856be151241c3647b6eb0b91b10f2603bbe430c (patch)
tree35e516e25f727cbff60642df133b0efd0337fb07 /hw
parentnet/vmxnet3: return correct value for VMXNET3_CMD_GET_DEV_EXTRA_INFO (diff)
downloadqemu-8856be151241c3647b6eb0b91b10f2603bbe430c.tar.gz
qemu-8856be151241c3647b6eb0b91b10f2603bbe430c.tar.xz
qemu-8856be151241c3647b6eb0b91b10f2603bbe430c.zip
net/vmxnet3: return 0 on unknown command
Return 0 on unknown command, this is what esxi (5.x+) behaves. Signed-off-by: Miao Yan <yanmiaobest@gmail.com> Reviewed-by: Dmitry Fleytman <dmitry@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/net/vmxnet3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c
index da59d7df2c..6ba7c7558c 100644
--- a/hw/net/vmxnet3.c
+++ b/hw/net/vmxnet3.c
@@ -1716,7 +1716,7 @@ static uint64_t vmxnet3_get_command_status(VMXNET3State *s)
default:
VMW_WRPRN("Received request for unknown command: %x", s->last_command);
- ret = -1;
+ ret = 0;
break;
}