All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/ixgbe: keep interrupt throttling disabled
@ 2017-01-20 23:10 David Su
  2017-03-30 14:28 ` Dai, Wei
  0 siblings, 1 reply; 2+ messages in thread
From: David Su @ 2017-01-20 23:10 UTC (permalink / raw)
  To: dev; +Cc: David Su

The code being removed would enable time-based interrupt throttling for
the first MSI-X interrupt vector.  This would throttle link status
change interrupts for NICs bound to vfio_pci driver; but for
igb_uio driver, rx queue 0 interrupts would be throttled.  This resulted
in inconsistent latencies in a DPDK interrupt mode packet forwarding
application between the 2 drivers.

We'd like DPDK interrupt mode applications to be awaken by
inbound packet interrupts as soon as they are received regardless
of interrupt interval, interrupt throttling should be kept disabled.

Signed-off-by: David Su <david.w.su@intel.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index bdf4e2b..fdfb7a6 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -5815,8 +5815,6 @@ ixgbe_configure_msix(struct rte_eth_dev *dev)
 	default:
 		break;
 	}
-	IXGBE_WRITE_REG(hw, IXGBE_EITR(IXGBE_MISC_VEC_ID),
-			IXGBE_MIN_INTER_INTERRUPT_INTERVAL_DEFAULT & 0xFFF);
 
 	/* set up to autoclear timer, and the vectors */
 	mask = IXGBE_EIMS_ENABLE_MASK;
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/ixgbe: keep interrupt throttling disabled
  2017-01-20 23:10 [PATCH] net/ixgbe: keep interrupt throttling disabled David Su
@ 2017-03-30 14:28 ` Dai, Wei
  0 siblings, 0 replies; 2+ messages in thread
From: Dai, Wei @ 2017-03-30 14:28 UTC (permalink / raw)
  To: Su, David W, dev; +Cc: Su, David W

Hi, David

The code to be removed set the minimum interrupt interval of queue 0 to 0x79E.
According to datasheet, this value has something wrong because it wirte the least 
reserved 3 bits to 110. Anyway, it intends to set a non-zero minimum interrupt interval.

ixgbe_configure_msix( ) is only called by ixgbe_dev_start( ).
After it is called, ixgbe_dev_rx_ini( ) is called.
And ixgbe_set_rsc( ) is called in ixgbe_dev_rx_init( ).
In ixgbe_set_rsc( ), if RSC is enabled, the ITR (interrupt interval) is set to 500us again.

So I think enabling immediate interrupt response by removing these codes is not suitable.
It should be done in other code where interrupt mode Rx is configured.

> Subject: [dpdk-dev] [PATCH] net/ixgbe: keep interrupt throttling disabled
> 
> The code being removed would enable time-based interrupt throttling for the
> first MSI-X interrupt vector.  This would throttle link status change interrupts
> for NICs bound to vfio_pci driver; but for igb_uio driver, rx queue 0 interrupts
> would be throttled.  This resulted in inconsistent latencies in a DPDK interrupt
> mode packet forwarding application between the 2 drivers.
> 
> We'd like DPDK interrupt mode applications to be awaken by inbound packet
> interrupts as soon as they are received regardless of interrupt interval,
> interrupt throttling should be kept disabled.
> 
> Signed-off-by: David Su <david.w.su@intel.com>
> ---
>  drivers/net/ixgbe/ixgbe_ethdev.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c
> b/drivers/net/ixgbe/ixgbe_ethdev.c
> index bdf4e2b..fdfb7a6 100644
> --- a/drivers/net/ixgbe/ixgbe_ethdev.c
> +++ b/drivers/net/ixgbe/ixgbe_ethdev.c
> @@ -5815,8 +5815,6 @@ ixgbe_configure_msix(struct rte_eth_dev *dev)
>  	default:
>  		break;
>  	}
> -	IXGBE_WRITE_REG(hw, IXGBE_EITR(IXGBE_MISC_VEC_ID),
> -			IXGBE_MIN_INTER_INTERRUPT_INTERVAL_DEFAULT & 0xFFF);
> 
>  	/* set up to autoclear timer, and the vectors */
>  	mask = IXGBE_EIMS_ENABLE_MASK;
> --
> 1.7.0.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-30 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-20 23:10 [PATCH] net/ixgbe: keep interrupt throttling disabled David Su
2017-03-30 14:28 ` Dai, Wei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.