net/i40e: fix flow director Rx writeback packet
authorChenmin Sun <chenmin.sun@intel.com>
Fri, 17 Jul 2020 14:57:58 +0000 (22:57 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Jul 2020 11:54:54 +0000 (13:54 +0200)
commitae6575409ff5609e44d53e1c3014ae77105e8610
tree256f910d1aae3d07703509edd2e3f275c63468c2
parent2e2810fc186873bbef293725bfe5d9d67ba30537
net/i40e: fix flow director Rx writeback packet

This patch fixes the fdir cannot receive rx writeback packet issue.
The root cause is FDIR interrupt is not correctly enabled.

Beside this, to make sure fdir programming works fine when the port
is stopped, move the fdir interrupt configure from start/stop to
setup/teardown.

Fixes: cfd662d22e7b ("net/i40e: fix interrupt throttling setting in PF")
Cc: stable@dpdk.org
Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev.h
drivers/net/i40e/i40e_fdir.c