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 C2A2A100F for ; Thu, 15 Jun 2017 14:29:55 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP; 15 Jun 2017 05:29:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,343,1493708400"; d="scan'208";a="99813191" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by orsmga002.jf.intel.com with ESMTP; 15 Jun 2017 05:29:53 -0700 From: Bernard Iremonger To: dev@dpdk.org, thomas@monjalon.net Cc: Bernard Iremonger Date: Thu, 15 Jun 2017 13:29:49 +0100 Message-Id: <1497529790-31587-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1497280691-18641-1-git-send-email-bernard.iremonger@intel.com> References: <1497280691-18641-1-git-send-email-bernard.iremonger@intel.com> Subject: [dpdk-dev] [PATCH v3] 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: Thu, 15 Jun 2017 12:29:56 -0000 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 v3: Rebase to latest dpdk-next-net. All four patches squashed into one. Fix to rte_ether_version.map Changes in v2: Rebase to latest dpdk-next-net. Modify mlx4, mlx5 and bnxt PMD's. Bernard.Iremonger (1): ethdev: modify callback process API 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 | 2 +- test/test/test_link_bonding.c | 8 +++++-- test/test/virtual_pmd.c | 3 ++- 26 files changed, 125 insertions(+), 90 deletions(-) -- 1.9.1