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
61545e6e
Commit
61545e6e
authored
Feb 11, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Do not forget to initialize tx_queue_len in tunneling drivers.
parent
5b5f13cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
net/ipv4/ip_gre.c
net/ipv4/ip_gre.c
+2
-0
net/ipv4/ipip.c
net/ipv4/ipip.c
+2
-0
net/ipv6/sit.c
net/ipv6/sit.c
+2
-0
No files found.
net/ipv4/ip_gre.c
View file @
61545e6e
...
...
@@ -276,6 +276,7 @@ static struct ip_tunnel * ipgre_tunnel_locate(struct ip_tunnel_parm *parms, int
return
NULL
;
dev
->
init
=
ipgre_tunnel_init
;
dev
->
tx_queue_len
=
1
;
nt
=
dev
->
priv
;
nt
->
parms
=
*
parms
;
...
...
@@ -1269,6 +1270,7 @@ int __init ipgre_init(void)
}
ipgre_fb_tunnel_dev
->
init
=
ipgre_fb_tunnel_init
;
ipgre_fb_tunnel_dev
->
tx_queue_len
=
1
;
if
((
err
=
register_netdev
(
ipgre_fb_tunnel_dev
)))
goto
fail
;
...
...
net/ipv4/ipip.c
View file @
61545e6e
...
...
@@ -246,6 +246,7 @@ static struct ip_tunnel * ipip_tunnel_locate(struct ip_tunnel_parm *parms, int c
nt
=
dev
->
priv
;
SET_MODULE_OWNER
(
dev
);
dev
->
init
=
ipip_tunnel_init
;
dev
->
tx_queue_len
=
1
;
dev
->
destructor
=
free_netdev
;
nt
->
parms
=
*
parms
;
...
...
@@ -892,6 +893,7 @@ int __init ipip_init(void)
}
ipip_fb_tunnel_dev
->
init
=
ipip_fb_tunnel_init
;
ipip_fb_tunnel_dev
->
tx_queue_len
=
1
;
if
((
err
=
register_netdev
(
ipip_fb_tunnel_dev
)))
goto
fail
;
...
...
net/ipv6/sit.c
View file @
61545e6e
...
...
@@ -184,6 +184,7 @@ static struct ip_tunnel * ipip6_tunnel_locate(struct ip_tunnel_parm *parms, int
nt
=
dev
->
priv
;
dev
->
init
=
ipip6_tunnel_init
;
dev
->
tx_queue_len
=
1
;
nt
->
parms
=
*
parms
;
if
(
register_netdevice
(
dev
)
<
0
)
{
...
...
@@ -832,6 +833,7 @@ int __init sit_init(void)
}
ipip6_fb_tunnel_dev
->
init
=
ipip6_fb_tunnel_init
;
ipip6_fb_tunnel_dev
->
tx_queue_len
=
1
;
if
((
err
=
register_netdev
(
ipip6_fb_tunnel_dev
)))
goto
fail
;
...
...
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