From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernard Iremonger Subject: [PATCH v2 0/4] ethdev: callback process API Date: Mon, 12 Jun 2017 16:18:07 +0100 Message-ID: <1497280691-18641-1-git-send-email-bernard.iremonger@intel.com> References: <1495191794-9112-1-git-send-email-bernard.iremonger@intel.com> Cc: "Bernard.Iremonger" To: dev@dpdk.org, thomas@monjalon.net Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 1F25B3DC for ; Mon, 12 Jun 2017 17:18:19 +0200 (CEST) In-Reply-To: <1495191794-9112-1-git-send-email-bernard.iremonger@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. Changes in v2: Rebase to latest dpdk-next-net. Modify mlx4, mlx5 and bnxt PMD's. 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/bnxt/rte_pmd_bnxt.c | 2 +- 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/mlx4/mlx4.c | 6 ++++-- drivers/net/mlx5/mlx5_ethdev.c | 6 ++++-- 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 ++- 26 files changed, 131 insertions(+), 89 deletions(-) -- 1.9.1