netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why do we need tasklet in IFB?
@ 2016-10-28 21:36 Michael Ma
  2016-10-28 21:38 ` Stephen Hemminger
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Ma @ 2016-10-28 21:36 UTC (permalink / raw)
  To: Linux Kernel Network Developers

Hi -

Currently IFB uses tasklet to process tx/rx on the interface that
forwarded the packet to IFB. My understanding on why we're doing this
is that since dev_queue_xmit() can be invoked in interrupt, we want to
defer the processing of original tx/rx in case ifb_xmit() is called
from interrupt.

However, if the packet is originally from rx, calling context should
already be a tasklet and there is no need to queue the processing to
another tasklet anymore. Even if the packet is originated from tx, we
can rely on the deferred processing of the "original device" or TC if
necessary. Did I miss anything here?

Furthermore, looking at the bonding device's code there isn't this
kind of buffering/tasklet handling for packet forwarding even though
bond also has its own txq/rxq configured separately from the actual
nic, which is very similar to IFB.

So why do we need tasklet in IFB?

Thanks,
Michael

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-11-01 18:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-28 21:36 Why do we need tasklet in IFB? Michael Ma
2016-10-28 21:38 ` Stephen Hemminger
     [not found]   ` <CAAmHdhxyrAQqKczaLyX8UmozdUdApbozM71vFv-j+YLnP1m21g@mail.gmail.com>
     [not found]     ` <20161028144803.4d3f5a2a@xeon-e3>
     [not found]       ` <CAAmHdhwWGygKtcNR2Bazh-TMoAahEaAf6N5CPWjnvun0BfUdLA@mail.gmail.com>
2016-10-31 18:02         ` Michael Ma
2016-10-31 18:02           ` Michael Ma
2016-10-31 18:10           ` David Miller
2016-11-01 11:38             ` Jamal Hadi Salim
2016-11-01 18:49               ` Michael Ma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).