forked from KolibriOS/kolibrios
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 ? ;
|
reset dd ? ;
|
||||||
transmit 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_tx dq ? ; Statistics, updated by the driver
|
||||||
bytes_rx dq ? ;
|
bytes_rx dq ? ;
|
||||||
packets_tx dd ? ;
|
|
||||||
packets_rx dd ? ;
|
|
||||||
|
|
||||||
state dd ? ; link state (0 = no link)
|
packets_tx dd ? ;
|
||||||
hwacc dd ? ; bitmask stating enabled HW accelerations
|
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
|
ends
|
||||||
|
|
||||||
|
@ -178,14 +178,22 @@ struct NET_DEVICE
|
|||||||
reset dd ? ;
|
reset dd ? ;
|
||||||
transmit 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)
|
link_state dd ? ; link state (0 = no link)
|
||||||
hwacc dd ? ; bitmask stating enabled HW accelerations (offload engines)
|
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
|
ends
|
||||||
|
|
||||||
struct NET_BUFF
|
struct NET_BUFF
|
||||||
@ -410,8 +418,8 @@ proc net_buff_free stdcall, buffer
|
|||||||
|
|
||||||
spin_lock_irqsave
|
spin_lock_irqsave
|
||||||
|
|
||||||
sub [net_buffs_free.current], 4
|
sub [net_buffs_free.current], 4 ; move pointer backwards
|
||||||
mov eax, [net_buffs_free.current]
|
mov eax, [net_buffs_free.current] ; place free'd buffer pointer on the list
|
||||||
push [buffer]
|
push [buffer]
|
||||||
pop dword[eax]
|
pop dword[eax]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user