The function should be around line 1500 in /net/core/dev.c of the Linux 
kernel.  I've included a link to it in lxr below.

http://lxr.linux.no/#linux+v2.6.39/net/core/dev.c#L1498

Thanks,

Alex

On 05/25/2011 02:41 PM, Filo FeFi wrote:
> Hi Don,
>
> Could you please elaborate a little on the dev_forward_skb() ?
> Where can I find that function?
>
> I was about to conclude that ixgbe always report "0" for RX drop,
> but I would like to know the correct answer.
>
> Thanks,
> Ching
>
> --- On Mon, 5/23/11, Skidmore, Donald C<[email protected]>  wrote:
>
>> From: Skidmore, Donald C<[email protected]>
>> Subject: RE: [E1000-devel] Question on net_stats->rx_dropped  setting to "0"
>> To: "Filo FeFi"<[email protected]>, 
>> "[email protected]"<[email protected]>
>> Date: Monday, May 23, 2011, 5:55 PM
>> Hi Ching,
>>
>> As you noted we (ixgbe) doesn't modify this value, other
>> than initialing it to zero.  However elsewhere in the
>> stack it is modified. One example being dev_forward_skb().
>> So ixgbe devices may report rx_dropped as something other
>> than "0".
>>
>> Thanks,
>> -Don
>>
>>> -----Original Message-----
>>> From: Filo FeFi [mailto:[email protected]]
>>> Sent: Thursday, May 19, 2011 7:19 PM
>>> To: [email protected]
>>> Subject: [E1000-devel] Question on
>> net_stats->rx_dropped setting to "0"
>>> Dear ixgbe developers:
>>>
>>> I'm debugging a problem where some frames get dropped
>> by the ixgbe
>>> driver (version 2.0.44-k2), i.e. /proc/net/dev "drop"
>> is not 0.
>>> Reading the ixgbe-3.3.9/2.0.44.13/2.0.44.14 source, I
>> see the line
>>> (in ixgbe_main.c ixgbe_update_stats()):
>> "net_stats->rx_dropped = 0;"
>>> So, does this mean that ixgbe always reports "0" for RX
>> dropped?
>>> Under what circumstances would /proc/net/dev's drop
>> count for ixgbe
>>> be incremented/changed from "0"?
>>>
>>> Thank you,
>>> Ching Tai
>>> (650) 506-1454
>>>
>>>
>>> ------------------------------------------------------------------------
>>> ------
>>> What Every C/C++ and Fortran developer Should Know!
>>> Read this article and learn how Intel has extended the
>> reach of its
>>> next-generation tools to help Windows* and Linux* C/C++
>> and Fortran
>>> developers boost performance applications - including
>> clusters.
>>> http://p.sf.net/sfu/intel-dev2devmay
>>> _______________________________________________
>>> E1000-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/e1000-devel
>>> To learn more about IntelĀ® Ethernet, visit
>>> http://communities.intel.com/community/wired
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> E1000-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/e1000-devel
> To learn more about Intel&#174; Ethernet, visit 
> http://communities.intel.com/community/wired


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit 
http://communities.intel.com/community/wired

Reply via email to