hw/net: Make NetCanReceive() return a boolean
commitb8c4b67e3ec3918a40234e5c56221f780c7856fc
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 5 Mar 2020 17:56:49 +0000 (5 18:56 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 31 Mar 2020 13:14:35 +0000 (31 21:14 +0800)
tree1ca475ca3fe280e0f857cfe1160b52753b53bd72
parent3317db743972f665e2753c75703538d51241350a
hw/net: Make NetCanReceive() return a boolean

The NetCanReceive handler return whether the device can or
can not receive new packets. Make it obvious by returning
a boolean type.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
20 files changed:
hw/net/allwinner_emac.c
hw/net/cadence_gem.c
hw/net/dp8393x.c
hw/net/e1000.c
hw/net/e1000e.c
hw/net/ftgmac100.c
hw/net/i82596.c
hw/net/i82596.h
hw/net/imx_fec.c
hw/net/opencores_eth.c
hw/net/rtl8139.c
hw/net/smc91c111.c
hw/net/spapr_llan.c
hw/net/sungem.c
hw/net/sunhme.c
hw/net/virtio-net.c
hw/net/xilinx_ethlite.c
include/net/net.h
net/filter-buffer.c
net/hub.c