diff mbox

[dpdk-dev] net/i40e: reset NIC core

Message ID 1492006284-13202-1-git-send-email-bernard.iremonger@intel.com (mailing list archive)
State Rejected, archived
Delegated to: Ferruh Yigit
Headers show

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Bernard Iremonger April 12, 2017, 2:11 p.m. UTC
After a cloud filter has been replaced, to restore the NIC to
it original state a reset of the NIC core is needed.
A core reset has been added to the eth_i40e_dev_init function.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 drivers/net/i40e/i40e_ethdev.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Bernard Iremonger April 12, 2017, 3:50 p.m. UTC | #1
> -----Original Message-----
> From: Iremonger, Bernard
> Sent: Wednesday, April 12, 2017 3:11 PM
> To: dev@dpdk.org
> Cc: Xing, Beilei <beilei.xing@intel.com>; Lu, Wenzhuo
> <wenzhuo.lu@intel.com>; Iremonger, Bernard
> <bernard.iremonger@intel.com>
> Subject: [PATCH] net/i40e: reset NIC core
> 
> After a cloud filter has been replaced, to restore the NIC to it original state a
> reset of the NIC core is needed.
> A core reset has been added to the eth_i40e_dev_init function.
> 
> Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
> ---
>  drivers/net/i40e/i40e_ethdev.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
> index 59c603fb9..e119dbf00 100644
> --- a/drivers/net/i40e/i40e_ethdev.c
> +++ b/drivers/net/i40e/i40e_ethdev.c
> @@ -1077,6 +1077,9 @@ eth_i40e_dev_init(struct rte_eth_dev *dev)
>  	hw->bus.func = pci_dev->addr.function;
>  	hw->adapter_stopped = 0;
> 
> +	/* Reset NIC core */
> +	I40E_WRITE_REG(hw, I40E_GLGEN_RTRIG, 0x1);
> +
>  	/* Make sure all is clean before doing PF reset */
>  	i40e_clear_hw(hw);
> 
> --
> 2.11.0

Self NAK

Regards,

Bernard.
diff mbox

Patch

diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index 59c603fb9..e119dbf00 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -1077,6 +1077,9 @@  eth_i40e_dev_init(struct rte_eth_dev *dev)
 	hw->bus.func = pci_dev->addr.function;
 	hw->adapter_stopped = 0;
 
+	/* Reset NIC core */
+	I40E_WRITE_REG(hw, I40E_GLGEN_RTRIG, 0x1);
+
 	/* Make sure all is clean before doing PF reset */
 	i40e_clear_hw(hw);