Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux-backend-4.9.5
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
pacer
linux-backend-4.9.5
Commits
9652c275
Commit
9652c275
authored
8 years ago
by
Aastha Mehta
Browse files
Options
Downloads
Patches
Plain Diff
debug prints
parent
e8f5ef6b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
net/ipv4/ip_output.c
+12
-0
12 additions, 0 deletions
net/ipv4/ip_output.c
net/ipv4/tcp_output.c
+12
-0
12 additions, 0 deletions
net/ipv4/tcp_output.c
with
24 additions
and
0 deletions
net/ipv4/ip_output.c
+
12
−
0
View file @
9652c275
...
...
@@ -42,6 +42,11 @@
* Hirokazu Takahashi: sendfile() on UDP works now.
*/
#ifdef CONFIG_XEN_SME
#include
"../../drivers/net/xen-netback/sme/xen_sme_hooks.h"
#define DBG_BUF_SIZE 64
#endif
#include
<asm/uaccess.h>
#include
<linux/module.h>
#include
<linux/types.h>
...
...
@@ -551,6 +556,13 @@ int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
struct
rtable
*
rt
=
skb_rtable
(
skb
);
int
err
=
0
;
#ifdef CONFIG_XEN_SME
char
dbg_buff
[
DBG_BUF_SIZE
];
memset
(
dbg_buff
,
0
,
DBG_BUF_SIZE
);
sprintf
(
dbg_buff
,
"%s:%d"
,
__func__
,
__LINE__
);
xsl_print_sk_buff
(
skb
,
dbg_buff
);
#endif
/* for offloaded checksums cleanup checksum before fragmentation */
if
(
skb
->
ip_summed
==
CHECKSUM_PARTIAL
&&
(
err
=
skb_checksum_help
(
skb
)))
...
...
This diff is collapsed.
Click to expand it.
net/ipv4/tcp_output.c
+
12
−
0
View file @
9652c275
...
...
@@ -34,6 +34,11 @@
*
*/
#ifdef CONFIG_XEN_SME
#include
"../../drivers/net/xen-netback/sme/xen_sme_hooks.h"
#define DBG_BUF_SIZE 64
#endif
#define pr_fmt(fmt) "TCP: " fmt
#include
<net/tcp.h>
...
...
@@ -1747,6 +1752,13 @@ static int tso_fragment(struct sock *sk, struct sk_buff *skb, unsigned int len,
int
nlen
=
skb
->
len
-
len
;
u8
flags
;
#ifdef CONFIG_XEN_SME
char
dbg_buff
[
DBG_BUF_SIZE
];
memset
(
dbg_buff
,
0
,
DBG_BUF_SIZE
);
sprintf
(
dbg_buff
,
"%s:%d"
,
__func__
,
__LINE__
);
xsl_print_sk_buff
(
skb
,
dbg_buff
);
#endif
/* All of a TSO frame must be composed of paged data. */
if
(
skb
->
len
!=
skb
->
data_len
)
return
tcp_fragment
(
sk
,
skb
,
len
,
mss_now
,
gfp
);
...
...
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