RE: tx_interrupt - identifying packet

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

 



Use the source, Luke.

1674 static int rtl8139_start_xmit (struct sk_buff *skb,
....
1681         /* Calculate the next Tx descriptor entry. */
1682 >>-->   entry = tp->cur_tx % NUM_TX_DESC;
1683 
1684         if (likely(len < TX_BUF_SIZE)) {
1685                 skb_copy_and_csum_dev(skb, tp->tx_buf[entry]);
....
1714 static void rtl8139_tx_interrupt (struct net_device *dev,
....
1724         dirty_tx = tp->dirty_tx;
1725         tx_left = tp->cur_tx - dirty_tx;
1726         while (tx_left > 0) {
1727 >>-->           int entry = dirty_tx % NUM_TX_DESC;

> -----Original Message-----
> From: adamski [mailto:adam_lista_linux@poczta.onet.pl] 
> Sent: Wednesday, August 27, 2003 4:29 PM
> To: Eble, Dan
> Cc: Lista Linux-Net
> Subject: RE: tx_interrupt - identifying packet 
> 
> 
> 
> 
> Perhaps you could create an array of length NUM_TX_DESC.  
> When a packet is
> enqueued in the tx ring, copy your tag from the skb header into the
> element of the array that parallels the tx buffer in the ring.  When
> tx_interrupt occurs, read the tag back from the array.
> 
> 
> which variable tells me about number of descriptor read (packet txed)?
> 
> as far as i understand DESC stands for descriptor and 
> descriptor can be
> mapped to single packet, right???
> 
> regards
> 
> adam
> 
> -
> : send the line "unsubscribe 
> linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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