netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Giuseppe CAVALLARO <peppe.cavallaro@st.com>
To: Yuval Mintz <yuvalmin@broadcom.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"bhutchings@solarflare.com" <bhutchings@solarflare.com>,
	"rayagond@vayavyalabs.com" <rayagond@vayavyalabs.com>,
	"davem@davemloft.net" <davem@davemloft.net>
Subject: Re: [net-next.git 4/4 (v4)] stmmac: add the Energy Efficient Ethernet support
Date: Tue, 12 Jun 2012 16:24:56 +0200	[thread overview]
Message-ID: <4FD75138.2090503@st.com> (raw)
In-Reply-To: <979A8436335E3744ADCD3A9F2A2B68A5027BDB@SJEXCHMB10.corp.ad.broadcom.com>

On 6/12/2012 3:09 PM, Yuval Mintz wrote:
> Hi Giuseppe,
> 
>> @@ -1541,10 +1663,37 @@ static irqreturn_t stmmac_interrupt(int irq,
>> void *dev_id)
>> +		if (unlikely(status)) {
>> +			if (status & core_mmc_tx_irq)
>> +				priv->xstats.mmc_tx_irq_n++;
>> +			if (status & core_mmc_rx_irq)
>> +				priv->xstats.mmc_rx_irq_n++;
>> +			if (status & core_mmc_rx_csum_offload_irq)
>> +				priv->xstats.mmc_rx_csum_offload_irq_n++;
>> +			if (status & core_irq_receive_pmt_irq)
>> +				priv->xstats.irq_receive_pmt_irq_n++;
>> +
> 
> Are these EEE related?
> 
>> +	/* To handle DMA interrupts */
> 
> Is this related?
> 

To clearly manage and expose the lpi interrupt status and eee ethtool
stats I've had to do some modifications to the driver's design and I
found really useful to move other parts of the code (e.g. mmc irq stat)
in the main directly. So this just is the result of a complete reworking
made to introduce the EEE. I could better document it in the patch's
comment or create a separate patch that could take a while.

Cheers
Peppe

> 
> Cheers,
> Yuval Mintz
> 
> 
> 

  reply	other threads:[~2012-06-12 14:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-12 12:45 [net-next.git 0/4] EEE for PAL and stmmac Giuseppe CAVALLARO
2012-06-12 12:45 ` [net-next.git 1/4 (v4)] phy: add the EEE support and the way to access to the MMD registers Giuseppe CAVALLARO
2012-06-12 16:50   ` Ben Hutchings
2012-06-12 12:45 ` [net-next.git 2/4] stmmac: do not use strict_strtoul but kstrtoul Giuseppe CAVALLARO
2012-06-12 14:28   ` Eric Dumazet
2012-06-12 12:45 ` [net-next.git 3/4] stmmac: update the driver Documentation and add EEE Giuseppe CAVALLARO
2012-06-12 12:45 ` [net-next.git 4/4 (v4)] stmmac: add the Energy Efficient Ethernet support Giuseppe CAVALLARO
2012-06-12 13:09   ` Yuval Mintz
2012-06-12 14:24     ` Giuseppe CAVALLARO [this message]
2012-06-12 16:42   ` Ben Hutchings

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FD75138.2090503@st.com \
    --to=peppe.cavallaro@st.com \
    --cc=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=rayagond@vayavyalabs.com \
    --cc=yuvalmin@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).