All of lore.kernel.org
 help / color / mirror / Atom feed
* Assistance debugging a Micrel network driver
@ 2007-06-29 15:39 Greg Huber
  2007-06-29 16:02 ` Jesper Juhl
  2007-06-29 17:20 ` Andi Kleen
  0 siblings, 2 replies; 3+ messages in thread
From: Greg Huber @ 2007-06-29 15:39 UTC (permalink / raw)
  To: linux-kernel

Hello,
I hope this is the right place to request some assistance, my apologizes 
if its not.

I'm currently developing a network driver for a new controller chip. The 
driver is mostly complete and appears to be working,
with the exception that messages received and sent up the stack appear 
to get dropped by a higher layer. Specifically we
are seeing ARP "who is" requests go out, and the response come back 
(only 2 nodes on this network), the skb is configured
and the frame is sent up with netif_rx (we haven't started supporting 
NAPI yet). The response seems to get dropped somewhere
as another ARP "who is" request is sent. I am using the 2.6.21.5 kernel 
(compilied with network debugging turned on) and we
have also tested with the 2.6.17 kernel, all acted the same.

The upper layers obviously work so I'm sure it's something in my driver.

I have turned on as much debugging in the kernel as I could find, but I 
get no messages. Could someone please let me know if
there is additional debugging I should consider or if there is a dynamic 
way to turn on debugging in L2 and/or L3.

Additionally, if anyone has any idea what might be happening, I would 
greatly appreciate any information.

Thank You

Greg

-- 

Greg Huber
Principal Engineer
Vanteon Corporation
255 Woodcliff Drive, Suite 200
Fairport, NY 14450
Office: (585) 419-9564
Fax: (585) 248-0537
www.vanteon.com <http://www.vanteon.com>  - Embedded for Your Future


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Assistance debugging a Micrel network driver
  2007-06-29 15:39 Assistance debugging a Micrel network driver Greg Huber
@ 2007-06-29 16:02 ` Jesper Juhl
  2007-06-29 17:20 ` Andi Kleen
  1 sibling, 0 replies; 3+ messages in thread
From: Jesper Juhl @ 2007-06-29 16:02 UTC (permalink / raw)
  To: Greg Huber; +Cc: linux-kernel

On 29/06/07, Greg Huber <ghuber@vanteon.com> wrote:
> Hello,
> I hope this is the right place to request some assistance, my apologizes
> if its not.
>
> I'm currently developing a network driver for a new controller chip. The
> driver is mostly complete and appears to be working,
> with the exception that messages received and sent up the stack appear
> to get dropped by a higher layer. Specifically we
> are seeing ARP "who is" requests go out, and the response come back
> (only 2 nodes on this network), the skb is configured
> and the frame is sent up with netif_rx (we haven't started supporting
> NAPI yet). The response seems to get dropped somewhere
> as another ARP "who is" request is sent. I am using the 2.6.21.5 kernel
> (compilied with network debugging turned on) and we
> have also tested with the 2.6.17 kernel, all acted the same.
>
> The upper layers obviously work so I'm sure it's something in my driver.
>
> I have turned on as much debugging in the kernel as I could find, but I
> get no messages. Could someone please let me know if
> there is additional debugging I should consider or if there is a dynamic
> way to turn on debugging in L2 and/or L3.
>
> Additionally, if anyone has any idea what might be happening, I would
> greatly appreciate any information.
>

You could start by publishing your complete source code. That would
make it a lot more likely that people can help you spot and fix
problems.

-- 
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Assistance debugging a Micrel network driver
  2007-06-29 15:39 Assistance debugging a Micrel network driver Greg Huber
  2007-06-29 16:02 ` Jesper Juhl
@ 2007-06-29 17:20 ` Andi Kleen
  1 sibling, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2007-06-29 17:20 UTC (permalink / raw)
  To: Greg Huber; +Cc: linux-kernel

Greg Huber <ghuber@vanteon.com> writes:
> 
> The upper layers obviously work so I'm sure it's something in my driver.

netstat -s output might give some clue. Most packet drop
points have a counter.

> 
> I have turned on as much debugging in the kernel as I could find, but
> I get no messages. Could someone please let me know if
> there is additional debugging I should consider or if there is a
> dynamic way to turn on debugging in L2 and/or L3.

The usual is to just add printks to the kernel source code until you
find where the packet is dropped.

Or perhaps check in __kfree_skb if the skb is coming from your
driver and force a backtrace with show_stack().

-Andi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-29 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-29 15:39 Assistance debugging a Micrel network driver Greg Huber
2007-06-29 16:02 ` Jesper Juhl
2007-06-29 17:20 ` Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.