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
3e4703d3
Commit
3e4703d3
authored
7 years ago
by
Aastha Mehta
Browse files
Options
Downloads
Patches
Plain Diff
domu prints
parent
99fc7cd6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
net/ipv4/ip_input.c
+18
-0
18 additions, 0 deletions
net/ipv4/ip_input.c
with
18 additions
and
0 deletions
net/ipv4/ip_input.c
+
18
−
0
View file @
3e4703d3
...
@@ -115,6 +115,10 @@
...
@@ -115,6 +115,10 @@
#define pr_fmt(fmt) "IPv4: " fmt
#define pr_fmt(fmt) "IPv4: " fmt
#ifdef CONFIG_XEN_SME
#include
"../../drivers/net/ethernet/broadcom/bnx2x/sme/xen_sme_hooks.h"
#define DBG_BUF_SIZE 256
#endif
#include
<linux/module.h>
#include
<linux/module.h>
#include
<linux/types.h>
#include
<linux/types.h>
#include
<linux/kernel.h>
#include
<linux/kernel.h>
...
@@ -314,6 +318,13 @@ static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
...
@@ -314,6 +318,13 @@ static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
struct
rtable
*
rt
;
struct
rtable
*
rt
;
struct
net_device
*
dev
=
skb
->
dev
;
struct
net_device
*
dev
=
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
/* if ingress device is enslaved to an L3 master device pass the
/* if ingress device is enslaved to an L3 master device pass the
* skb to its handler for processing
* skb to its handler for processing
*/
*/
...
@@ -409,6 +420,13 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
...
@@ -409,6 +420,13 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
struct
net
*
net
;
struct
net
*
net
;
u32
len
;
u32
len
;
#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
/* When the interface is in promisc. mode, drop all the crap
/* When the interface is in promisc. mode, drop all the crap
* that it receives, do not try to analyse it.
* that it receives, do not try to analyse it.
*/
*/
...
...
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