From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 442DB1F5 for ; Fri, 19 May 2017 13:03:22 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP; 19 May 2017 04:03:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,363,1491289200"; d="scan'208";a="89460998" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by orsmga004.jf.intel.com with ESMTP; 19 May 2017 04:03:20 -0700 From: Bernard Iremonger To: dev@dpdk.org, thomas@monjalon.net Cc: "Bernard.Iremonger" Date: Fri, 19 May 2017 12:03:10 +0100 Message-Id: <1495191794-9112-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH v1 0/4] ethdev: callback process API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 May 2017 11:03:23 -0000 From: "Bernard.Iremonger" At present the _rte_eth_dev_callback_process function is using the cb_arg parameter to return data to the caller. The cb_arg parameter is an input parameter and should not be used to return data to the caller. In this patchset the return type of _rte_eth_dev_callback_process has been changed from void to int to allow return of a return value to the caller and an extra parameter void *ret_param has been added to return data to caller. All references to _rte_eth_dev_callback_process have been updated for these API changes. Bernard.Iremonger (4): ethdev: modify callback process API test: callback process API changes examples: callback process API changes doc: remove deprecation notice app/test-pmd/testpmd.c | 13 +++++++----- doc/guides/rel_notes/deprecation.rst | 4 ---- drivers/net/bonding/rte_eth_bond_pmd.c | 34 ++++++++++++++++++------------ drivers/net/bonding/rte_eth_bond_private.h | 4 ++-- drivers/net/e1000/em_ethdev.c | 2 +- drivers/net/e1000/igb_ethdev.c | 6 ++++-- drivers/net/enic/enic_main.c | 2 +- drivers/net/i40e/i40e_ethdev.c | 2 +- drivers/net/i40e/i40e_ethdev_vf.c | 3 ++- drivers/net/i40e/i40e_pf.c | 19 +++++++++-------- drivers/net/ixgbe/ixgbe_ethdev.c | 8 ++++--- drivers/net/ixgbe/ixgbe_pf.c | 22 ++++++++++--------- drivers/net/nfp/nfp_net.c | 2 +- drivers/net/sfc/sfc_intr.c | 6 ++++-- drivers/net/thunderx/nicvf_ethdev.c | 3 ++- drivers/net/vhost/rte_eth_vhost.c | 9 +++++--- drivers/net/virtio/virtio_ethdev.c | 3 ++- examples/link_status_interrupt/main.c | 10 ++++++--- lib/librte_ether/rte_ethdev.c | 15 ++++++++----- lib/librte_ether/rte_ethdev.h | 21 ++++++++---------- lib/librte_ether/rte_ether_version.map | 7 ++++++ test/test/test_link_bonding.c | 8 +++++-- test/test/virtual_pmd.c | 3 ++- 23 files changed, 122 insertions(+), 84 deletions(-) -- 1.9.1