Skip to content
Snippets Groups Projects
Commit 3e4703d3 authored by Aastha Mehta's avatar Aastha Mehta
Browse files

domu prints

parent 99fc7cd6
No related branches found
No related tags found
No related merge requests found
...@@ -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.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment