linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "K.Anantha Kiran" <ananth@cse.iitk.ac.in>
To: Anupam <anupamg@iitk.ac.in>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Can i use dev_queue_xmit()
Date: Mon, 12 Apr 2004 16:32:48 +0530 (IST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0404121616450.11451-100000@csews110.cse.iitk.ac.in> (raw)
In-Reply-To: <407A5773.1020603@iitk.ac.in>

Hi,

  Sorry, we did not put our question in correct way. 
  We came to know that whenever qdisc is full some flag is set and
it will be unset only when qdisc is completely empty once again.
  Because of this we are unable to enque packets in the qdisc even when 
some space is available. What i want is to enqueue packets as soon as 
qdisc has space for atleast one packet.
  Even if i am increasing the qdisc length, then also after some time
again the qdisc is getting full and packets are getting dropped.

 Note: I am using gigabit ethernet cards.

 Please help me in this matter.

Thanks in advance,
Regards,
Ananth.


On Mon, 12 Apr 2004, Anupam wrote:

> Date: Mon, 12 Apr 2004 14:16:43 +0530
> From: Anupam <anupamg@iitk.ac.in>
> To: K.Anantha Kiran <ananth@cse.iitk.ac.in>
> Subject: Re: Can i use dev_queue_xmit()
> 
> K.Anantha Kiran wrote:
> >  	The problem is that " is there any flag that tell the queue is 
> >  full and once it is full it will not take any pkts in and drops all 
> >  till the queue is empty". If so can u plz suggest a solution to this 
> >  problem.
> 
> 
> Hi Anantha,
> 
>  From above description of yours, I presume that you're trying something 
> that is called "Flush Queue", i.e., when a queue is overloaded, there is 
>   option to drop all packets in queue. This means that all the adaptive 
> flow should back-off. However it is quite inefficient since all the 
> backed-off flows will startup again.
> 
> Anyways, I didn't get the chance to dig up the code myself, but my guess 
> is that solution for you lies in: linux/net/sched/cls_api.c.
> 
> 
> >  thanks,
> >  Ananth.
> 
> 
> Please do let me know how things go.
> 
> Regards,
> 
> Anupam Gupta, Ph.D.
> mailto:anupamg@iitk.ac.in
> Deptt. of EE,
> Res. E1-315, Hall-4
> IIT Kanpur.
> 


       reply	other threads:[~2004-04-12 11:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <407A5773.1020603@iitk.ac.in>
2004-04-12 11:02 ` K.Anantha Kiran [this message]
2004-04-19 10:59   ` Can i use dev_queue_xmit() James Stevenson
     [not found] <Pine.LNX.4.44.0404121223250.5450-100000@csews104.cse.iitk.ac.in>
2004-04-12  7:24 ` K.Anantha Kiran

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0404121616450.11451-100000@csews110.cse.iitk.ac.in \
    --to=ananth@cse.iitk.ac.in \
    --cc=anupamg@iitk.ac.in \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).