i40evf: support reporting PF reset
authorJingjing Wu <jingjing.wu@intel.com>
Tue, 15 Mar 2016 01:59:40 +0000 (09:59 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 25 Mar 2016 17:56:44 +0000 (18:56 +0100)
commitae19955e7c86529cf7ddc3b1f1b49781f09687f6
tree06bcfb6d7766a056bfb26970c3bea6095eef8c27
parent95cd21f45d1bb69dab0cdc4b476d1e9ffeff8eee
i40evf: support reporting PF reset

When Linux PF and DPDK VF are used for i40e PMD, when a PF reset occurs,
an interrupt will go via adminq event to inform the VF of the reset.
A callback mechanism is introduced for the VF to allow it to invoke a
registered callback when PF  reset happens.

Users can register a callback for this interrupt event using:
  rte_eth_dev_callback_register(portid,
RTE_ETH_EVENT_INTR_RESET,
reset_event_callback,
arg);

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
doc/guides/rel_notes/release_16_04.rst
drivers/net/i40e/i40e_ethdev_vf.c
lib/librte_ether/rte_ethdev.h