Add network packet error counters.
git-svn-id: svn://kolibrios.org@8896 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
7abba94e8c
commit
3868bd567a
@ -111,13 +111,21 @@ struct NET_DEVICE
|
||||
reset dd ? ;
|
||||
transmit dd ? ;
|
||||
|
||||
state dd ? ; link state (0 = no link)
|
||||
hwacc dd ? ; bitmask stating enabled HW accelerations (offload engines)
|
||||
|
||||
bytes_tx dq ? ; Statistics, updated by the driver
|
||||
bytes_rx dq ? ;
|
||||
packets_tx dd ? ;
|
||||
packets_rx dd ? ;
|
||||
|
||||
state dd ? ; link state (0 = no link)
|
||||
hwacc dd ? ; bitmask stating enabled HW accelerations
|
||||
packets_tx dd ? ;
|
||||
packets_tx_err dd ? ; CRC errors, too long or too short frames
|
||||
packets_tx_drop dd ? ;
|
||||
packets_tx_ovr dd ? ; FIFO overrun
|
||||
|
||||
packets_rx dd ? ;
|
||||
packets_rx_err dd ? ; CRC errors, too long or too short frames
|
||||
packets_rx_drop dd ? ;
|
||||
packets_rx_ovr dd ? ; FIFO overrun
|
||||
|
||||
ends
|
||||
|
||||
|
@ -178,14 +178,22 @@ struct NET_DEVICE
|
||||
reset dd ? ;
|
||||
transmit dd ? ;
|
||||
|
||||
bytes_tx dq ? ; Statistics, updated by the driver
|
||||
bytes_rx dq ? ;
|
||||
packets_tx dd ? ;
|
||||
packets_rx dd ? ;
|
||||
|
||||
link_state dd ? ; link state (0 = no link)
|
||||
hwacc dd ? ; bitmask stating enabled HW accelerations (offload engines)
|
||||
|
||||
bytes_tx dq ? ; Statistics, updated by the driver
|
||||
bytes_rx dq ? ;
|
||||
|
||||
packets_tx dd ? ;
|
||||
packets_tx_err dd ? ; CRC errors, too long or too short frames
|
||||
packets_tx_drop dd ? ;
|
||||
packets_tx_ovr dd ? ; FIFO overrun
|
||||
|
||||
packets_rx dd ? ;
|
||||
packets_rx_err dd ? ; CRC errors, too long or too short frames
|
||||
packets_rx_drop dd ? ;
|
||||
packets_rx_ovr dd ? ; FIFO overrun
|
||||
|
||||
ends
|
||||
|
||||
struct NET_BUFF
|
||||
@ -410,8 +418,8 @@ proc net_buff_free stdcall, buffer
|
||||
|
||||
spin_lock_irqsave
|
||||
|
||||
sub [net_buffs_free.current], 4
|
||||
mov eax, [net_buffs_free.current]
|
||||
sub [net_buffs_free.current], 4 ; move pointer backwards
|
||||
mov eax, [net_buffs_free.current] ; place free'd buffer pointer on the list
|
||||
push [buffer]
|
||||
pop dword[eax]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user