Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
68024541
Commit
68024541
authored
Dec 02, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://master.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
parents
ca17584b
39da5814
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
drivers/net/virtio_net.c
drivers/net/virtio_net.c
+12
-0
No files found.
drivers/net/virtio_net.c
View file @
68024541
...
@@ -613,6 +613,17 @@ static struct ethtool_ops virtnet_ethtool_ops = {
...
@@ -613,6 +613,17 @@ static struct ethtool_ops virtnet_ethtool_ops = {
.
set_tso
=
ethtool_op_set_tso
,
.
set_tso
=
ethtool_op_set_tso
,
};
};
#define MIN_MTU 68
#define MAX_MTU 65535
static
int
virtnet_change_mtu
(
struct
net_device
*
dev
,
int
new_mtu
)
{
if
(
new_mtu
<
MIN_MTU
||
new_mtu
>
MAX_MTU
)
return
-
EINVAL
;
dev
->
mtu
=
new_mtu
;
return
0
;
}
static
int
virtnet_probe
(
struct
virtio_device
*
vdev
)
static
int
virtnet_probe
(
struct
virtio_device
*
vdev
)
{
{
int
err
;
int
err
;
...
@@ -628,6 +639,7 @@ static int virtnet_probe(struct virtio_device *vdev)
...
@@ -628,6 +639,7 @@ static int virtnet_probe(struct virtio_device *vdev)
dev
->
open
=
virtnet_open
;
dev
->
open
=
virtnet_open
;
dev
->
stop
=
virtnet_close
;
dev
->
stop
=
virtnet_close
;
dev
->
hard_start_xmit
=
start_xmit
;
dev
->
hard_start_xmit
=
start_xmit
;
dev
->
change_mtu
=
virtnet_change_mtu
;
dev
->
features
=
NETIF_F_HIGHDMA
;
dev
->
features
=
NETIF_F_HIGHDMA
;
#ifdef CONFIG_NET_POLL_CONTROLLER
#ifdef CONFIG_NET_POLL_CONTROLLER
dev
->
poll_controller
=
virtnet_netpoll
;
dev
->
poll_controller
=
virtnet_netpoll
;
...
...
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