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

debug code in retransmits_timed_out

parent baf28d2e
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,10 @@
#include <linux/gfp.h>
#include <net/tcp.h>
#if defined(CONFIG_XEN_SME) && defined(CONFIG_PACER_TCP)
extern int (*lnk_tx_adjust_urg) (struct sock *sk, struct sk_buff *skb);
#endif
int sysctl_tcp_thin_linear_timeouts __read_mostly;
/**
......@@ -159,11 +163,23 @@ static bool retransmits_timed_out(struct sock *sk,
{
unsigned int linear_backoff_thresh, start_ts;
unsigned int rto_base = syn_set ? TCP_TIMEOUT_INIT : TCP_RTO_MIN;
#if defined(CONFIG_XEN_SME) && defined(CONFIG_PACER_TCP)
char dbg[256];
#endif
if (!inet_csk(sk)->icsk_retransmits)
return false;
start_ts = tcp_sk(sk)->retrans_stamp;
#if defined(CONFIG_XEN_SME) && defined(CONFIG_PACER_TCP)
if (lnk_tx_adjust_urg && !start_ts && !tcp_write_queue_head(sk)) {
memset(dbg, 0, 256);
sprintf(dbg, "%s:%d", __func__, __LINE__);
ptcp_print_sock_skb(sk, NULL, dbg);
return false;
}
#endif
if (unlikely(!start_ts))
start_ts = tcp_skb_timestamp(tcp_write_queue_head(sk));
......
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