Skip to contentSkip to conversation

Can i use dev_queue_xmit()

DISCUSSION K.Anantha Kiran 2 participants 2 messages Apr 12, 2004 – Apr 19, 2004 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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.

Quoted 38 lines · Anupam

Date: Mon, 12 Apr 2004 14:16:43 +0530
From: Anupam <[email protected]>
To: K.Anantha Kiran <[email protected]>
Subject: Re: Can i use dev_queue_xmit()

Quoted 4 lines · K.Anantha Kiran

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.

Quoted 2 lines

thanks,
Ananth.

Please do let me know how things go.

Regards,

Anupam Gupta, Ph.D.
mailto:[email protected]
Deptt. of EE,
Res. E1-315, Hall-4
IIT Kanpur.

#2 lore raw

Thats 2 off topic posts i count on this.

linux-c-programming is userspace releated you might want to try the linux-kernel list or the kernelnewbies list

James

Quoted 66 lines · K.Anantha Kiran

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.

Quoted 30 lines · Anupam

Date: Mon, 12 Apr 2004 14:16:43 +0530
From: Anupam <[email protected]>
To: K.Anantha Kiran <[email protected]>
Subject: Re: Can i use dev_queue_xmit()

Quoted 4 lines · K.Anantha Kiran

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.

Quoted 2 lines

thanks,
Ananth.

Please do let me know how things go.

Quoted 8 lines

Regards,

Anupam Gupta, Ph.D.
mailto:[email protected]
Deptt. of EE,
Res. E1-315, Hall-4
IIT Kanpur.

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html