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
3fbcf6bb
Commit
3fbcf6bb
authored
Jul 19, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'davem-next.r8169' of
git://git.kernel.org/pub/scm/linux/kernel/git/romieu/netdev-2.6
parents
928ad22a
1687b566
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
drivers/net/r8169.c
drivers/net/r8169.c
+3
-5
No files found.
drivers/net/r8169.c
View file @
3fbcf6bb
...
...
@@ -435,6 +435,7 @@ enum rtl_register_content {
AcceptMulticast
=
0x04
,
AcceptMyPhys
=
0x02
,
AcceptAllPhys
=
0x01
,
#define RX_CONFIG_ACCEPT_MASK 0x3f
/* TxConfigBits */
TxInterFrameGapShift
=
24
,
...
...
@@ -3943,11 +3944,8 @@ static int rtl8169_open(struct net_device *dev)
static
void
rtl_rx_close
(
struct
rtl8169_private
*
tp
)
{
void
__iomem
*
ioaddr
=
tp
->
mmio_addr
;
u32
rxcfg
=
RTL_R32
(
RxConfig
);
rxcfg
&=
~
(
AcceptErr
|
AcceptRunt
|
AcceptBroadcast
|
AcceptMulticast
|
AcceptMyPhys
|
AcceptAllPhys
);
RTL_W32
(
RxConfig
,
rxcfg
);
RTL_W32
(
RxConfig
,
RTL_R32
(
RxConfig
)
&
~
RX_CONFIG_ACCEPT_MASK
);
}
static
void
rtl8169_hw_reset
(
struct
rtl8169_private
*
tp
)
...
...
@@ -5586,7 +5584,7 @@ static void rtl_set_rx_mode(struct net_device *dev)
spin_lock_irqsave
(
&
tp
->
lock
,
flags
);
tmp
=
RTL_R32
(
RxConfig
)
|
rx_mode
;
tmp
=
(
RTL_R32
(
RxConfig
)
&
~
RX_CONFIG_ACCEPT_MASK
)
|
rx_mode
;
if
(
tp
->
mac_version
>
RTL_GIGA_MAC_VER_06
)
{
u32
data
=
mc_filter
[
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