Thread (19 messages) 19 messages, 6 authors, 2011-08-25

Re: [RFC PATCH v2 0/9] bql: Byte Queue Limits

flat view

From: Stephen Hemminger <hidden>
Date: 2011-08-08 18:19:08

On Mon, 8 Aug 2011 11:01:57 -0700
Tom Herbert [off-list ref] wrote:
quoted
Since transmit completion means calling dev_kfree_skb() why not account
there? You could add some info to netdev if necessary to get compile
the statistics.
The algorithm depends on knowing the total number of packets competed
in a single execution of transmit completion (epic based).  We only
want to recalculate the limits once per completion, which happens when
the completion function is called.
So just add some stats to netdev and count the number of dev_kfree_skb
calls and do your work at napi complete.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help