I am having a problem using skb_queue_len in a net device driver module I am programming. The target system is Linux 2.2.19 I need to know how many packet are queued for this device. here is the (broken) code I am using. the kernel will panic with this code when a packet is sent to the driver. ------------- */ being called from dev_queue_xmit() */ static int tunnel_xmit(struct sk_buff *skb, struct device *dev) { /* <snip> *'/ printk("TUNNEL xmit qlen=%d\n", skb_queue_len(skb->list)); /* <snip> */ return 0; } Where am I going wrong? what is a correct/good/best method for determining the queue length for a device given skb or dev ? Your help is appreciated. Please CC: - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html