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
941c84e0
Commit
941c84e0
authored
Jan 03, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr e1000] restore VLAN settings after resume
Contributed by Scott Feldman @ Intel.
parent
218d8c4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+17
-0
No files found.
drivers/net/e1000/e1000_main.c
View file @
941c84e0
...
@@ -175,6 +175,7 @@ static void e1000_tx_timeout_task(struct net_device *dev);
...
@@ -175,6 +175,7 @@ static void e1000_tx_timeout_task(struct net_device *dev);
static
void
e1000_vlan_rx_register
(
struct
net_device
*
netdev
,
struct
vlan_group
*
grp
);
static
void
e1000_vlan_rx_register
(
struct
net_device
*
netdev
,
struct
vlan_group
*
grp
);
static
void
e1000_vlan_rx_add_vid
(
struct
net_device
*
netdev
,
uint16_t
vid
);
static
void
e1000_vlan_rx_add_vid
(
struct
net_device
*
netdev
,
uint16_t
vid
);
static
void
e1000_vlan_rx_kill_vid
(
struct
net_device
*
netdev
,
uint16_t
vid
);
static
void
e1000_vlan_rx_kill_vid
(
struct
net_device
*
netdev
,
uint16_t
vid
);
static
void
e1000_restore_vlan
(
struct
e1000_adapter
*
adapter
);
static
int
e1000_notify_reboot
(
struct
notifier_block
*
,
unsigned
long
event
,
void
*
ptr
);
static
int
e1000_notify_reboot
(
struct
notifier_block
*
,
unsigned
long
event
,
void
*
ptr
);
static
int
e1000_notify_netdev
(
struct
notifier_block
*
,
unsigned
long
event
,
void
*
ptr
);
static
int
e1000_notify_netdev
(
struct
notifier_block
*
,
unsigned
long
event
,
void
*
ptr
);
...
@@ -274,6 +275,7 @@ e1000_up(struct e1000_adapter *adapter)
...
@@ -274,6 +275,7 @@ e1000_up(struct e1000_adapter *adapter)
/* hardware has been reset, we need to reload some things */
/* hardware has been reset, we need to reload some things */
e1000_set_multi
(
netdev
);
e1000_set_multi
(
netdev
);
e1000_restore_vlan
(
adapter
);
e1000_configure_tx
(
adapter
);
e1000_configure_tx
(
adapter
);
e1000_setup_rctl
(
adapter
);
e1000_setup_rctl
(
adapter
);
...
@@ -2394,6 +2396,21 @@ e1000_vlan_rx_kill_vid(struct net_device *netdev, uint16_t vid)
...
@@ -2394,6 +2396,21 @@ e1000_vlan_rx_kill_vid(struct net_device *netdev, uint16_t vid)
e1000_write_vfta
(
&
adapter
->
hw
,
index
,
vfta
);
e1000_write_vfta
(
&
adapter
->
hw
,
index
,
vfta
);
}
}
static
void
e1000_restore_vlan
(
struct
e1000_adapter
*
adapter
)
{
e1000_vlan_rx_register
(
adapter
->
netdev
,
adapter
->
vlgrp
);
if
(
adapter
->
vlgrp
)
{
uint16_t
vid
;
for
(
vid
=
0
;
vid
<
VLAN_GROUP_ARRAY_LEN
;
vid
++
)
{
if
(
!
adapter
->
vlgrp
->
vlan_devices
[
vid
])
continue
;
e1000_vlan_rx_add_vid
(
adapter
->
netdev
,
vid
);
}
}
}
static
int
static
int
e1000_notify_reboot
(
struct
notifier_block
*
nb
,
unsigned
long
event
,
void
*
p
)
e1000_notify_reboot
(
struct
notifier_block
*
nb
,
unsigned
long
event
,
void
*
p
)
{
{
...
...
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