LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Detecting congestion in ethernet device before transmission (https://www.linuxquestions.org/questions/programming-9/detecting-congestion-in-ethernet-device-before-transmission-330958/)

imransadat 06-06-2005 03:13 PM

Detecting congestion in ethernet device before transmission
 
Hi
I've written my own protocol in Linux. I send the packets using dev_queue_xmit. Although it gives me a return value of 0 on every send but I find that all the packets are not being transmitted successfully. Its like 200 packets sent then 10-50 dropped which goes on repeatedly. I would like to know whether there is any way of knowing the length of the backlog queue before calling dev_queue_xmit so that the packets I give for transmission will be transmitted.

Thanks in advance.

Imran.


All times are GMT -5. The time now is 06:20 AM.