ethdev: add an argument to internal callback function
authorBernard Iremonger <bernard.iremonger@intel.com>
Mon, 10 Oct 2016 14:34:14 +0000 (15:34 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 14 Oct 2016 00:01:52 +0000 (02:01 +0200)
commitc1ceaf3ad056eb9eca8cfabe5d3c362c2aad5d94
treea69bd632c6f89a66fa53fa294ae2de30cb2955d5
parent01f1922786a1e81672ac1ad576295ca47196bcbe
ethdev: add an argument to internal callback function

add cb_arg parameter to the _rte_eth_dev_callback_process function.

Adding a parameter to this function allows passing information
to the application when an eth device event occurs such as
a VF to PF message.
This allows the application to decide if a particular function
is permitted.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Signed-off-by: Alex Zelezniak <alexz@att.com>
16 files changed:
app/test/virtual_pmd.c
drivers/net/bonding/rte_eth_bond_pmd.c
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/igb_ethdev.c
drivers/net/enic/enic_main.c
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/mlx4/mlx4.c
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/nfp/nfp_net.c
drivers/net/thunderx/nicvf_ethdev.c
drivers/net/vhost/rte_eth_vhost.c
drivers/net/virtio/virtio_ethdev.c
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h