i40e: handle link status change interrupt
authorHelin Zhang <helin.zhang@intel.com>
Wed, 17 Sep 2014 07:54:21 +0000 (15:54 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 3 Nov 2014 17:02:41 +0000 (18:02 +0100)
commit2e38e98bbf8da496eeebb51bd8c1e0cfca1b14f0
treea0ccaa57d079047e485c36892e3a0aa0bc1d8125
parentad4631322d3bac759e88b7a4a1bfc7149adc3d0d
i40e: handle link status change interrupt

As driver flag of 'RTE_PCI_DRV_INTR_LSC' was introduced
recently, it must be added in i40e. One second waiting
is needed for link up event, to wait the hardware into a
stable state, so the interrupt could be processed in two
parts. In addition, it should finally call the callback
function registered by application.

Test: http://dpdk.org/ml/archives/dev/2014-September/006091.html

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Reviewed-by: Jing Chen <jing.d.chen@intel.com>
Reviewed-by: Jijiang Liu <jijiang.liu@intel.com>
Tested-by: Min Cao <min.cao@intel.com>
lib/librte_pmd_i40e/i40e_ethdev.c