[ECOS] Problems receiving packets on i82559

Andrew Lunn andrew.lunn@ascom.ch
Fri Mar 7 12:23:00 GMT 2003


eth_isr and eth_dsr are also called during the send process, not just
when interrupts happen. My guess is you are not getting any real
hardware interrupts from the device.

The code which installs the interrupt handlers is rather messy. Check
its installing the interrupt handler on the correct interrupt line. If
possible get a logic analyzer on your device and see if it really is
generating interrupts, but they are just not getting passed the
interrupt controller.

          Andrew


On Fri, Mar 07, 2003 at 05:44:51PM +0530, Nikhil R. wrote:
> Hi Andrew,
> 
> As u had asked earlier, we added print statements in eth_isr and eth_dsr and
> see them but only when we r sending packets.
> 
> But when we dont send any packet the eth_isr and eth_dsr statements are not
> printed.
> 
> Wht cud be the reason tht the interrupts are not being generated?
> 
> Thanx,
> Nikhil
> 
> -----Original Message-----
> From: Andrew Lunn [mailto:andrew.lunn@ascom.ch]
> Sent: Friday, March 07, 2003 2:01 PM
> To: Nikhil R.
> Cc: ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] Problems receiving packets on i82559
> 
> 
> Hi
> 
> Sounds like your interrupt are not happening. Try printing a
> diag_printf in the isr and dsr functions. Make sure they are being
> called.
> 
> You are receiving while sending because the send code polls the
> receiver. Without this poll you rely on interrupts.
> 
>           Andrew
> 
> On Fri, Mar 07, 2003 at 12:11:11PM +0530, Nikhil R. wrote:
> > Hi All,
> > 
> > We used the i82559 driver in our TCP/IP stack. We have been able to
> > initialize and send packets successfully but r not receving any packets
> > consistently.
> > 
> > When the send is happening, we are receiving ARP and IP packets with
> > destination Eth address of ff:ff:ff:ff:ff:ff.
> > 
> > But we r not receiving any other packet with a different destination Eth
> > address.
> > 
> > Once the send stops we are not able to receive even these packets anymore.
> > 
> > Can anyone throw light on wht the problem could be?
> > 
> > Thanx in advance,
> > Nikhil
> > 
> > 
> > 
> > 
> > DISCLAIMER:
> > This message (including attachment if any) is confidential and may be
> privileged. Before opening attachments please check them for viruses and
> defects. MindTree Consulting Private Limited (MindTree) will not be
> responsible for any viruses or defects or any forwarded attachments emanating
> either from within MindTree or outside. If you have received this message by
> mistake please notify the sender by return  e-mail and delete this message
> from your system. Any unauthorized use or dissemination of this message in
> whole or in part is strictly prohibited.  Please note that e-mails are
> susceptible to change and MindTree shall not be liable for any improper,
> untimely or incomplete transmission.
> > 
> > --
> > Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> > and search the list archive: http://sources.redhat.com/ml/ecos-discuss
> > 
> 
> 
> DISCLAIMER:
> This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return  e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.  Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.

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



More information about the Ecos-discuss mailing list