net/ixgbe: add application callback on VF to PF messsage
authorBernard Iremonger <bernard.iremonger@intel.com>
Mon, 10 Oct 2016 14:34:15 +0000 (15:34 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 14 Oct 2016 00:04:24 +0000 (02:04 +0200)
commit57bee54e5a5ac7ec1eae88beabaa5456a6c09c15
treebfb67298acf475458d324cb1ac0749fa673bd779
parentc1ceaf3ad056eb9eca8cfabe5d3c362c2aad5d94
net/ixgbe: add application callback on VF to PF messsage

call _rte_eth_dev_callback_process from ixgbe_rcv_msg_from_vf function.

The callback asks the user application if it is allowed to perform
the function.

If the cb_param.retval is RTE_PMD_IXGBE_MB_EVENT_PROCEED then continue,
if 0, do nothing and send ACK to VF
if > 1, do nothing and send NAK to VF.

Signed-off-by: Alex Zelezniak <alexz@att.com>
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
drivers/net/ixgbe/ixgbe_pf.c
drivers/net/ixgbe/rte_pmd_ixgbe.h