Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
a866a5f4
Commit
a866a5f4
authored
Aug 05, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
parents
107207aa
b7656e7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
net/ipv4/fib_semantics.c
net/ipv4/fib_semantics.c
+8
-1
No files found.
net/ipv4/fib_semantics.c
View file @
a866a5f4
...
...
@@ -593,10 +593,13 @@ static void fib_hash_move(struct hlist_head *new_info_hash,
struct
hlist_head
*
new_laddrhash
,
unsigned
int
new_size
)
{
struct
hlist_head
*
old_info_hash
,
*
old_laddrhash
;
unsigned
int
old_size
=
fib_hash_size
;
unsigned
int
i
;
unsigned
int
i
,
bytes
;
write_lock
(
&
fib_info_lock
);
old_info_hash
=
fib_info_hash
;
old_laddrhash
=
fib_info_laddrhash
;
fib_hash_size
=
new_size
;
for
(
i
=
0
;
i
<
old_size
;
i
++
)
{
...
...
@@ -636,6 +639,10 @@ static void fib_hash_move(struct hlist_head *new_info_hash,
fib_info_laddrhash
=
new_laddrhash
;
write_unlock
(
&
fib_info_lock
);
bytes
=
old_size
*
sizeof
(
struct
hlist_head
*
);
fib_hash_free
(
old_info_hash
,
bytes
);
fib_hash_free
(
old_laddrhash
,
bytes
);
}
struct
fib_info
*
...
...
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