mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: vbridger@opensource.altera.com
Cc: netdev@vger.kernel.org, nios2-dev@lists.rocketboards.org,
	linux-kernel@vger.kernel.org, vbridger@altera.com, setka@vsis.cz,
	rpisl@kky.zcu.cz
Subject: Re: [PATCH net-next] altera_tse: Fixes in NAPI and interrupt handling paths
Date: Mon, 23 Feb 2015 18:08:15 -0500 (EST)	[thread overview]
Message-ID: <20150223.180815.2270832900387656053.davem@davemloft.net> (raw)
In-Reply-To: <1424712629-24330-1-git-send-email-vbridger@opensource.altera.com>

From: Vince Bridgers <vbridger@opensource.altera.com>
Date: Mon, 23 Feb 2015 11:30:29 -0600

> From: Vlastimil Setka <setka@vsis.cz>
> 
> Incorrect NAPI polling caused WARNING at net/core/dev.c net_rx_action.
> Some stability issues were also seen at high throughput and system
> load before this patch.
> 
> This patch contains several changes in altera_tse_main.c:
> 
> - tse_rx() is fixed to not process more than `limit` frames
> 
> - tse_poll() is refactored to match NAPI logic
>   - only received frames are counted for return value
>   - removed bogus condition `(rxcomplete >= budget || txcomplete > 0)`
>   - replace by: if (rxcomplete < budget) -> call __napi_complete and enable irq
> 
> - altera_isr()
>   - replace spin_lock_irqsave() by spin_lock() - we are in isr
>   - use spinlocks just over irq manipulation, not over __napi_schedule
>   - reset IRQ first, then disable and schedule napi
> 
> This is a cleaned up resubmission from Vlastimil's recent submission.
> 
> Signed-off-by: Vlastimil Setka <setka@vsis.cz>
> Signed-off-by: Roman Pisl <rpisl@kky.zcu.cz>
> Signed-off-by: Vince Bridgers <vbridger@opensource.altera.com>

This is also a bug fix, and therefore not appropriate to target at 'net-next'.

I've applied it to 'net' instead.

      reply	other threads:[~2015-02-23 23:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-23 17:30 Vince Bridgers
2015-02-23 23:08 ` David Miller [this message]

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=20150223.180815.2270832900387656053.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nios2-dev@lists.rocketboards.org \
    --cc=rpisl@kky.zcu.cz \
    --cc=setka@vsis.cz \
    --cc=vbridger@altera.com \
    --cc=vbridger@opensource.altera.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

all inboxes | Powered by JetHome®