Re: tx_interrupt - identifying packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2003-08-27 at 11:47, Adam Flizikowski wrote:
> Hello,
> 
> I wonder HOW could i know which packet was sent with tx_interrupt... to
> collect stats on time that sending process takes
> 
> I added field to skbuff that is filled for each and every packet - so every
> packet is numbered. Unfortunatelly when packet is sent to NIC for

whats wrong with using the Fragment Identifier field in the IP header to
identify packets?

> transmission over ethernet cable there is no skb allocated for this packet
> any longer.
> So HOW can i tell how long tx_interrupt is processed for let's say 56th,
> 132nd, 239th packet etc.
> 
> I mean is there a variable in tx_interrupt() that i can check for which
> packet tx_interrupt was called??? some variable that (in some way) controlls
> packets being sent?

You could access the IP header by using a fixed offset to get to the
Fragment identifier.

/Amit
-- 
----------------------------------------------------------------------
Amit Kucheria          akucheria@<NOSPAM>metricsystems.com
Metric Systems Corp.   2320 Cousteau Court, Suite 201, Vista, CA 92083
----------------------------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux