net/i40e: add user callback for VF to PF message
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Tue, 17 Jan 2017 08:45:04 +0000 (16:45 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:41:43 +0000 (19:41 +0100)
commitb81295c474b0f42ac3c1cff98a4aa6b174dcd405
tree721249442deb1b2231eac07acacf84f1c9639945
parent17e906a1ea9c915a3ad929d09b1b5f81836a811c
net/i40e: add user callback for VF to PF message

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

If the return value from user is RTE_PMD_I40E_MB_EVENT_PROCEED
then continue. If ACK or NACK, do nothing and send
not_supported to VF.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
drivers/net/i40e/i40e_pf.c
drivers/net/i40e/rte_pmd_i40e.h