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
60b22456
Commit
60b22456
authored
Aug 04, 2002
by
Matthew Wilcox
Committed by
Jeff Garzik
Aug 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inappropriate use of set_bit in dl2k gige net driver
parent
daaeddc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/net/dl2k.c
drivers/net/dl2k.c
+5
-5
No files found.
drivers/net/dl2k.c
View file @
60b22456
...
@@ -1108,7 +1108,6 @@ set_multicast (struct net_device *dev)
...
@@ -1108,7 +1108,6 @@ set_multicast (struct net_device *dev)
u16
rx_mode
=
0
;
u16
rx_mode
=
0
;
int
i
;
int
i
;
int
bit
;
int
bit
;
int
index
,
crc
;
struct
dev_mc_list
*
mclist
;
struct
dev_mc_list
*
mclist
;
struct
netdev_private
*
np
=
dev
->
priv
;
struct
netdev_private
*
np
=
dev
->
priv
;
...
@@ -1130,13 +1129,14 @@ set_multicast (struct net_device *dev)
...
@@ -1130,13 +1129,14 @@ set_multicast (struct net_device *dev)
for
(
i
=
0
,
mclist
=
dev
->
mc_list
;
mclist
&&
i
<
dev
->
mc_count
;
for
(
i
=
0
,
mclist
=
dev
->
mc_list
;
mclist
&&
i
<
dev
->
mc_count
;
i
++
,
mclist
=
mclist
->
next
)
{
i
++
,
mclist
=
mclist
->
next
)
{
crc
=
ether_crc_le
(
ETH_ALEN
,
mclist
->
dmi_addr
);
int
index
=
0
;
int
crc
=
ether_crc_le
(
ETH_ALEN
,
mclist
->
dmi_addr
);
/* The inverted high significant 6 bits of CRC are
/* The inverted high significant 6 bits of CRC are
used as an index to hashtable */
used as an index to hashtable */
for
(
index
=
0
,
bit
=
0
;
bit
<
6
;
bit
++
)
for
(
bit
=
0
;
bit
<
6
;
bit
++
)
if
(
test_bit
(
31
-
bit
,
&
crc
))
if
(
crc
&
(
1
<<
(
31
-
bit
)
))
set_bit
(
bit
,
&
index
);
index
|=
(
1
<<
bit
);
hash_table
[
index
/
32
]
|=
(
1
<<
(
index
%
32
));
hash_table
[
index
/
32
]
|=
(
1
<<
(
index
%
32
));
}
}
...
...
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