Statistics
| Branch: | Revision:

root / hw / net @ e2314fda

Name Size
Makefile.objs 1.2 kB
cadence_gem.c 41.3 kB
dp8393x.c 26.4 kB
e1000.c 50.1 kB
e1000_regs.h 49.6 kB
eepro100.c 69.2 kB
etraxfs_eth.c 16.7 kB
lan9118.c 39.2 kB
lance.c 5.1 kB
mcf_fec.c 12.3 kB
milkymist-minimac2.c 14 kB
mipsnet.c 7.4 kB
ne2000-isa.c 3.6 kB
ne2000.c 22.8 kB
ne2000.h 1 kB
opencores_eth.c 18.9 kB
pcnet-pci.c 11.2 kB
pcnet.c 54.6 kB
pcnet.h 2.1 kB
rtl8139.c 102 kB
smc91c111.c 22.2 kB
spapr_llan.c 16.8 kB
stellaris_enet.c 13.1 kB
vhost_net.c 8.4 kB
virtio-net.c 48.2 kB
vmware_utils.h 3.5 kB
vmxnet3.c 72.2 kB
vmxnet3.h 23.8 kB
vmxnet_debug.h 4.3 kB
vmxnet_rx_pkt.c 4.1 kB
vmxnet_rx_pkt.h 3.8 kB
vmxnet_tx_pkt.c 15.9 kB
vmxnet_tx_pkt.h 3.2 kB
xen_nic.c 13.8 kB
xgmac.c 14.6 kB
xilinx_axienet.c 28 kB
xilinx_ethlite.c 7.7 kB

Latest revisions

# Date Author Comment
11785f53 12/10/2013 03:28 pm Peter Crosthwaite

net/cadence_gem: Don't assert against 0 buffer address

This has no real hardware analog and asserting correctness of DMA
addresses is not a perhiperal level problem. Delete.

Signed-off-by: Peter Crosthwaite <>
Message-id: ...

7cfd65e4 12/10/2013 03:28 pm Peter Crosthwaite

net/cadence_gem: simplify rx buf descriptor walking

There was a replication of the rx descriptor address walking logic.
Reorder the flow control to remove. This refactoring also obsoletes
the local variables packet_desc_addr and last_desc_addr.

Signed-off-by: Peter Crosthwaite <>...

06c2fe95 12/10/2013 03:28 pm Peter Crosthwaite

net/cadence_gem: Prefetch rx descriptors ASAP

The real hardware prefetches rx buffer descriptors ASAP and
potentially throws relevant interrupts following the fetch
even in the absence of a received packet.

Reported-by: Deepika Dhamija <>...

63af1e0c 12/10/2013 03:28 pm Peter Crosthwaite

net/cadence_gem: Implement RX descriptor match mode flags

The various Rx packet address matching mode flags were not being set in
the rx descriptor. Implement.

Reported-by: Deepika Dhamija <>
Signed-off-by: Peter Crosthwaite <>...

a03f7429 12/10/2013 03:28 pm Peter Crosthwaite

net/cadence_gem: Implement SAR match bit in rx desc

Bit 27 of the RX buffer desc word 1 should be set when the packet was
accepted due to specific address register match. Implement.

This feature is absent from the Xilinx documentation (UG585) but the
behaviour is tested as accurate on real hardware....

64eb9301 12/10/2013 03:28 pm Peter Crosthwaite

net/cadence_gem: Implement SAR (de)activation

The Specific address registers can be enabled or disabled by software.
QEMU was assuming they were always enabled. Implement the
disable/enable feature. SARs are disabled by writing to the lower half
register. They are re-enabled by then writing the upper half....

17cf2c76 12/10/2013 03:28 pm Peter Crosthwaite

net/cadence_gem: Add missing VMSTATE_END_OF_LIST

Signed-off-by: Peter Crosthwaite <>
Message-id:
Signed-off-by: Peter Maydell <>

30570698 12/10/2013 03:28 pm Peter Crosthwaite

net/cadence_gem: Fix rx multi-fragment packets

Bytes_to_copy was being updated before its final use where it
advances the rx buffer pointer. This was causing total mayhem,
where packet data for any subsequent fragments was being fetched
from the wrong place....

191946c5 12/10/2013 03:28 pm Peter Crosthwaite

net/cadence_gem: Fix small packet FCS stripping

The minimum packet size is 64, however this is before FCS stripping
occurs. So when FCS stripping the minimum packet size is 60. Fix.

Reported-by: Deepika Dhamija <>
Signed-off-by: Peter Crosthwaite <>...

e2314fda 12/10/2013 03:28 pm Peter Crosthwaite

net/cadence_gem: Fix register w1c logic

This write-1-clear logic was incorrect. It was always clearing w1c
bits regardless of whether the written value was 1 or not. i.e. it
was implementing a write-anything-to-clear strategy.

Signed-off-by: Peter Crosthwaite <>...

View revisions

Also available in: Atom