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

debug prints

parent e8f5ef6b
No related branches found
No related tags found
No related merge requests found
......@@ -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)))
......
......@@ -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);
......
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