]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commit
pcnet: add loopback mode emulation
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 2 Sep 2008 16:18:46 +0000 (16:18 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 2 Sep 2008 16:18:46 +0000 (16:18 +0000)
commit89b190a2bb82b1226b5cc05846e9a063c0d0efa3
tree0a74b83bb3dca48e39c6cdf4a8dbc515fa13396a
parentb319feb72d1aba5141f86bec46942ee34e53897e
pcnet: add loopback mode emulation

This patch enhances the pcnet NIC emulation with better loopback mode
support, including CRC generation for looped-back packets in "raw" mode.
The patch has practically no impact on the normal RX and TX path.

Successfully tested against an ancient proprietary pcnet driver that
does a lot of hardware checks on boot-up and now works fine over qemu as
well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5135 c046a42c-6fe2-441c-8c8c-71466251a162
hw/pcnet.c