Did you add "my packet listener" using dev_add_pack? If yes, did you register for IPv4 packets? In this case,when an IPv4 packet arrives on your network, "my packet listener" will be called. But why are you calling again netif_rx from "my packet listener"? You can simply call ip_rcv from "my packet listener". Also could you tell, what "my packet listener" does? Can you check, if your driver's hard_start_xmit function is called? Can you check, what is return value of dev_queue_xmit? Regards Mohanlal ----- Original Message ----- From: "vijaykumar v" <vij@it.iitb.ac.in> To: "vijaykumar v" <vij@it.iitb.ac.in> Cc: <kernelnewbies@nl.linux.org> Sent: Sunday, May 23, 2004 9:17 AM Subject: Re: Problem with packet transmission > Hi all, > I think the explaination I gave in the previous mail wasnt > enough. So, I have made a figure to illustrate the situation clearly. > Please take a look at it and give a suggestion. > > This module is very critical for my project. I'm desparately in need of > a solution, as I have already wasted lot of time on fixing this bug. If > you get a clue, Pls help. > > -Vij > > vijaykumar v wrote: > > > Hi, > > I have a problem with packet transmission. I have a virtual network > > device driver, which drives on back of eth0. The driver, (along with a > > small packet listener) recieves and sends packets without any problem, > > asynchronously. > > > > The problem creeps in, when a reply packet is generated. ie., when a > > packet has to be sent immediately after the arrival of another packet. > > The reply packet doesnt get transmitted. > > > > This, I suppose is not a problem with my driver, as this packet is > > queued for transmission for eth0 using "dev_queue_xmit(skb);" , with > > skb->dev set as eth0 device. ethereal shows that the packet in the > > eth0 device queue. But, the packet doesnt appear on the wire. > > > > This might be a problem with some spinlock,... in the driver. > > > > Can I call dev_queue_xmit at any time?. (I think timing is the problem.) > > > > any reply would be useful. > > > > Thanks in advance, > > Vij > > -- > "Anything less than a conscious commitment to the important > is an unconscious commitment to the unimportant." > > ---------------------------------------------------------------------------- ---- -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/