On Wed, 2016-09-07 at 19:57 +0300, Saeed Mahameed wrote:
Jesper has a similar Idea to make the qdisc think it is under
pressure, when the device
TX ring is idle most of the time, i think his idea can come in handy here.
I am not fully involved in the details, maybe he can elaborate more.
But if it works, it will be transparent to napi, and xmit more will
happen by design.
I do not think qdisc is relevant here.
Right now, skb->xmit_more is set only by qdisc layer (and pktgen tool),
because only this layer can know if more packets are to come.
What I am saying is that regardless of skb->xmit_more being set or not,
(for example if no qdisc is even used)
a NAPI driver can arm a bit asking the doorbell being sent at the end of
NAPI.
I am not saying this must be done, only that the idea could be extended
to non XDP world, if we care enough.