From: Stephen Hemminger <shemminger@linux-foundation.org>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: netdev@vger.kernel.org
Subject: [PATCH] cassini: NAPI configuration
Date: Wed, 21 Nov 2007 11:53:58 -0800 [thread overview]
Message-ID: <20071121115358.2e31fb91@freepuppy.rosehill> (raw)
The Cassini driver has NAPI support, but it not possible to configure it.
Compile tested only, no idea if it works (no hardware).
Get rid of warning from lefover variable in now visible code.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
--- a/drivers/net/Kconfig 2007-11-19 18:56:12.000000000 -0800
+++ b/drivers/net/Kconfig 2007-11-21 11:28:20.000000000 -0800
@@ -587,6 +587,15 @@ config CASSINI
Support for the Sun Cassini chip, aka Sun GigaSwift Ethernet. See also
<http://www.sun.com/products-n-solutions/hardware/docs/pdf/817-4341-10.pdf>
+config CASSINI_NAPI
+ bool "Use Rx Polling (NAPI) (EXPERIMENTAL)"
+ depends on CASSINI && EXPERIMENTAL
+ help
+ NAPI is a new driver API designed to reduce CPU and interrupt load
+ when the driver is receiving lots of packets from the card.
+
+ If in doubt, say N.
+
config SUNVNET
tristate "Sun Virtual Network support"
depends on SUN_LDOMS
--- a/drivers/net/cassini.c 2007-11-16 16:17:20.000000000 -0800
+++ b/drivers/net/cassini.c 2007-11-21 11:30:43.000000000 -0800
@@ -2611,7 +2611,7 @@ static int cas_poll(struct napi_struct *
{
struct cas *cp = container_of(napi, struct cas, napi);
struct net_device *dev = cp->dev;
- int i, enable_intr, todo, credits;
+ int i, enable_intr, credits;
u32 status = readl(cp->regs + REG_INTR_STATUS);
unsigned long flags;
next reply other threads:[~2007-11-21 19:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-21 19:53 Stephen Hemminger [this message]
2007-11-23 1:00 ` [PATCH] cassini: NAPI configuration David Miller
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=20071121115358.2e31fb91@freepuppy.rosehill \
--to=shemminger@linux-foundation.org \
--cc=jgarzik@pobox.com \
--cc=netdev@vger.kernel.org \
/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