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

Liang, Cunming cunming.liang at intel.com
Fri Jul 17 07:59:37 CEST 2015



> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> Sent: Tuesday, July 14, 2015 1:13 AM
> To: Liang, Cunming
> Cc: dev at dpdk.org; shemming at brocade.com; david.marchand at 6wind.com;
> Zhou, Danny; Wang, Liang-min; Richardson, Bruce; Liu, Yong;
> nhorman at tuxdriver.com
> Subject: Re: [PATCH v13 13/14] l3fwd-power: enable one-shot rx interrupt and
> polling/interrupt mode switch
> 
> 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.
Will reword the commit comments, thanks for the notice.


More information about the dev mailing list