[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <efc9214f0911160123t31d7df31tc1afcbd5129b7d86@mail.gmail.com>
Date: Mon, 16 Nov 2009 17:23:32 +0800
From: zeal <zealcook@...il.com>
To: netdev@...r.kernel.org
Cc: "Figo.zhang" <figo1802@...il.com>,
Vincent Sanders <vince@...tec.co.uk>,
Ben Dooks <ben@...tec.co.uk>
Subject: KS8695: problem with ethernet driver
Hi,
I've two questions on the ks8695.
1. We knew recently Figo.zhang has added NAPI support for ks8695 net driver.
Thanks him. But on our ks8695 board it couldn't work well as i thought.
We used net-next-git kernel.
IP layer cannot receive any frame from lan or wan port(s).
After dig into the driver, I found the rx interrupt occurs,
but the corresponding status bit is not set. So it won't go into napi
schedule block.
if (status & mask_bit) {
if (napi_schedule_prep(&ksp->napi)) {
/*disable rx interrupt*/
status &= ~mask_bit;
writel(status , KS8695_IRQ_VA + KS8695_INTEN);
__napi_schedule(&ksp->napi);
}
}
Does anybody tested this NAPI driver succeeded before? If so it maybe
hardware issue.
2. It's a extend topic about ks8695. Does the cpu port can tell the
source port (i.e. lan port ID)
when it receive a frame from LAN ports? I think a smart switch need
know where the frame come from
and then decide where it to go. And many switch-chip in this way.
The manual can't help me at all as i've done according to it.
Any hint is appreciated.
--
Thanks & Regards
zeal
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists