ixgbe: reset hardware stat when initialize
A message that is not in the archive (sent off-list or not yet received): [email protected]
Any comments about this patch?
Thanks,
Michael
Quoted 35 lines · Michael Qiu
From: Michael Qiu <[email protected]>
When initialize the hardware, the stat should be reset. Otherwise when detach then attach port, the stat will not be re-init to zero.
Signed-off-by Michael Qiu <[email protected]>--- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 6 ++++++ 1 file changed, 6 insertions(+)lib/librte_pmd_ixgbe/ixgbe_ethdev.c +6
-0@@ -840,6 +840,9 @@ eth_ixgbe_dev_init(struct rte_eth_dev *eth_dev)return -EIO ; } +/* Reset the hw statistics */ +ixgbe_dev_stats_reset (eth_dev); +/* disable interrupt */ ixgbe_disable_intr (hw);@@ -1015,6 +1018,9 @@ eth_ixgbevf_dev_init(struct rte_eth_dev *eth_dev)/* Disable the interrupts for VF */ ixgbevf_intr_disable (hw); +/* Reset the hw statistics */ +ixgbevf_dev_stats_reset (eth_dev); + hw->mac.num_rar_entries =128 ;/* The MAX of the underlying PF */ diag = hw->mac.ops.reset_hw (hw);
PATCH v2 1/1 ixgbe: reset hardware stat when initialize
In reply to a message not in the archiveWhen initialize the hardware, the stat should be reset. Otherwise when detach then attach port, the stat will not be re-init to zero.
---
Change log:
v2 --> v1: change the folder of driver
drivers/net/ixgbe/ixgbe_ethdev.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/net/ixgbe/ixgbe_ethdev.c +6 -0
@@ -840,6 +840,9 @@ eth_ixgbe_dev_init(struct rte_eth_dev *eth_dev)return -EIO ; } +/* Reset the hw statistics */ +ixgbe_dev_stats_reset (eth_dev); +/* disable interrupt */ ixgbe_disable_intr (hw);
@@ -1012,6 +1015,9 @@ eth_ixgbevf_dev_init(struct rte_eth_dev *eth_dev)/* init_mailbox_params */ hw->mbx.ops.init_params (hw); +/* Reset the hw statistics */ +ixgbevf_dev_stats_reset (eth_dev); +/* Disable the interrupts for VF */ ixgbevf_intr_disable (hw);
Signature · 1 line
1.9.3
Quoted 7 lines
-----Original Message-----
From: Qiu, Michael
Sent: Thursday, June 11, 2015 8:30 AM
To: [email protected]
Cc: Iremonger, Bernard; [email protected]; Qiu, Michael
Subject: [PATCH v2] ixgbe: reset hardware stat when initialize
Quoted 5 lines
When initialize the hardware, the stat should be reset.
Otherwise when detach then attach port, the stat will not be re-init to zero.Signed-off-by Michael Qiu <[email protected]>---
Hi, all
Any comments on this patch?
Thanks,
Michael
Quoted 15 lines · Bernard
Quoted 7 lines
-----Original Message-----
From: Qiu, Michael
Sent: Thursday, June 11, 2015 8:30 AM
To: [email protected]
Cc: Iremonger, Bernard; [email protected]; Qiu, Michael
Subject: [PATCH v2] ixgbe: reset hardware stat when initializeQuoted 5 lines
When initialize the hardware, the stat should be reset.
Otherwise when detach then attach port, the stat will not be re-init to zero.Signed-off-by Michael Qiu <[email protected]>---
Thomas Monjalon
AppliedQuoted 6 lines
Quoted 4 lines
When initialize the hardware, the stat should be reset.
Otherwise when detach then attach port, the stat will not be re-init to zero.Signed-off-by Michael Qiu <[email protected]>
Applied, thanks