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
6bdf0a41
Commit
6bdf0a41
authored
Aug 02, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IPv4: Fix MSG_DONTWAIT behavior on output fragmentation.
parent
5d364058
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
net/ipv4/ip_output.c
net/ipv4/ip_output.c
+12
-2
No files found.
net/ipv4/ip_output.c
View file @
6bdf0a41
...
...
@@ -523,8 +523,18 @@ static int ip_build_xmit_slow(struct sock *sk,
/*
* Get the memory we require with some space left for alignment.
*/
skb
=
sock_alloc_send_skb
(
sk
,
fraglen
+
hh_len
+
15
,
flags
&
MSG_DONTWAIT
,
&
err
);
if
(
!
(
flags
&
MSG_DONTWAIT
)
||
nfrags
==
0
)
{
skb
=
sock_alloc_send_skb
(
sk
,
fraglen
+
hh_len
+
15
,
(
flags
&
MSG_DONTWAIT
),
&
err
);
}
else
{
/* On a non-blocking write, we check for send buffer
* usage on the first fragment only.
*/
skb
=
sock_wmalloc
(
sk
,
fraglen
+
hh_len
+
15
,
1
,
sk
->
allocation
);
if
(
!
skb
)
err
=
-
ENOBUFS
;
}
if
(
skb
==
NULL
)
goto
error
;
...
...
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