qemu-e2k/hw/net
Miao Yan 5ae3e91c35 net/vmxnet3: return correct value for VMXNET3_CMD_GET_DEV_EXTRA_INFO
VMXNET3_CMD_GET_DEV_EXTRA_INFO should return 0 for emulation
mode

This behavior can be observed by the following steps:

1) run a Linux distro on esxi server (5.x+)
2) modify vmxnet3 Linux driver to read the register:

  VMXNET3_WRITE_BAR1_REG(adapter, VMXNET3_REG_CMD, VMXNET3_CMD_GET_DEV_EXTRA_INFO);
  ret =  VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_CMD);
  pr_info("vmxnet3 dev_info: 0x%x\n", ret);

The kernel log will have some like the following message:

  [ 7005.111170] vmxnet3 dev_info: 0x0

Signed-off-by: Miao Yan <yanmiaobest@gmail.com>
Reviewed-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-01-11 11:01:34 +08:00
..
fsl_etsec
rocker error: More error_setg() usage 2015-11-11 18:56:26 +01:00
allwinner_emac.c
cadence_gem.c net: cadence_gem: Set initial MAC address 2015-10-27 10:30:30 +08:00
dp8393x.c
e1000_regs.h e1000: Trivial implementation of various MAC registers 2015-11-12 15:26:53 +08:00
e1000.c -----BEGIN PGP SIGNATURE----- 2015-12-07 14:18:31 +00:00
eepro100.c eepro100: Prevent two endless loops 2015-11-27 10:39:55 +08:00
etraxfs_eth.c
imx_fec.c i.MX: Standardize i.MX FEC debug 2015-10-27 15:59:46 +00:00
lan9118.c lan9118: log and ignore access to invalid registers, rather than aborting 2015-12-07 21:43:48 +08:00
lance.c
Makefile.objs
mcf_fec.c
milkymist-minimac2.c Fix bad error handling after memory_region_init_ram() 2015-09-18 14:39:29 +02:00
mipsnet.c
ne2000-isa.c
ne2000.c net: avoid infinite loop when receiving packets(CVE-2015-5278) 2015-09-15 12:51:14 +01:00
ne2000.h
opencores_eth.c
pcnet-pci.c
pcnet.c pcnet: fix rx buffer overflow(CVE-2015-7512) 2015-12-07 21:43:48 +08:00
pcnet.h
rtl8139.c rtl8139: remove muldiv64() 2015-09-25 14:53:29 +02:00
smc91c111.c net: smc91c111: flush packets on RCR register changes 2015-09-17 12:36:03 +01:00
spapr_llan.c
stellaris_enet.c
vhost_net.c vhost-user: ignore qemu-only features 2015-11-18 18:49:12 +02:00
virtio-net.c virtio-net: correctly drop truncated packets 2015-10-01 16:16:52 +03:00
vmware_utils.h net/vmxnet3: remove redundant VMW_SHPRN(...) definition 2016-01-11 11:01:34 +08:00
vmxnet3.c net/vmxnet3: return correct value for VMXNET3_CMD_GET_DEV_EXTRA_INFO 2016-01-11 11:01:34 +08:00
vmxnet3.h vmxnet3: Add support for VMXNET3_CMD_GET_ADAPTIVE_RING_INFO command 2015-10-12 13:19:29 +08:00
vmxnet_debug.h net/vmxnet3: fix debug macro pattern for vmxnet3 2016-01-11 11:01:34 +08:00
vmxnet_rx_pkt.c
vmxnet_rx_pkt.h
vmxnet_tx_pkt.c net/vmxnet3: Refine l2 header validation 2015-10-12 13:19:29 +08:00
vmxnet_tx_pkt.h
xen_nic.c
xgmac.c
xilinx_axienet.c
xilinx_ethlite.c