This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Is it possible to do polling for the Ethernet driver using a stack ?


Basically,
   I expect the stack to process the packets for all standard socket
operations.

   By reading through some examples, after polling for the FCCE flags, I
need to calculate the length of the packet and then call the receive
function part of my driver hook. However I require a struct eth_drv_sc
argument. This argument is passed from the interrupt. Is there another
way to get that handle ?

Hope I'm giving you a tiny challenge here !

Pascal

-----Original Message-----
From: Gary Thomas [mailto:gthomas@ecoscentric.com]
Sent: Thursday, October 31, 2002 10:48 AM
To: Cusson, Pascal
Cc: eCos Discussion
Subject: RE: [ECOS] Is it possible to do polling for the Ethernet driver
using a stack ?


On Thu, 2002-10-31 at 08:32, Cusson, Pascal wrote:
> Yes there is,
>    I need maximize performance on a system will support multiple ATM
and
> ETH. My system need to be synchronous meaning one after another in
> specific order. By using polling I can easily control all aspects.
> Further more, polling will take less time than using interrupts which
> should help for performances. The 8260 I am using is not the fastest
> therefore I need everything I can get out of it.
> 
>    What I would like do is poll the FCCE to see if there is a buffer
> ready and then signal the stack so that the buffer descriptor can be
> processed and freed. 
> 
> The part I am missing here is how to I tell the stack to process my
> buffer descriptor ?
> 

One you have a packet (or activity), what sort of things are you then 
expecting the "stack" to do for you?

> Pascal
> 
> -----Original Message-----
> From: Gary Thomas [mailto:gthomas@ecoscentric.com]
> Sent: Thursday, October 31, 2002 10:25 AM
> To: Cusson, Pascal
> Cc: eCos Discussion
> Subject: Re: [ECOS] Is it possible to do polling for the Ethernet
driver
> using a stack ?
> 
> 
> On Thu, 2002-10-31 at 08:04, Cusson, Pascal wrote:
> > Hello Everyone,
> >    Has anyone ever made a Ethernet driver using polling ? If so how
> did you link the driver to the stack ? What function calls did you
make
> ?
> 
> The stacks that are used with eCos (not RedBoot, it has it's
> own stack) really should be interrupt driven.  Is there some
> reason that you want to poll?
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                  |
> eCosCentric, Ltd.            |  
> +1 (970) 229-1963            |  eCos & RedBoot experts
> gthomas@ecoscentric.com      |
> http://www.ecoscentric.com/  |
> ------------------------------------------------------------
> 
> -- 
> Before posting, please read the FAQ:
http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]