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
Kirill Smelkov
linux
Commits
7c4f750a
Commit
7c4f750a
authored
Nov 18, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
into hera.kernel.org:/home/davem/BK/net-2.5
parents
fbbef764
7ae8708f
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
16 additions
and
12 deletions
+16
-12
net/ipv4/route.c
net/ipv4/route.c
+2
-3
net/ipv6/mcast.c
net/ipv6/mcast.c
+2
-2
net/sched/sch_cbq.c
net/sched/sch_cbq.c
+1
-0
net/sched/sch_dsmark.c
net/sched/sch_dsmark.c
+1
-0
net/sched/sch_fifo.c
net/sched/sch_fifo.c
+2
-2
net/sched/sch_generic.c
net/sched/sch_generic.c
+1
-1
net/sched/sch_gred.c
net/sched/sch_gred.c
+2
-2
net/sched/sch_prio.c
net/sched/sch_prio.c
+1
-0
net/sched/sch_red.c
net/sched/sch_red.c
+1
-1
net/sched/sch_tbf.c
net/sched/sch_tbf.c
+3
-1
No files found.
net/ipv4/route.c
View file @
7c4f750a
...
...
@@ -1399,9 +1399,6 @@ static void rt_set_nexthop(struct rtable *rt, struct fib_result *res, u32 itag)
rt
->
rt_gateway
=
FIB_RES_GW
(
*
res
);
memcpy
(
rt
->
u
.
dst
.
metrics
,
fi
->
fib_metrics
,
sizeof
(
rt
->
u
.
dst
.
metrics
));
if
(
rt
->
u
.
dst
.
metrics
[
RTAX_HOPLIMIT
-
1
]
==
0
)
rt
->
u
.
dst
.
metrics
[
RTAX_HOPLIMIT
-
1
]
=
sysctl_ip_default_ttl
;
if
(
fi
->
fib_mtu
==
0
)
{
rt
->
u
.
dst
.
metrics
[
RTAX_MTU
-
1
]
=
rt
->
u
.
dst
.
dev
->
mtu
;
if
(
rt
->
u
.
dst
.
metrics
[
RTAX_LOCK
-
1
]
&
(
1
<<
RTAX_MTU
)
&&
...
...
@@ -1415,6 +1412,8 @@ static void rt_set_nexthop(struct rtable *rt, struct fib_result *res, u32 itag)
}
else
rt
->
u
.
dst
.
metrics
[
RTAX_MTU
-
1
]
=
rt
->
u
.
dst
.
dev
->
mtu
;
if
(
rt
->
u
.
dst
.
metrics
[
RTAX_HOPLIMIT
-
1
]
==
0
)
rt
->
u
.
dst
.
metrics
[
RTAX_HOPLIMIT
-
1
]
=
sysctl_ip_default_ttl
;
if
(
rt
->
u
.
dst
.
metrics
[
RTAX_MTU
-
1
]
>
IP_MAX_MTU
)
rt
->
u
.
dst
.
metrics
[
RTAX_MTU
-
1
]
=
IP_MAX_MTU
;
if
(
rt
->
u
.
dst
.
metrics
[
RTAX_ADVMSS
-
1
]
==
0
)
...
...
net/ipv6/mcast.c
View file @
7c4f750a
...
...
@@ -1040,7 +1040,7 @@ int igmp6_event_query(struct sk_buff *skb)
/* MLDv1 router present */
/* Translate milliseconds to jiffies */
max_delay
=
ntohs
(
hdr
->
icmp6_maxdelay
)
*
(
HZ
/
10
)
;
max_delay
=
(
ntohs
(
hdr
->
icmp6_maxdelay
)
*
HZ
)
/
1000
;
switchback
=
(
idev
->
mc_qrv
+
1
)
*
max_delay
;
idev
->
mc_v1_seen
=
jiffies
+
switchback
;
...
...
@@ -1052,7 +1052,7 @@ int igmp6_event_query(struct sk_buff *skb)
/* clear deleted report items */
mld_clear_delrec
(
idev
);
}
else
if
(
len
>=
28
)
{
max_delay
=
MLDV2_MRC
(
ntohs
(
mlh2
->
mrc
))
*
(
HZ
/
10
)
;
max_delay
=
(
MLDV2_MRC
(
ntohs
(
mlh2
->
mrc
))
*
HZ
)
/
1000
;
if
(
!
max_delay
)
max_delay
=
1
;
idev
->
mc_maxdelay
=
max_delay
;
...
...
net/sched/sch_cbq.c
View file @
7c4f750a
...
...
@@ -1670,6 +1670,7 @@ static int cbq_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new,
sch_tree_lock
(
sch
);
*
old
=
cl
->
q
;
cl
->
q
=
new
;
sch
->
q
.
qlen
-=
(
*
old
)
->
q
.
qlen
;
qdisc_reset
(
*
old
);
sch_tree_unlock
(
sch
);
...
...
net/sched/sch_dsmark.c
View file @
7c4f750a
...
...
@@ -77,6 +77,7 @@ static int dsmark_graft(struct Qdisc *sch,unsigned long arg,
*
old
=
xchg
(
&
p
->
q
,
new
);
if
(
*
old
)
qdisc_reset
(
*
old
);
sch
->
q
.
qlen
=
0
;
sch_tree_unlock
(
sch
);
/* @@@ move up ? */
return
0
;
}
...
...
net/sched/sch_fifo.c
View file @
7c4f750a
...
...
@@ -47,7 +47,7 @@ bfifo_enqueue(struct sk_buff *skb, struct Qdisc* sch)
{
struct
fifo_sched_data
*
q
=
(
struct
fifo_sched_data
*
)
sch
->
data
;
if
(
sch
->
stats
.
backlog
<=
q
->
limit
)
{
if
(
sch
->
stats
.
backlog
+
skb
->
len
<=
q
->
limit
)
{
__skb_queue_tail
(
&
sch
->
q
,
skb
);
sch
->
stats
.
backlog
+=
skb
->
len
;
sch
->
stats
.
bytes
+=
skb
->
len
;
...
...
@@ -108,7 +108,7 @@ pfifo_enqueue(struct sk_buff *skb, struct Qdisc* sch)
{
struct
fifo_sched_data
*
q
=
(
struct
fifo_sched_data
*
)
sch
->
data
;
if
(
sch
->
q
.
qlen
<
=
q
->
limit
)
{
if
(
sch
->
q
.
qlen
<
q
->
limit
)
{
__skb_queue_tail
(
&
sch
->
q
,
skb
);
sch
->
stats
.
bytes
+=
skb
->
len
;
sch
->
stats
.
packets
++
;
...
...
net/sched/sch_generic.c
View file @
7c4f750a
...
...
@@ -275,7 +275,7 @@ pfifo_fast_enqueue(struct sk_buff *skb, struct Qdisc* qdisc)
list
=
((
struct
sk_buff_head
*
)
qdisc
->
data
)
+
prio2band
[
skb
->
priority
&
TC_PRIO_MAX
];
if
(
list
->
qlen
<
=
qdisc
->
dev
->
tx_queue_len
)
{
if
(
list
->
qlen
<
qdisc
->
dev
->
tx_queue_len
)
{
__skb_queue_tail
(
list
,
skb
);
qdisc
->
q
.
qlen
++
;
qdisc
->
stats
.
bytes
+=
skb
->
len
;
...
...
net/sched/sch_gred.c
View file @
7c4f750a
...
...
@@ -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
)
{
D2PRINTK
(
"NO GRED Queues setup yet! Enqueued anyway
\n
"
);
goto
do_enqueue
;
}
...
...
@@ -175,7 +175,7 @@ gred_enqueue(struct sk_buff *skb, struct Qdisc* sch)
if
((
q
->
qave
+
qave
)
<
q
->
qth_min
)
{
q
->
qcount
=
-
1
;
enqueue:
if
(
q
->
backlog
<=
q
->
limit
)
{
if
(
q
->
backlog
+
skb
->
len
<=
q
->
limit
)
{
q
->
backlog
+=
skb
->
len
;
do_enqueue:
__skb_queue_tail
(
&
sch
->
q
,
skb
);
...
...
net/sched/sch_prio.c
View file @
7c4f750a
...
...
@@ -266,6 +266,7 @@ static int prio_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new,
sch_tree_lock
(
sch
);
*
old
=
q
->
queues
[
band
];
q
->
queues
[
band
]
=
new
;
sch
->
q
.
qlen
-=
(
*
old
)
->
q
.
qlen
;
qdisc_reset
(
*
old
);
sch_tree_unlock
(
sch
);
...
...
net/sched/sch_red.c
View file @
7c4f750a
...
...
@@ -257,7 +257,7 @@ red_enqueue(struct sk_buff *skb, struct Qdisc* sch)
if
(
q
->
qave
<
q
->
qth_min
)
{
q
->
qcount
=
-
1
;
enqueue:
if
(
sch
->
stats
.
backlog
<=
q
->
limit
)
{
if
(
sch
->
stats
.
backlog
+
skb
->
len
<=
q
->
limit
)
{
__skb_queue_tail
(
&
sch
->
q
,
skb
);
sch
->
stats
.
backlog
+=
skb
->
len
;
sch
->
stats
.
bytes
+=
skb
->
len
;
...
...
net/sched/sch_tbf.c
View file @
7c4f750a
...
...
@@ -268,7 +268,7 @@ static void tbf_reset(struct Qdisc* sch)
struct
tbf_sched_data
*
q
=
(
struct
tbf_sched_data
*
)
sch
->
data
;
qdisc_reset
(
q
->
qdisc
);
s
kb_queue_purge
(
&
sch
->
q
)
;
s
ch
->
q
.
qlen
=
0
;
sch
->
stats
.
backlog
=
0
;
PSCHED_GET_TIME
(
q
->
t_c
);
q
->
tokens
=
q
->
buffer
;
...
...
@@ -455,6 +455,8 @@ static int tbf_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new,
sch_tree_lock
(
sch
);
*
old
=
xchg
(
&
q
->
qdisc
,
new
);
qdisc_reset
(
*
old
);
sch
->
q
.
qlen
=
0
;
sch
->
stats
.
backlog
=
0
;
sch_tree_unlock
(
sch
);
return
0
;
...
...
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