Re: [PATCH RFC 2/4] bql: Add tracking of inflight packets

2016-08-31 Thread Eric Dumazet
On Tue, 2016-08-30 at 17:00 -0700, Tom Herbert wrote: > Add two fields to netdev_queue as head_cnt and tail_cnt. head_cnt is > incremented for every sent packet in netdev_tx_sent_queue and tail_cnt > is incremented by the number of packets in netdev_tx_completed_queue. > So then the number of infli

Re: [PATCH RFC 2/4] bql: Add tracking of inflight packets

2016-08-31 Thread Jesper Dangaard Brouer
On Tue, 30 Aug 2016 17:00:32 -0700 Tom Herbert wrote: > Add two fields to netdev_queue as head_cnt and tail_cnt. head_cnt is > incremented for every sent packet in netdev_tx_sent_queue and tail_cnt > is incremented by the number of packets in netdev_tx_completed_queue. > So then the number of inf

[PATCH RFC 2/4] bql: Add tracking of inflight packets

2016-08-30 Thread Tom Herbert
Add two fields to netdev_queue as head_cnt and tail_cnt. head_cnt is incremented for every sent packet in netdev_tx_sent_queue and tail_cnt is incremented by the number of packets in netdev_tx_completed_queue. So then the number of inflight packets for a queue is simply queue->head_cnt - queue->tai