net/i40e: fix global register recovery
authorBeilei Xing <beilei.xing@intel.com>
Fri, 20 Nov 2020 08:49:47 +0000 (16:49 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:05 +0000 (16:03 +0100)
commitac241c74ac75b2670788635b1a8e6809afae0827
treebd427a5b87f74e57ed40e16de9258e1197417ba9
parentc17af95a19e30c8d89eb96ceca99f60474ca2ac4
net/i40e: fix global register recovery

PMD configures the global register I40E_GLINT_CTL during
device initialization to work around the Rx write back
issue. But when a device is bound from DPDK to kernel,
the global register is not recovered to the original
state, it will cause kernel driver performance drop issue.
This patch fixes this issue.

Fixes: be6c228d4da3 ("i40e: support Rx interrupt")
Fixes: 4ab831449a1c ("net/i40e: fix interrupt conflict with multi-driver")
Cc: stable@dpdk.org
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
drivers/net/i40e/i40e_ethdev.c