[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1235251162.8805.212.camel@pasglop>
Date: Sun, 22 Feb 2009 08:19:22 +1100
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: Stephen Hemminger <shemminger@...tta.com>, gotzoncabanes@...il.com,
netdev@...r.kernel.org
Subject: Re: NAPI of many interfaces with just an interruption source
> Ben has just done exactly the same thing for his driver so he
> can tell you all about it and how to use his generic function :)
Right, you can look how it's done in ibm_newemac. There's basically
a "dummy" netdev which is created to handle the NAPI on behalf of
the real ones. The new core function init_dummy_netdev() will set
up that dummy netdev for you.
If you look at how I do it in emac, the actual ports "register"
internally with that "mal" module so that I can "poll" them when
the main NAPI is polled.
Cheers,
Ben.
--
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