Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Reg - Sample Ethernet driver: (5 Items)
   
Reg - Sample Ethernet driver  
Hi,

I  have download the sample ethernet driver and i mounted.

if i done ifconfig then  sam0 interface is  present.Here there is no hardware interrupt.
Interrupt is getting from qtime for every sec/msec (i dont know).

What i did was gets the packets from ethernet interface and give it to stack via sam0 interface.

My test setup :

QNX PC 1: ifconfig en1 20.0.0.3 
QNX PC2 :ifconfig sam0 20.0.0.1

if i do ping - ping is working file .

But if i do ping -f 20.0.0.3. it sends only  1000 packets/sec.But other interfaces ping -f 172.30.14.80 it 7000 Packets/
sec.

I think Because of qtime interrupt.

Can you please suggest how to process all the ping packets.

Thanks and Regards
K.Senthil












Re: Reg - Sample Ethernet driver  
On Mon, Aug 31, 2009 at 05:02:34AM -0400, Senthil K wrote:
> Hi,
> 
> I  have download the sample ethernet driver and i mounted.
> 
> if i done ifconfig then  sam0 interface is  present.Here there is no hardware interrupt.
> Interrupt is getting from qtime for every sec/msec (i dont know).
> 
> What i did was gets the packets from ethernet interface and give it to stack via sam0 interface.
> 
> My test setup :
> 
> QNX PC 1: ifconfig en1 20.0.0.3 
> QNX PC2 :ifconfig sam0 20.0.0.1
> 
> if i do ping - ping is working file .
> 
> But if i do ping -f 20.0.0.3. it sends only  1000 packets/sec.But other interfaces ping -f 172.30.14.80 it 7000 
Packets/sec.
> 
> I think Because of qtime interrupt.
> 
> Can you please suggest how to process all the ping packets.

You probably need to attach to the real interrupt.

-seanb
Re: Reg - Sample Ethernet driver  
Hi Sean,

is there any posibility to change the qtime value to process the interrupt quickly.


Thanks and Regards
K.Senthil
Re: Reg - Sample Ethernet driver  
On Mon, Aug 31, 2009 at 08:12:33AM -0400, Senthil K wrote:
> Hi Sean,
> 
> is there any posibility to change the qtime value to process the interrupt quickly.
> 

The resolutoin of the timer tick can be changed
with ClockPeriod(); however doing so in this
case is wrong if your hardware has a real interrupt.

-seanb
Re: Reg - Sample Ethernet driver  
Hi Sean,

I dont have real interrupt because i m using that as a dummy interface, i will get the packet from ethernet interface.

Thanks and Regards
K.Senthil