From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 43F5E594E for ; Thu, 12 Mar 2015 17:54:34 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 12 Mar 2015 09:52:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,389,1422950400"; d="scan'208";a="664390416" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga001.jf.intel.com with ESMTP; 12 Mar 2015 09:54:32 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t2CGsVH8001892; Thu, 12 Mar 2015 16:54:31 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t2CGsVUf022202; Thu, 12 Mar 2015 16:54:31 GMT Received: (from jmcnam2x@localhost) by sivswdev02.ir.intel.com with id t2CGsVme022198; Thu, 12 Mar 2015 16:54:31 GMT From: John McNamara To: dev@dpdk.org Date: Thu, 12 Mar 2015 16:54:27 +0000 Message-Id: <1426179268-22164-1-git-send-email-john.mcnamara@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] ethdev: additional parameter in RX callback 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: Thu, 12 Mar 2015 16:54:35 -0000 This patch is a minor extension to the recent patchset for RX/TX callbacks based on feedback from users implementing solutions based on it. The patch adds a new parameter to the RX callback to pass in the number of available RX packets in addition to the number of dequeued packets. This provides the RX callback functions with additional information that can be used to decide how packets from a burst are handled. The TX callback doesn't require this additional parameter so the RX and TX callbacks no longer have the same function parameters. As such the single RX/TX callback has been refactored into two separate callbacks. Since this is an API change we hope it can be included in 2.0.0 to avoid changing the API in a subsequent release. John McNamara (1): ethdev: added additional packet count parameter to RX callbacks examples/rxtx_callbacks/main.c | 3 +- lib/librte_ether/rte_ethdev.c | 8 ++-- lib/librte_ether/rte_ethdev.h | 74 ++++++++++++++++++++++++++-------------- 3 files changed, 54 insertions(+), 31 deletions(-) -- 1.7.4.1