diff --git a/kernel/branches/net/drivers/pcnet32.asm b/kernel/branches/net/drivers/pcnet32.asm index cb75033bc5..52279a320f 100644 --- a/kernel/branches/net/drivers/pcnet32.asm +++ b/kernel/branches/net/drivers/pcnet32.asm @@ -996,6 +996,12 @@ transmit: and [device.cur_tx], 3 DEBUGF 2," - Packet Sent! " +; Update stats + inc [device.packets_tx] + mov eax, [esp+8] + add dword [device.bytes_tx], eax + adc dword [device.bytes_tx + 4], 0 + .finish: DEBUGF 2," - Done!\n" stdcall KernelFree, [esp+4] @@ -1094,6 +1100,11 @@ int_handler: test eax, eax ; Test if we allocated succesfully jz .abort ; +; Update stats + add dword [device.bytes_rx], ecx + adc dword [device.bytes_rx + 4], 0 + inc dword [device.packets_rx] + push ebx push .receiver_test_loop ; push ecx ; for eth_receiver