Thread (8 messages) 8 messages, 3 authors, 2013-04-01

Re: RX/dropped counter values for tagged packets

From: Ani Sinha <hidden>
Date: 2013-04-01 04:44:25

On Sun, Mar 31, 2013 at 8:43 PM, Eric Dumazet [off-list ref] wrote:
On Sun, 2013-03-31 at 20:17 -0700, Ani Sinha wrote:
quoted
Correct. Now if you combine the two cases, we increment the rx count
for tagged packets in  vlan_do_receive() and then in "another_round",
if pt_prev is null, we also increment the rx_dropped.
Thats the way its done in a NIC driver.

We increment rx_{bytes|packets} counters before giving the packet to the
upper stack.

Then the stack might drop the packet and increment rx_dropped.
thanks for the clarification. So basically what this means is that
from the numbers reported by ifconfig for example, rx-dropped is the
true rx value.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help