net/e1000: enable MSI-x for linkup and other events in 82574

Message ID 20180727181317.7374-1-bluca@debian.org (mailing list archive)
State Accepted, archived
Delegated to: Qi Zhang
Headers
Series net/e1000: enable MSI-x for linkup and other events in 82574 |

Checks

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

Commit Message

Luca Boccassi July 27, 2018, 6:13 p.m. UTC
  Linux supports 82574 MSI-x interrupt for linkup and other link
conditions. Enable the same feature in the e1000 PMD in order to
allow this card to work properly, as it requires interrupt
handling for link negotiations among other things.

Signed-off-by: Luca Boccassi <bluca@debian.org>
---

Hi Wenzhuo - just to make it clear, this patch and the previous are
not targeted for 18.08, just clearing my queue.

 drivers/net/e1000/base/e1000_82571.c | 5 +++++
 drivers/net/e1000/em_ethdev.c        | 5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)
  

Comments

Luca Boccassi Sept. 26, 2018, 10:23 a.m. UTC | #1
On Fri, 2018-07-27 at 19:13 +0100, Luca Boccassi wrote:
> Linux supports 82574 MSI-x interrupt for linkup and other link
> conditions. Enable the same feature in the e1000 PMD in order to
> allow this card to work properly, as it requires interrupt
> handling for link negotiations among other things.
> 
> Signed-off-by: Luca Boccassi <bluca@debian.org>
> ---
> 
> Hi Wenzhuo - just to make it clear, this patch and the previous are
> not targeted for 18.08, just clearing my queue.
> 
>  drivers/net/e1000/base/e1000_82571.c | 5 +++++
>  drivers/net/e1000/em_ethdev.c        | 5 +++--
>  2 files changed, 8 insertions(+), 2 deletions(-)

Ping. Any chance this can get looked at? Thanks!
  
Zhao1, Wei Oct. 9, 2018, 10:16 a.m. UTC | #2
Hi,  Luca Boccassi

   A question for this feature, in em code, function eth_em_interrupt_handler() we have no process for handle other cause interrupt.
So, why do we enable this OTHER cause interrupt in DPDK?
You mean some application may take advance of this interrupt for some unknown purpose when using DPDK?


 
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Luca Boccassi
> Sent: Saturday, July 28, 2018 2:13 AM
> To: dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Luca Boccassi
> <bluca@debian.org>
> Subject: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and other
> events in 82574
> 
> Linux supports 82574 MSI-x interrupt for linkup and other link conditions.
> Enable the same feature in the e1000 PMD in order to allow this card to work
> properly, as it requires interrupt handling for link negotiations among other
> things.
> 
> Signed-off-by: Luca Boccassi <bluca@debian.org>
> ---
> 
> Hi Wenzhuo - just to make it clear, this patch and the previous are not
> targeted for 18.08, just clearing my queue.
> 
>  drivers/net/e1000/base/e1000_82571.c | 5 +++++
>  drivers/net/e1000/em_ethdev.c        | 5 +++--
>  2 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/e1000/base/e1000_82571.c
> b/drivers/net/e1000/base/e1000_82571.c
> index 7c279dbb3..397dd9482 100644
> --- a/drivers/net/e1000/base/e1000_82571.c
> +++ b/drivers/net/e1000/base/e1000_82571.c
> @@ -1257,6 +1257,11 @@ STATIC s32 e1000_init_hw_82571(struct e1000_hw
> *hw)
>  	 */
>  	e1000_clear_hw_cntrs_82571(hw);
> 
> +	/* MSI-X configure for 82574 */
> +	if (mac->type == e1000_82574)
> +		E1000_WRITE_REG(hw, E1000_IVAR,
> +				(E1000_IVAR_INT_ALLOC_VALID << 16));
> +
>  	return ret_val;
>  }
> 
> diff --git a/drivers/net/e1000/em_ethdev.c
> b/drivers/net/e1000/em_ethdev.c index 7039dc100..bd05e4de0 100644
> --- a/drivers/net/e1000/em_ethdev.c
> +++ b/drivers/net/e1000/em_ethdev.c
> @@ -1444,7 +1444,8 @@ eth_em_interrupt_setup(struct rte_eth_dev *dev)
>  	/* clear interrupt */
>  	E1000_READ_REG(hw, E1000_ICR);
>  	regval = E1000_READ_REG(hw, E1000_IMS);
> -	E1000_WRITE_REG(hw, E1000_IMS, regval | E1000_ICR_LSC);
> +	E1000_WRITE_REG(hw, E1000_IMS,
> +			regval | E1000_ICR_LSC | E1000_ICR_OTHER);
>  	return 0;
>  }
> 
> @@ -1494,7 +1495,7 @@ em_rxq_intr_enable(struct e1000_hw *hw)  static
> void  em_lsc_intr_disable(struct e1000_hw *hw)  {
> -	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC);
> +	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC |
> E1000_IMS_OTHER);
>  	E1000_WRITE_FLUSH(hw);
>  }
> 
> --
> 2.18.0
  
Zhao1, Wei Oct. 9, 2018, 10:29 a.m. UTC | #3
As datasheet list:

Other Interrupt. Indicates one of the following interrupts was set:
* Link Status Change.
* Receiver Overrun.
* MDIO Access Complete.
* Small Receive Packet Detected.
* Receive ACK Frame Detected.
* Manageability Event Detected.

Which is need when using DPDK?


> -----Original Message-----
> From: Zhao1, Wei
> Sent: Tuesday, October 9, 2018 6:17 PM
> To: 'Luca Boccassi' <bluca@debian.org>; dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Zhang, Qi Z
> <qi.z.zhang@intel.com>
> Subject: RE: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and
> other events in 82574
> 
> Hi,  Luca Boccassi
> 
>    A question for this feature, in em code, function
> eth_em_interrupt_handler() we have no process for handle other cause
> interrupt.
> So, why do we enable this OTHER cause interrupt in DPDK?
> You mean some application may take advance of this interrupt for some
> unknown purpose when using DPDK?
> 
> 
> 
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Luca Boccassi
> > Sent: Saturday, July 28, 2018 2:13 AM
> > To: dev@dpdk.org
> > Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Luca Boccassi
> > <bluca@debian.org>
> > Subject: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and
> > other events in 82574
> >
> > Linux supports 82574 MSI-x interrupt for linkup and other link conditions.
> > Enable the same feature in the e1000 PMD in order to allow this card
> > to work properly, as it requires interrupt handling for link
> > negotiations among other things.
> >
> > Signed-off-by: Luca Boccassi <bluca@debian.org>
> > ---
> >
> > Hi Wenzhuo - just to make it clear, this patch and the previous are
> > not targeted for 18.08, just clearing my queue.
> >
> >  drivers/net/e1000/base/e1000_82571.c | 5 +++++
> >  drivers/net/e1000/em_ethdev.c        | 5 +++--
> >  2 files changed, 8 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/net/e1000/base/e1000_82571.c
> > b/drivers/net/e1000/base/e1000_82571.c
> > index 7c279dbb3..397dd9482 100644
> > --- a/drivers/net/e1000/base/e1000_82571.c
> > +++ b/drivers/net/e1000/base/e1000_82571.c
> > @@ -1257,6 +1257,11 @@ STATIC s32 e1000_init_hw_82571(struct
> e1000_hw
> > *hw)
> >  	 */
> >  	e1000_clear_hw_cntrs_82571(hw);
> >
> > +	/* MSI-X configure for 82574 */
> > +	if (mac->type == e1000_82574)
> > +		E1000_WRITE_REG(hw, E1000_IVAR,
> > +				(E1000_IVAR_INT_ALLOC_VALID << 16));
> > +
> >  	return ret_val;
> >  }
> >
> > diff --git a/drivers/net/e1000/em_ethdev.c
> > b/drivers/net/e1000/em_ethdev.c index 7039dc100..bd05e4de0 100644
> > --- a/drivers/net/e1000/em_ethdev.c
> > +++ b/drivers/net/e1000/em_ethdev.c
> > @@ -1444,7 +1444,8 @@ eth_em_interrupt_setup(struct rte_eth_dev
> *dev)
> >  	/* clear interrupt */
> >  	E1000_READ_REG(hw, E1000_ICR);
> >  	regval = E1000_READ_REG(hw, E1000_IMS);
> > -	E1000_WRITE_REG(hw, E1000_IMS, regval | E1000_ICR_LSC);
> > +	E1000_WRITE_REG(hw, E1000_IMS,
> > +			regval | E1000_ICR_LSC | E1000_ICR_OTHER);
> >  	return 0;
> >  }
> >
> > @@ -1494,7 +1495,7 @@ em_rxq_intr_enable(struct e1000_hw *hw)
> static
> > void  em_lsc_intr_disable(struct e1000_hw *hw)  {
> > -	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC);
> > +	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC |
> > E1000_IMS_OTHER);
> >  	E1000_WRITE_FLUSH(hw);
> >  }
> >
> > --
> > 2.18.0
  
Luca Boccassi Oct. 9, 2018, 10:32 a.m. UTC | #4
On Tue, 2018-10-09 at 10:16 +0000, Zhao1, Wei wrote:
> Hi,  Luca Boccassi
> 
>    A question for this feature, in em code, function
> eth_em_interrupt_handler() we have no process for handle other cause
> interrupt.
> So, why do we enable this OTHER cause interrupt in DPDK?
> You mean some application may take advance of this interrupt for some
> unknown purpose when using DPDK?

Hi,

This MSI-x interrupt is for link state change, which is already handled
by the driver.
As mentioned, without this link state change for the 82574 NIC does not
work.

> 
>  
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Luca Boccassi
> > Sent: Saturday, July 28, 2018 2:13 AM
> > To: dev@dpdk.org
> > Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Luca Boccassi
> > <bluca@debian.org>
> > Subject: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and
> > other
> > events in 82574
> > 
> > Linux supports 82574 MSI-x interrupt for linkup and other link
> > conditions.
> > Enable the same feature in the e1000 PMD in order to allow this
> > card to work
> > properly, as it requires interrupt handling for link negotiations
> > among other
> > things.
> > 
> > Signed-off-by: Luca Boccassi <bluca@debian.org>
> > ---
> > 
> > Hi Wenzhuo - just to make it clear, this patch and the previous are
> > not
> > targeted for 18.08, just clearing my queue.
> > 
> >  drivers/net/e1000/base/e1000_82571.c | 5 +++++
> >  drivers/net/e1000/em_ethdev.c        | 5 +++--
> >  2 files changed, 8 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/net/e1000/base/e1000_82571.c
> > b/drivers/net/e1000/base/e1000_82571.c
> > index 7c279dbb3..397dd9482 100644
> > --- a/drivers/net/e1000/base/e1000_82571.c
> > +++ b/drivers/net/e1000/base/e1000_82571.c
> > @@ -1257,6 +1257,11 @@ STATIC s32 e1000_init_hw_82571(struct
> > e1000_hw
> > *hw)
> >  	 */
> >  	e1000_clear_hw_cntrs_82571(hw);
> > 
> > +	/* MSI-X configure for 82574 */
> > +	if (mac->type == e1000_82574)
> > +		E1000_WRITE_REG(hw, E1000_IVAR,
> > +				(E1000_IVAR_INT_ALLOC_VALID <<
> > 16));
> > +
> >  	return ret_val;
> >  }
> > 
> > diff --git a/drivers/net/e1000/em_ethdev.c
> > b/drivers/net/e1000/em_ethdev.c index 7039dc100..bd05e4de0 100644
> > --- a/drivers/net/e1000/em_ethdev.c
> > +++ b/drivers/net/e1000/em_ethdev.c
> > @@ -1444,7 +1444,8 @@ eth_em_interrupt_setup(struct rte_eth_dev
> > *dev)
> >  	/* clear interrupt */
> >  	E1000_READ_REG(hw, E1000_ICR);
> >  	regval = E1000_READ_REG(hw, E1000_IMS);
> > -	E1000_WRITE_REG(hw, E1000_IMS, regval | E1000_ICR_LSC);
> > +	E1000_WRITE_REG(hw, E1000_IMS,
> > +			regval | E1000_ICR_LSC | E1000_ICR_OTHER);
> >  	return 0;
> >  }
> > 
> > @@ -1494,7 +1495,7 @@ em_rxq_intr_enable(struct e1000_hw
> > *hw)  static
> > void  em_lsc_intr_disable(struct e1000_hw *hw)  {
> > -	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC);
> > +	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC |
> > E1000_IMS_OTHER);
> >  	E1000_WRITE_FLUSH(hw);
> >  }
> > 
> > --
> > 2.18.0
> 
>
  
Zhao1, Wei Oct. 10, 2018, 7:13 a.m. UTC | #5
Acked-by:  Wei Zhao <wei.zhao1@intel.com>

> -----Original Message-----
> From: Luca Boccassi [mailto:bluca@debian.org]
> Sent: Tuesday, October 9, 2018 6:33 PM
> To: Zhao1, Wei <wei.zhao1@intel.com>; dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Zhang, Qi Z
> <qi.z.zhang@intel.com>
> Subject: Re: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and
> other events in 82574
> 
> On Tue, 2018-10-09 at 10:16 +0000, Zhao1, Wei wrote:
> > Hi,  Luca Boccassi
> >
> >    A question for this feature, in em code, function
> > eth_em_interrupt_handler() we have no process for handle other cause
> > interrupt.
> > So, why do we enable this OTHER cause interrupt in DPDK?
> > You mean some application may take advance of this interrupt for some
> > unknown purpose when using DPDK?
> 
> Hi,
> 
> This MSI-x interrupt is for link state change, which is already handled by the
> driver.
> As mentioned, without this link state change for the 82574 NIC does not work.
> 
> >
> >
> > > -----Original Message-----
> > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Luca Boccassi
> > > Sent: Saturday, July 28, 2018 2:13 AM
> > > To: dev@dpdk.org
> > > Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Luca Boccassi
> > > <bluca@debian.org>
> > > Subject: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and
> > > other events in 82574
> > >
> > > Linux supports 82574 MSI-x interrupt for linkup and other link
> > > conditions.
> > > Enable the same feature in the e1000 PMD in order to allow this card
> > > to work properly, as it requires interrupt handling for link
> > > negotiations among other things.
> > >
> > > Signed-off-by: Luca Boccassi <bluca@debian.org>
> > > ---
> > >
> > > Hi Wenzhuo - just to make it clear, this patch and the previous are
> > > not targeted for 18.08, just clearing my queue.
> > >
> > >  drivers/net/e1000/base/e1000_82571.c | 5 +++++
> > >  drivers/net/e1000/em_ethdev.c        | 5 +++--
> > >  2 files changed, 8 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/drivers/net/e1000/base/e1000_82571.c
> > > b/drivers/net/e1000/base/e1000_82571.c
> > > index 7c279dbb3..397dd9482 100644
> > > --- a/drivers/net/e1000/base/e1000_82571.c
> > > +++ b/drivers/net/e1000/base/e1000_82571.c
> > > @@ -1257,6 +1257,11 @@ STATIC s32 e1000_init_hw_82571(struct
> > > e1000_hw
> > > *hw)
> > >  	 */
> > >  	e1000_clear_hw_cntrs_82571(hw);
> > >
> > > +	/* MSI-X configure for 82574 */
> > > +	if (mac->type == e1000_82574)
> > > +		E1000_WRITE_REG(hw, E1000_IVAR,
> > > +				(E1000_IVAR_INT_ALLOC_VALID <<
> > > 16));
> > > +
> > >  	return ret_val;
> > >  }
> > >
> > > diff --git a/drivers/net/e1000/em_ethdev.c
> > > b/drivers/net/e1000/em_ethdev.c index 7039dc100..bd05e4de0 100644
> > > --- a/drivers/net/e1000/em_ethdev.c
> > > +++ b/drivers/net/e1000/em_ethdev.c
> > > @@ -1444,7 +1444,8 @@ eth_em_interrupt_setup(struct rte_eth_dev
> > > *dev)
> > >  	/* clear interrupt */
> > >  	E1000_READ_REG(hw, E1000_ICR);
> > >  	regval = E1000_READ_REG(hw, E1000_IMS);
> > > -	E1000_WRITE_REG(hw, E1000_IMS, regval | E1000_ICR_LSC);
> > > +	E1000_WRITE_REG(hw, E1000_IMS,
> > > +			regval | E1000_ICR_LSC | E1000_ICR_OTHER);
> > >  	return 0;
> > >  }
> > >
> > > @@ -1494,7 +1495,7 @@ em_rxq_intr_enable(struct e1000_hw
> > > *hw)  static
> > > void  em_lsc_intr_disable(struct e1000_hw *hw)  {
> > > -	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC);
> > > +	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC |
> > > E1000_IMS_OTHER);
> > >  	E1000_WRITE_FLUSH(hw);
> > >  }
> > >
> > > --
> > > 2.18.0
> >
> >
> 
> --
> Kind regards,
> Luca Boccassi
  
Qi Zhang Oct. 10, 2018, 5:58 p.m. UTC | #6
> -----Original Message-----
> From: Zhao1, Wei
> Sent: Wednesday, October 10, 2018 12:14 AM
> To: Luca Boccassi <bluca@debian.org>; dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Zhang, Qi Z
> <qi.z.zhang@intel.com>
> Subject: RE: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and
> other events in 82574
> 
> Acked-by:  Wei Zhao <wei.zhao1@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi

> 
> > -----Original Message-----
> > From: Luca Boccassi [mailto:bluca@debian.org]
> > Sent: Tuesday, October 9, 2018 6:33 PM
> > To: Zhao1, Wei <wei.zhao1@intel.com>; dev@dpdk.org
> > Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Zhang, Qi Z
> > <qi.z.zhang@intel.com>
> > Subject: Re: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and
> > other events in 82574
> >
> > On Tue, 2018-10-09 at 10:16 +0000, Zhao1, Wei wrote:
> > > Hi,  Luca Boccassi
> > >
> > >    A question for this feature, in em code, function
> > > eth_em_interrupt_handler() we have no process for handle other cause
> > > interrupt.
> > > So, why do we enable this OTHER cause interrupt in DPDK?
> > > You mean some application may take advance of this interrupt for
> > > some unknown purpose when using DPDK?
> >
> > Hi,
> >
> > This MSI-x interrupt is for link state change, which is already
> > handled by the driver.
> > As mentioned, without this link state change for the 82574 NIC does not
> work.
> >
> > >
> > >
> > > > -----Original Message-----
> > > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Luca Boccassi
> > > > Sent: Saturday, July 28, 2018 2:13 AM
> > > > To: dev@dpdk.org
> > > > Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Luca Boccassi
> > > > <bluca@debian.org>
> > > > Subject: [dpdk-dev] [PATCH] net/e1000: enable MSI-x for linkup and
> > > > other events in 82574
> > > >
> > > > Linux supports 82574 MSI-x interrupt for linkup and other link
> > > > conditions.
> > > > Enable the same feature in the e1000 PMD in order to allow this
> > > > card to work properly, as it requires interrupt handling for link
> > > > negotiations among other things.
> > > >
> > > > Signed-off-by: Luca Boccassi <bluca@debian.org>
> > > > ---
> > > >
> > > > Hi Wenzhuo - just to make it clear, this patch and the previous
> > > > are not targeted for 18.08, just clearing my queue.
> > > >
> > > >  drivers/net/e1000/base/e1000_82571.c | 5 +++++
> > > >  drivers/net/e1000/em_ethdev.c        | 5 +++--
> > > >  2 files changed, 8 insertions(+), 2 deletions(-)
> > > >
> > > > diff --git a/drivers/net/e1000/base/e1000_82571.c
> > > > b/drivers/net/e1000/base/e1000_82571.c
> > > > index 7c279dbb3..397dd9482 100644
> > > > --- a/drivers/net/e1000/base/e1000_82571.c
> > > > +++ b/drivers/net/e1000/base/e1000_82571.c
> > > > @@ -1257,6 +1257,11 @@ STATIC s32 e1000_init_hw_82571(struct
> > > > e1000_hw
> > > > *hw)
> > > >  	 */
> > > >  	e1000_clear_hw_cntrs_82571(hw);
> > > >
> > > > +	/* MSI-X configure for 82574 */
> > > > +	if (mac->type == e1000_82574)
> > > > +		E1000_WRITE_REG(hw, E1000_IVAR,
> > > > +				(E1000_IVAR_INT_ALLOC_VALID <<
> > > > 16));
> > > > +
> > > >  	return ret_val;
> > > >  }
> > > >
> > > > diff --git a/drivers/net/e1000/em_ethdev.c
> > > > b/drivers/net/e1000/em_ethdev.c index 7039dc100..bd05e4de0
> 100644
> > > > --- a/drivers/net/e1000/em_ethdev.c
> > > > +++ b/drivers/net/e1000/em_ethdev.c
> > > > @@ -1444,7 +1444,8 @@ eth_em_interrupt_setup(struct rte_eth_dev
> > > > *dev)
> > > >  	/* clear interrupt */
> > > >  	E1000_READ_REG(hw, E1000_ICR);
> > > >  	regval = E1000_READ_REG(hw, E1000_IMS);
> > > > -	E1000_WRITE_REG(hw, E1000_IMS, regval | E1000_ICR_LSC);
> > > > +	E1000_WRITE_REG(hw, E1000_IMS,
> > > > +			regval | E1000_ICR_LSC | E1000_ICR_OTHER);
> > > >  	return 0;
> > > >  }
> > > >
> > > > @@ -1494,7 +1495,7 @@ em_rxq_intr_enable(struct e1000_hw
> > > > *hw)  static
> > > > void  em_lsc_intr_disable(struct e1000_hw *hw)  {
> > > > -	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC);
> > > > +	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC |
> > > > E1000_IMS_OTHER);
> > > >  	E1000_WRITE_FLUSH(hw);
> > > >  }
> > > >
> > > > --
> > > > 2.18.0
> > >
> > >
> >
> > --
> > Kind regards,
> > Luca Boccassi
  

Patch

diff --git a/drivers/net/e1000/base/e1000_82571.c b/drivers/net/e1000/base/e1000_82571.c
index 7c279dbb3..397dd9482 100644
--- a/drivers/net/e1000/base/e1000_82571.c
+++ b/drivers/net/e1000/base/e1000_82571.c
@@ -1257,6 +1257,11 @@  STATIC s32 e1000_init_hw_82571(struct e1000_hw *hw)
 	 */
 	e1000_clear_hw_cntrs_82571(hw);
 
+	/* MSI-X configure for 82574 */
+	if (mac->type == e1000_82574)
+		E1000_WRITE_REG(hw, E1000_IVAR,
+				(E1000_IVAR_INT_ALLOC_VALID << 16));
+
 	return ret_val;
 }
 
diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c
index 7039dc100..bd05e4de0 100644
--- a/drivers/net/e1000/em_ethdev.c
+++ b/drivers/net/e1000/em_ethdev.c
@@ -1444,7 +1444,8 @@  eth_em_interrupt_setup(struct rte_eth_dev *dev)
 	/* clear interrupt */
 	E1000_READ_REG(hw, E1000_ICR);
 	regval = E1000_READ_REG(hw, E1000_IMS);
-	E1000_WRITE_REG(hw, E1000_IMS, regval | E1000_ICR_LSC);
+	E1000_WRITE_REG(hw, E1000_IMS,
+			regval | E1000_ICR_LSC | E1000_ICR_OTHER);
 	return 0;
 }
 
@@ -1494,7 +1495,7 @@  em_rxq_intr_enable(struct e1000_hw *hw)
 static void
 em_lsc_intr_disable(struct e1000_hw *hw)
 {
-	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC);
+	E1000_WRITE_REG(hw, E1000_IMC, E1000_IMS_LSC | E1000_IMS_OTHER);
 	E1000_WRITE_FLUSH(hw);
 }