From: "Bernard.Iremonger" <bernard.iremon...@intel.com> 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