[dpdk-dev] [PATCH v13 13/14] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Jul 13 19:12:41 CEST 2015


2015-06-19 12:00, Cunming Liang:
> Demonstrate how to handle per rx queue interrupt in a NAPI-like
> implementation in usersapce. PDK polling thread mainly works in
> polling mode and switch to interrupt mode only if there is no
> any packet received in recent polls.
> Usersapce interrupt notification generally takes a lot more cycles
> than kernel, so one-shot interrupt is used here to guarantee minimum
> overhead and DPDK polling thread returns to polling mode immediately
> once it receives an interrupt notificaiton for incoming packet.

Besides typos, it should be noted that it works only with igb and ixgbe.


More information about the dev mailing list