aboutsummaryrefslogtreecommitdiff
path: root/hw/net
diff options
context:
space:
mode:
authorMiao Yan <yanmiaobest@gmail.com>2015-12-22 22:06:10 -0800
committerJason Wang <jasowang@redhat.com>2016-01-11 11:01:34 +0800
commit8856be151241c3647b6eb0b91b10f2603bbe430c (patch)
tree35e516e25f727cbff60642df133b0efd0337fb07 /hw/net
parent5ae3e91c3502df90fb0ca9c76ac6eb5c2363264f (diff)
downloadqemu-8856be151241c3647b6eb0b91b10f2603bbe430c.zip
qemu-8856be151241c3647b6eb0b91b10f2603bbe430c.tar.gz
qemu-8856be151241c3647b6eb0b91b10f2603bbe430c.tar.bz2
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/net')
-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 da59d7d..6ba7c75 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;
}