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
88bccfb7
Commit
88bccfb7
authored
Jun 17, 2002
by
Rusty Russell
Committed by
Linus Torvalds
Jun 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Net updates / CPU hotplug infrastructure missed merge
Ironically enough, both were written by me. Fixed thus.
parent
1dbe77d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
net/ipv4/route.c
net/ipv4/route.c
+3
-1
No files found.
net/ipv4/route.c
View file @
88bccfb7
...
@@ -2419,7 +2419,7 @@ struct ip_rt_acct *ip_rt_acct;
...
@@ -2419,7 +2419,7 @@ struct ip_rt_acct *ip_rt_acct;
/* This code sucks. But you should have seen it before! --RR */
/* This code sucks. But you should have seen it before! --RR */
/* IP route accounting ptr for this logical cpu number. */
/* IP route accounting ptr for this logical cpu number. */
#define IP_RT_ACCT_CPU(i) (ip_rt_acct +
cpu_logical_map(i)
* 256)
#define IP_RT_ACCT_CPU(i) (ip_rt_acct +
i
* 256)
static
int
ip_rt_acct_read
(
char
*
buffer
,
char
**
start
,
off_t
offset
,
static
int
ip_rt_acct_read
(
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
*
eof
,
void
*
data
)
int
length
,
int
*
eof
,
void
*
data
)
...
@@ -2441,6 +2441,8 @@ static int ip_rt_acct_read(char *buffer, char **start, off_t offset,
...
@@ -2441,6 +2441,8 @@ static int ip_rt_acct_read(char *buffer, char **start, off_t offset,
/* Add the other cpus in, one int at a time */
/* Add the other cpus in, one int at a time */
for
(
i
=
1
;
i
<
NR_CPUS
;
i
++
)
{
for
(
i
=
1
;
i
<
NR_CPUS
;
i
++
)
{
unsigned
int
j
;
unsigned
int
j
;
if
(
!
cpu_online
(
i
))
continue
;
for
(
j
=
0
;
j
<
length
/
4
;
j
++
)
for
(
j
=
0
;
j
<
length
/
4
;
j
++
)
((
u32
*
)
buffer
)[
j
]
+=
((
u32
*
)
IP_RT_ACCT_CPU
(
i
))[
j
];
((
u32
*
)
buffer
)[
j
]
+=
((
u32
*
)
IP_RT_ACCT_CPU
(
i
))[
j
];
}
}
...
...
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