From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 4914DADCD for ; Tue, 14 Jun 2016 22:01:50 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id m124so6061700wme.1 for ; Tue, 14 Jun 2016 13:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=OYQEaJU4Pko80QN+xHW1pHqOCW39a4sIq79mmBqucbY=; b=pU5TU6ZopzsPfWLFt6fNnnADQUH0hfTXdZVm1PAgdlGxGf6lu8qYKs8bFWK3F2tgEx FFvjT+rtZVxuOeSNC9tMBm6eyJHMY29iaqYy+udxjyil7cy2spWLp6FGYhPsRv+Ehcc0 uABpxiiY/8E3mjuVU3Lu7OtCSH1cuHvpPqS3EaI/f5DQVBTVTBrDMP/fTg/jjQdmFNpj 1k1WhfIcHYs2TNEdCk6xWfTVa/4fLI5SM+IbFtssGYkypuBYhxrGgc5xaPlPlLmhNQ3t D/AHI59hp399jHOoZNQFMQIE6884D8mfKlcssMjjoqKeRLQCzBeoEYn3uGG+dSA0TCE0 dCdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=OYQEaJU4Pko80QN+xHW1pHqOCW39a4sIq79mmBqucbY=; b=lmgO7BvcLsq5CtpdWoluqY5cBPKMo1fYkBkB8hX6NhquEe+Na2F1ii8DWQ6UvOnSnB x1tdxdDqgtN3JXFWApOvbMqxSThV9xr3Ra9ds21vxQMOKcA20xGXYlwylLN94wdH5eNf +COhP/GSAqKAHrDEgGn0RbzN42wh6kucDQJSVy3oGQWkk6AWoctYweDXXjsc5zotTH25 Vto6LITWcVnHQ/m2eCOGl1JUGhQLko3mMfNf0JaFKqDD8MAgSSLQAlaa0umHANJ0kM9e 9EH9e3Sve7mFEyeuzSb9vCT2Yp+LW8kaY4VZvCO3QqLGS4fisC5VSV4oBK1l+aHwqw4a h5Cw== X-Gm-Message-State: ALyK8tIq33Yo+rOfSHQeloaVoF3Ym4FiN7xaZ7nFX//Y5WOP/QV8UuzqeK6ZmWY707VCGgmr X-Received: by 10.28.24.208 with SMTP id 199mr8199398wmy.84.1465934510072; Tue, 14 Jun 2016 13:01:50 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id zc7sm34531161wjb.42.2016.06.14.13.01.49 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 13:01:49 -0700 (PDT) From: Thomas Monjalon To: Reshma Pattan Cc: dev@dpdk.org Date: Tue, 14 Jun 2016 22:01:48 +0200 Message-ID: <5708967.CQrqTqxUyg@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1465897108-26548-3-git-send-email-reshma.pattan@intel.com> References: <1465575534-23605-1-git-send-email-reshma.pattan@intel.com> <1465897108-26548-1-git-send-email-reshma.pattan@intel.com> <1465897108-26548-3-git-send-email-reshma.pattan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v9 2/8] ethdev: add new api to add Rx callback as head of the list X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2016 20:01:50 -0000 2016-06-14 10:38, Reshma Pattan: > Added new public api rte_eth_add_first_rx_callback to add given > callback as head of the list. > > Signed-off-by: Reshma Pattan > --- > +/* > +* Add a callback that must be called first on packet RX on a given port > +* and queue. > +* > +* This API configures a first function to be called for each burst of > +* packets received on a given NIC port queue. The return value is a pointer > +* that can be used to later remove the callback using > +* rte_eth_remove_rx_callback(). > +* > +* Multiple functions are called in the order that they are added. > +* > +* @param port_id > +* The port identifier of the Ethernet device. > +* @param queue_id > +* The queue on the Ethernet device on which the callback is to be added. > +* @param fn > +* The callback function > +* @param user_param > +* A generic pointer parameter which will be passed to each invocation of the > +* callback function on this port and queue. > +* > +* @return > +* NULL on error. > +* On success, a pointer value which can later be used to remove the callback. > +*/ > +void *rte_eth_add_first_rx_callback(uint8_t port_id, uint16_t queue_id, > + rte_rx_callback_fn fn, void *user_param); Sorry I fail to understand why this function is needed. What cannot be done in rte_eth_add_rx_callback?