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
259af48e
Commit
259af48e
authored
7 years ago
by
Aastha Mehta
Browse files
Options
Downloads
Patches
Plain Diff
prints leading to udp functions
parent
d771bcfa
No related branches found
Branches containing commit
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_input.c
+21
-0
21 additions, 0 deletions
net/ipv4/ip_input.c
net/ipv4/udp.c
+24
-0
24 additions, 0 deletions
net/ipv4/udp.c
with
45 additions
and
0 deletions
net/ipv4/ip_input.c
+
21
−
0
View file @
259af48e
...
...
@@ -219,6 +219,13 @@ static int ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_b
resubmit:
raw
=
raw_local_deliver
(
skb
,
protocol
);
#ifdef CONFIG_XEN_SME
memset
(
dbg_buff
,
0
,
DBG_BUF_SIZE
);
sprintf
(
dbg_buff
,
"%s:%d caller: %pS, raw: %d"
,
__func__
,
__LINE__
,
__builtin_return_address
(
0
),
raw
);
xsl_print_sk_buff
(
skb
,
dbg_buff
);
#endif
ipprot
=
rcu_dereference
(
inet_protos
[
protocol
]);
if
(
ipprot
)
{
int
ret
;
...
...
@@ -230,7 +237,21 @@ static int ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_b
}
nf_reset
(
skb
);
}
#ifdef CONFIG_XEN_SME
memset
(
dbg_buff
,
0
,
DBG_BUF_SIZE
);
sprintf
(
dbg_buff
,
"%s:%d caller: %pS"
,
__func__
,
__LINE__
,
__builtin_return_address
(
0
));
xsl_print_sk_buff
(
skb
,
dbg_buff
);
#endif
ret
=
ipprot
->
handler
(
skb
);
#ifdef CONFIG_XEN_SME
memset
(
dbg_buff
,
0
,
DBG_BUF_SIZE
);
sprintf
(
dbg_buff
,
"%s:%d caller: %pS"
,
__func__
,
__LINE__
,
__builtin_return_address
(
0
));
xsl_print_sk_buff
(
skb
,
dbg_buff
);
#endif
if
(
ret
<
0
)
{
protocol
=
-
ret
;
goto
resubmit
;
...
...
This diff is collapsed.
Click to expand it.
net/ipv4/udp.c
+
24
−
0
View file @
259af48e
...
...
@@ -79,6 +79,10 @@
#define pr_fmt(fmt) "UDP: " fmt
#ifdef CONFIG_XEN_SME
#include
"../../drivers/net/ethernet/broadcom/bnx2x/sme/xen_sme_hooks.h"
#define DBG_BUF_SIZE 256
#endif
#include
<asm/uaccess.h>
#include
<asm/ioctls.h>
#include
<linux/bootmem.h>
...
...
@@ -1505,6 +1509,13 @@ int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
int
rc
;
int
is_udplite
=
IS_UDPLITE
(
sk
);
#ifdef CONFIG_XEN_SME
char
dbg_buff
[
DBG_BUF_SIZE
];
memset
(
dbg_buff
,
0
,
DBG_BUF_SIZE
);
sprintf
(
dbg_buff
,
"%s:%d caller: %pS"
,
__func__
,
__LINE__
,
__builtin_return_address
(
0
));
xsl_print_sk_buff
(
skb
,
dbg_buff
);
#endif
/*
* Charge it to the socket, dropping if the queue is full.
*/
...
...
@@ -1597,6 +1608,12 @@ int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
rc
=
0
;
#ifdef CONFIG_XEN_SME
memset
(
dbg_buff
,
0
,
DBG_BUF_SIZE
);
sprintf
(
dbg_buff
,
"%s:%d caller: %pS, sock owned: %d"
,
__func__
,
__LINE__
,
__builtin_return_address
(
0
),
(
sk
?
sk
->
sk_lock
.
owned
:
-
2
));
xsl_print_sk_buff
(
skb
,
dbg_buff
);
#endif
ipv4_pktinfo_prepare
(
sk
,
skb
);
bh_lock_sock
(
sk
);
if
(
!
sock_owned_by_user
(
sk
))
...
...
@@ -1739,6 +1756,13 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
__be32
saddr
,
daddr
;
struct
net
*
net
=
dev_net
(
skb
->
dev
);
#ifdef CONFIG_XEN_SME
char
dbg_buff
[
DBG_BUF_SIZE
];
memset
(
dbg_buff
,
0
,
DBG_BUF_SIZE
);
sprintf
(
dbg_buff
,
"%s:%d caller: %pS"
,
__func__
,
__LINE__
,
__builtin_return_address
(
0
));
xsl_print_sk_buff
(
skb
,
dbg_buff
);
#endif
/*
* Validate the packet.
*/
...
...
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