Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
3d7dbeac
Commit
3d7dbeac
authored
17 years ago
by
David S. Miller
Browse files
Options
Downloads
Patches
Plain Diff
[TCP]: Disable TSO if MD5SIG is enabled.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
606f585e
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
net/ipv4/tcp_ipv4.c
+2
-1
2 additions, 1 deletion
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c
+2
-0
2 additions, 0 deletions
net/ipv6/tcp_ipv6.c
with
4 additions
and
1 deletion
net/ipv4/tcp_ipv4.c
+
2
−
1
View file @
3d7dbeac
...
...
@@ -878,6 +878,7 @@ int tcp_v4_md5_do_add(struct sock *sk, __be32 addr,
kfree
(
newkey
);
return
-
ENOMEM
;
}
sk
->
sk_route_caps
&=
~
NETIF_F_GSO_MASK
;
}
if
(
tcp_alloc_md5sig_pool
()
==
NULL
)
{
kfree
(
newkey
);
...
...
@@ -1007,7 +1008,7 @@ static int tcp_v4_parse_md5_keys(struct sock *sk, char __user *optval,
return
-
EINVAL
;
tp
->
md5sig_info
=
p
;
sk
->
sk_route_caps
&=
~
NETIF_F_GSO_MASK
;
}
newkey
=
kmemdup
(
cmd
.
tcpm_key
,
cmd
.
tcpm_keylen
,
GFP_KERNEL
);
...
...
This diff is collapsed.
Click to expand it.
net/ipv6/tcp_ipv6.c
+
2
−
0
View file @
3d7dbeac
...
...
@@ -590,6 +590,7 @@ static int tcp_v6_md5_do_add(struct sock *sk, struct in6_addr *peer,
kfree
(
newkey
);
return
-
ENOMEM
;
}
sk
->
sk_route_caps
&=
~
NETIF_F_GSO_MASK
;
}
tcp_alloc_md5sig_pool
();
if
(
tp
->
md5sig_info
->
alloced6
==
tp
->
md5sig_info
->
entries6
)
{
...
...
@@ -724,6 +725,7 @@ static int tcp_v6_parse_md5_keys (struct sock *sk, char __user *optval,
return
-
ENOMEM
;
tp
->
md5sig_info
=
p
;
sk
->
sk_route_caps
&=
~
NETIF_F_GSO_MASK
;
}
newkey
=
kmemdup
(
cmd
.
tcpm_key
,
cmd
.
tcpm_keylen
,
GFP_KERNEL
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment