net/iavf: set interrupt throttling register
PATCH 1/1 net/iavf: set interrupt throttling register
The interrupt throttling register(ITR) bank 0 value is set to 2, but to ensure best performance across all systems also set the bank 1 value to match.
--- drivers/net/intel/iavf/iavf_ethdev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/net/intel/iavf/iavf_ethdev.c +1 -4
@@ -899,10 +899,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev, (0 <<IAVF_VFINT_DYN_CTLN1_ITR_INDX_SHIFT ) |IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_MASK | (2UL << IAVF_VFINT_DYN_CTLN1_INTERVAL_SHIFT)); -/* debug - check for success! the return value -* should be 2, offset is 0x2800 -*/ -/* IAVF_READ_REG(hw, IAVF_VFINT_ITRN1(0, 0)); */ +IAVF_WRITE_REG (hw,IAVF_VFINT_ITRN1 (1 , vf->msix_base -1 ),2 ); }else {/* If no WB_ON_ITR offload flags, need to set * interrupt for descriptor write back.
Signature · 1 line
2.53.0
Quoted 6 lines · Bruce Richardson
The interrupt throttling register(ITR) bank 0 value is set to 2, but to ensure best performance across all systems also set the bank 1 value to match.
Signed-off-by Bruce Richardson <[email protected]>---
Signature · 2 lines
Thanks, Anatoly
Quoted 9 lines · Bruce Richardson
The interrupt throttling register(ITR) bank 0 value is set to 2, but to ensure best performance across all systems also set the bank 1 value to match.
Signed-off-by Bruce Richardson <[email protected]>--- drivers/net/intel/iavf/iavf_ethdev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
Further testing has indicated that this patch is simply working around a config issue on kernel driver side[1] and should not be necessary in DPDK.
Dropping as rejected in patchwork.
/Bruce
Quoted 19 lines
drivers/net/intel/iavf/iavf_ethdev.c +1
-4@@ -899,10 +899,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev, (0 <<IAVF_VFINT_DYN_CTLN1_ITR_INDX_SHIFT ) |IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_MASK | (2UL << IAVF_VFINT_DYN_CTLN1_INTERVAL_SHIFT)); -/* debug - check for success! the return value -* should be 2, offset is 0x2800 -*/ -/* IAVF_READ_REG(hw, IAVF_VFINT_ITRN1(0, 0)); */ +IAVF_WRITE_REG (hw,IAVF_VFINT_ITRN1 (1 , vf->msix_base -1 ),2 ); }else {/* If no WB_ON_ITR offload flags, need to set * interrupt for descriptor write back. Signature · 1 line
2.53.0
Quoted 21 lines · Bruce Richardson
Quoted 9 lines · Bruce Richardson
The interrupt throttling register(ITR) bank 0 value is set to 2, but to ensure best performance across all systems also set the bank 1 value to match.
Signed-off-by Bruce Richardson <[email protected]>--- drivers/net/intel/iavf/iavf_ethdev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)Further testing has indicated that this patch is simply working around a config issue on kernel driver side[1] and should not be necessary in DPDK.
Dropping as rejected in patchwork.
/Bruce
Quoted 16 lines
Quoted 6 lines
drivers/net/intel/iavf/iavf_ethdev.c +0
-0@@ -899,10 +899,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev, (0 << IAVF_VFINT_DYN_CTLN1_ITR_INDX_SHIFT) |drivers/net/intel/iavf/iavf_ethdev.c static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev, · line 905
Quoted 10 lines
drivers/net/intel/iavf/iavf_ethdev.c +1
-4IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_MASK | (2UL << IAVF_VFINT_DYN_CTLN1_INTERVAL_SHIFT)); -/* debug - check for success! the return value -* should be 2, offset is 0x2800 -*/ -/* IAVF_READ_REG(hw, IAVF_VFINT_ITRN1(0, 0)); */ +IAVF_WRITE_REG (hw,IAVF_VFINT_ITRN1 (1 , vf->msix_base -1 ),2 ); }else {/* If no WB_ON_ITR offload flags, need to set * interrupt for descriptor write back.
Why keep this dead code then?
Signature · 1 line
David Marchand
Quoted 33 lines · David Marchand
Quoted 31 lines · Bruce Richardson
Quoted 9 lines · Bruce Richardson
The interrupt throttling register(ITR) bank 0 value is set to 2, but to ensure best performance across all systems also set the bank 1 value to match.
Signed-off-by Bruce Richardson <[email protected]>--- drivers/net/intel/iavf/iavf_ethdev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)Further testing has indicated that this patch is simply working around a config issue on kernel driver side[1] and should not be necessary in DPDK.
Dropping as rejected in patchwork.
/Bruce
Quoted 10 lines
drivers/net/intel/iavf/iavf_ethdev.c +0
-2@@ -899,10 +899,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev, (0 <<IAVF_VFINT_DYN_CTLN1_ITR_INDX_SHIFT ) |IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_MASK | (2UL << IAVF_VFINT_DYN_CTLN1_INTERVAL_SHIFT)); -/* debug - check for success! the return value -* should be 2, offset is 0x2800
Quoted 9 lines
Quoted 6 lines
drivers/net/intel/iavf/iavf_ethdev.c static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev, · line 905
Quoted 6 lines
drivers/net/intel/iavf/iavf_ethdev.c +1
-2-*/ -/* IAVF_READ_REG(hw, IAVF_VFINT_ITRN1(0, 0)); */ +IAVF_WRITE_REG (hw,IAVF_VFINT_ITRN1 (1 , vf->msix_base -1 ),2 ); }else {/* If no WB_ON_ITR offload flags, need to set * interrupt for descriptor write back. Why keep this dead code then?
No reason. Just haven't got the time right now to do up a replacement patch to delete the old dead code.
/Bruce
Quoted 43 lines · Bruce Richardson
Quoted 33 lines · David Marchand
Quoted 31 lines · Bruce Richardson
Quoted 9 lines · Bruce Richardson
The interrupt throttling register(ITR) bank 0 value is set to 2, but to ensure best performance across all systems also set the bank 1 value to match.
Signed-off-by Bruce Richardson <[email protected]>--- drivers/net/intel/iavf/iavf_ethdev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)Further testing has indicated that this patch is simply working around a config issue on kernel driver side[1] and should not be necessary in DPDK.
Dropping as rejected in patchwork.
/Bruce
Quoted 10 lines
drivers/net/intel/iavf/iavf_ethdev.c +0
-2@@ -899,10 +899,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev, (0 <<IAVF_VFINT_DYN_CTLN1_ITR_INDX_SHIFT ) |IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_MASK | (2UL << IAVF_VFINT_DYN_CTLN1_INTERVAL_SHIFT)); -/* debug - check for success! the return value -* should be 2, offset is 0x2800 Quoted 9 lines
Quoted 6 lines
drivers/net/intel/iavf/iavf_ethdev.c static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev, · line 905
Quoted 6 lines
drivers/net/intel/iavf/iavf_ethdev.c +1
-2-*/ -/* IAVF_READ_REG(hw, IAVF_VFINT_ITRN1(0, 0)); */ +IAVF_WRITE_REG (hw,IAVF_VFINT_ITRN1 (1 , vf->msix_base -1 ),2 ); }else {/* If no WB_ON_ITR offload flags, need to set * interrupt for descriptor write back. Why keep this dead code then?
Quoted 4 lines
No reason. Just haven't got the time right now to do up a replacement patch to delete the old dead code.
/Bruce
I submitted the dead code removal.
Signature · 2 lines
Thanks, Anatoly