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

debug code

parent b55267aa
No related branches found
No related tags found
No related merge requests found
......@@ -2960,7 +2960,33 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs)
if (tp->undo_retrans < 0)
tp->undo_retrans = 0;
//#if defined(CONFIG_XEN_SME) && defined(CONFIG_PACER_TCP)
// if (lnk_tx_adjust_urg) {
// if (ntohs(inet_sk(sk)->inet_sport) == 443 ||
// ntohs(inet_sk(sk)->inet_dport) == 443) {
// tp->undo_retrans += 1;
// } else {
// tp->undo_retrans += tcp_skb_pcount(skb);
// }
// if (skb == NULL) {
// printk(KERN_ERR "(%d:%.16s,core:%d) %s:%d [%pI4 %u, %pI4 %u]\n"
// "snd_nxt %u snd_una %u snd_cwnd %d pkts %d lost %d retrans %d sack %d"
// " CA %d pending %d\n"
// , task_pid_nr(current), current->comm, smp_processor_id()
// , __func__, __LINE__
// , (void *) &inet_sk(sk)->inet_saddr, ntohs(inet_sk(sk)->inet_sport)
// , (void *) &inet_sk(sk)->inet_daddr, ntohs(inet_sk(sk)->inet_dport)
// , tp->snd_nxt, tp->snd_una, tp->snd_cwnd, tp->packets_out
// , tp->lost_out, tp->retrans_out, tp->sacked_out
// , inet_csk(sk)->icsk_ca_state, inet_csk(sk)->icsk_pending
// );
// }
// } else {
// tp->undo_retrans += tcp_skb_pcount(skb);
// }
//#else
tp->undo_retrans += tcp_skb_pcount(skb);
//#endif
return err;
}
......
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