qemu-e2k/hw/net
Stefano Garzarella ba550851f5 virtio-net: make VirtIOFeature usable for other virtio devices
In order to use VirtIOFeature also in other virtio devices, we move
its declaration and the endof() macro (renamed in virtio_endof())
in virtio.h.
We add virtio_feature_get_config_size() function to iterate the array
of VirtIOFeature and to return the config size depending on the
features enabled. (as virtio_net_set_config_size() did)

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20190221103314.58500-5-sgarzare@redhat.com
Message-Id: <20190221103314.58500-5-sgarzare@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2019-02-22 09:42:16 +00:00
..
can
fsl_etsec etsec: fix IRQ (un)masking 2018-07-16 11:18:09 +10:00
rocker avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
allwinner_emac.c
cadence_gem.c net: cadence_gem: Remove incorrect assert() 2018-11-26 13:41:42 +00:00
dp8393x.c hw/net/dp8393x: don't make prom region 'nomigrate' 2018-07-09 14:51:35 +01:00
e1000_regs.h
e1000.c e1000: indicate dropped packets in HW counters 2018-10-19 11:15:04 +08:00
e1000e_core.c e1000e: Prevent MSI/MSI-X storms 2018-07-20 08:30:48 +08:00
e1000e_core.h e1000e: Prevent MSI/MSI-X storms 2018-07-20 08:30:48 +08:00
e1000e.c
e1000x_common.c
e1000x_common.h
eepro100.c
etraxfs_eth.c net: etraxfs_eth: add a reset method 2018-10-24 06:44:59 -03:00
ftgmac100.c ftgmac100: implement the new MDIO interface on Aspeed SoC 2019-01-21 10:23:11 +00:00
imx_fec.c
lan9118.c net: lan9118: convert SysBus init method to a realize method 2018-10-24 06:44:59 -03:00
lance.c net: lance: convert SysBus init method to a realize method 2018-10-24 06:44:59 -03:00
Makefile.objs hw/pci-host/Makefile.objs: make CONFIGS clear for PCI EXPRESS 2019-02-05 16:50:19 +01:00
mcf_fec.c
milkymist-minimac2.c QEMU trivial patches collected between June and October 2018 2018-10-30 15:49:55 +00:00
mipsnet.c avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
ne2000-isa.c
ne2000.c avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
ne2000.h
net_rx_pkt.c
net_rx_pkt.h
net_tx_pkt.c
net_tx_pkt.h
opencores_eth.c net: opencores_eth: convert SysBus init method to a realize method 2018-10-24 06:44:59 -03:00
pcnet-pci.c hw/net/pcnet-pci: Unify pcnet_ioport_read/write and pcnet_mmio_read/write 2018-09-25 15:13:24 +01:00
pcnet.c pcnet: fix possible buffer overflow 2018-10-19 11:15:04 +08:00
pcnet.h
rtl8139.c rtl8139: fix possible out of bound access 2018-10-19 11:15:04 +08:00
smc91c111.c net: smc91c111: convert SysBus init method to a realize method 2018-10-24 06:44:59 -03:00
spapr_llan.c
stellaris_enet.c net: stellaris_enet: add a reset method 2018-10-24 06:44:59 -03:00
sungem.c
sunhme.c
trace-events e1000: indicate dropped packets in HW counters 2018-10-19 11:15:04 +08:00
vhost_net.c
virtio-net.c virtio-net: make VirtIOFeature usable for other virtio devices 2019-02-22 09:42:16 +00:00
vmware_utils.h
vmxnet3_defs.h vmxnet3: Move some definitions to header file 2018-12-22 11:09:56 +02:00
vmxnet3.c avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
vmxnet3.h
vmxnet_debug.h
xen_nic.c xen: re-name XenDevice to XenLegacyDevice... 2019-01-14 13:45:40 +00:00
xgmac.c net: xgmac: convert SysBus init method to a realize method 2018-10-24 06:44:59 -03:00
xilinx_axienet.c
xilinx_ethlite.c