Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f7c908de
Commit
f7c908de
authored
Feb 17, 2004
by
Patrick McHardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PKTSCHED]: Use queue limit of 1 when tx_queue_len is zero.
parent
fff336d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
net/sched/sch_fifo.c
net/sched/sch_fifo.c
+4
-2
net/sched/sch_gred.c
net/sched/sch_gred.c
+1
-1
No files found.
net/sched/sch_fifo.c
View file @
f7c908de
...
...
@@ -141,10 +141,12 @@ static int fifo_init(struct Qdisc *sch, struct rtattr *opt)
struct
fifo_sched_data
*
q
=
(
void
*
)
sch
->
data
;
if
(
opt
==
NULL
)
{
unsigned
int
limit
=
sch
->
dev
->
tx_queue_len
?
:
1
;
if
(
sch
->
ops
==
&
bfifo_qdisc_ops
)
q
->
limit
=
sch
->
dev
->
tx_queue_len
*
sch
->
dev
->
mtu
;
q
->
limit
=
limit
*
sch
->
dev
->
mtu
;
else
q
->
limit
=
sch
->
dev
->
tx_queue_len
;
q
->
limit
=
limit
;
}
else
{
struct
tc_fifo_qopt
*
ctl
=
RTA_DATA
(
opt
);
if
(
opt
->
rta_len
<
RTA_LENGTH
(
sizeof
(
*
ctl
)))
...
...
net/sched/sch_gred.c
View file @
f7c908de
...
...
@@ -110,7 +110,7 @@ gred_enqueue(struct sk_buff *skb, struct Qdisc* sch)
unsigned
long
qave
=
0
;
int
i
=
0
;
if
(
!
t
->
initd
&&
skb_queue_len
(
&
sch
->
q
)
<
sch
->
dev
->
tx_queue_len
)
{
if
(
!
t
->
initd
&&
skb_queue_len
(
&
sch
->
q
)
<
(
sch
->
dev
->
tx_queue_len
?
:
1
)
)
{
D2PRINTK
(
"NO GRED Queues setup yet! Enqueued anyway
\n
"
);
goto
do_enqueue
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment