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

- From: Stephen Hemminger \<hidden\>
- Date: 2011-08-08 18:19:08 
- List: netdev
- Page: https://ratatoskr.run/netdev/2011/08/10876928
- Thread: https://ratatoskr.run/netdev/2011/08/10876806/t.md

```text
On Mon, 8 Aug 2011 11:01:57 -0700
Tom Herbert [ref] wrote:

> > 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.
```
