net/i40e: fix link status change interrupt
authorQiming Yang <qiming.yang@intel.com>
Fri, 4 Nov 2016 09:10:50 +0000 (17:10 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Nov 2016 16:50:18 +0000 (17:50 +0100)
commitf4668a33efe5311301e10bc6e3709a2eccb446ad
tree7d5f29e9f0fd5107af7206331d11d77509d9f7b1
parent0284624f14a4ab55a6163179dfb53d891dc85650
net/i40e: fix link status change interrupt

Previously, link status interrupt in i40e is achieved by checking
LINK_STAT_CHANGE_MASK in PFINT_ICR0 register which is provided only
for diagnostic use. Instead, drivers need to get the link status
change notification by using LSE (Link Status Event).

This patch enables LSE and calls LSC callback when the event is
received. This patch also removes the processing on
LINK_STAT_CHANGE_MASK.

Fixes: 4861cde46116 ("i40e: new poll mode driver")

Signed-off-by: Qiming Yang <qiming.yang@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_ethdev.c