From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v13 13/14] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch Date: Mon, 13 Jul 2015 19:12:41 +0200 Message-ID: <2499778.eUArLCzzNx@xps13> References: <1433741351-27005-1-git-send-email-cunming.liang@intel.com> <1434686442-578-1-git-send-email-cunming.liang@intel.com> <1434686442-578-14-git-send-email-cunming.liang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: shemming@brocade.com, dev@dpdk.org, liang-min.wang@intel.com To: Cunming Liang Return-path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id 3B1A42A5B for ; Mon, 13 Jul 2015 19:13:55 +0200 (CEST) Received: by wibud3 with SMTP id ud3so2337901wib.0 for ; Mon, 13 Jul 2015 10:13:55 -0700 (PDT) In-Reply-To: <1434686442-578-14-git-send-email-cunming.liang@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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.