Re: Assistance debugging a Micrel network driver
From: Andi Kleen
Date: Fri Jun 29 2007 - 12:24:48 EST
Greg Huber <ghuber@xxxxxxxxxxx> 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().
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/