From: Bernard Iremonger <bernard.iremonger@intel.com>
To: dev@dpdk.org, thomas@monjalon.net
Cc: Bernard Iremonger <bernard.iremonger@intel.com>
Subject: [dpdk-dev] [PATCH v3] ethdev: callback process API
Date: Thu, 15 Jun 2017 13:29:49 +0100 [thread overview]
Message-ID: <1497529790-31587-1-git-send-email-bernard.iremonger@intel.com> (raw)
In-Reply-To: <1497280691-18641-1-git-send-email-bernard.iremonger@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 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
next prev parent reply other threads:[~2017-06-15 12:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-19 11:03 [dpdk-dev] [PATCH v1 0/4] " Bernard Iremonger
2017-05-19 11:03 ` [dpdk-dev] [PATCH v1 1/4] ethdev: modify " Bernard Iremonger
2017-05-19 11:03 ` [dpdk-dev] [PATCH v1 2/4] test: callback process API changes Bernard Iremonger
2017-05-19 11:03 ` [dpdk-dev] [PATCH v1 3/4] examples: " Bernard Iremonger
2017-05-19 11:03 ` [dpdk-dev] [PATCH v1 4/4] doc: remove deprecation notice Bernard Iremonger
2017-06-12 15:18 ` [dpdk-dev] [PATCH v2 0/4] ethdev: callback process API Bernard Iremonger
2017-06-15 12:29 ` Bernard Iremonger [this message]
2017-06-15 12:29 ` [dpdk-dev] [PATCH v3] ethdev: modify " Bernard Iremonger
2017-07-01 15:19 ` Thomas Monjalon
2017-07-03 9:01 ` Ferruh Yigit
2017-07-03 9:04 ` Ferruh Yigit
2017-07-03 11:06 ` Iremonger, Bernard
2017-07-03 11:18 ` Ferruh Yigit
2017-07-03 11:28 ` Iremonger, Bernard
2017-07-03 11:40 ` Thomas Monjalon
2017-06-12 15:18 ` [dpdk-dev] [PATCH v2 1/4] " Bernard Iremonger
2017-06-14 21:22 ` Thomas Monjalon
2017-06-15 10:56 ` Iremonger, Bernard
2017-06-15 15:43 ` Stephen Hemminger
2017-06-21 9:22 ` Iremonger, Bernard
2017-06-12 15:18 ` [dpdk-dev] [PATCH v2 2/4] test: callback process API changes Bernard Iremonger
2017-06-12 15:18 ` [dpdk-dev] [PATCH v2 3/4] examples: " Bernard Iremonger
2017-06-12 15:18 ` [dpdk-dev] [PATCH v2 4/4] doc: remove deprecation notice Bernard Iremonger
2017-06-13 8:52 ` Mcnamara, John
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1497529790-31587-1-git-send-email-bernard.iremonger@intel.com \
--to=bernard.iremonger@intel.com \
--cc=dev@dpdk.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).