Lines Matching refs:pkti
82 static int get_tcp_info(struct __sk_buff *skb, struct hbm_pkt_info *pkti) in get_tcp_info() argument
94 pkti->cwnd = tp->snd_cwnd; in get_tcp_info()
95 pkti->rtt = tp->srtt_us >> 3; in get_tcp_info()
96 pkti->packets_out = tp->packets_out; in get_tcp_info()
102 pkti->cwnd = 0; in get_tcp_info()
103 pkti->rtt = 0; in get_tcp_info()
104 pkti->packets_out = 0; in get_tcp_info()
109 struct hbm_pkt_info *pkti) in hbm_get_pkt_info() argument
114 pkti->cwnd = 0; in hbm_get_pkt_info()
115 pkti->rtt = 0; in hbm_get_pkt_info()
119 pkti->is_ip = true; in hbm_get_pkt_info()
120 pkti->is_tcp = (ip6h->nexthdr == 6); in hbm_get_pkt_info()
121 pkti->ecn = (ip6h->flow_lbl[0] >> 4) & INET_ECN_MASK; in hbm_get_pkt_info()
123 pkti->is_ip = true; in hbm_get_pkt_info()
124 pkti->is_tcp = (iph.protocol == 6); in hbm_get_pkt_info()
125 pkti->ecn = iph.tos & INET_ECN_MASK; in hbm_get_pkt_info()
127 pkti->is_ip = false; in hbm_get_pkt_info()
128 pkti->is_tcp = false; in hbm_get_pkt_info()
129 pkti->ecn = 0; in hbm_get_pkt_info()
131 if (pkti->is_tcp) in hbm_get_pkt_info()
132 get_tcp_info(skb, pkti); in hbm_get_pkt_info()
162 struct hbm_pkt_info *pkti, in hbm_update_stats() argument
187 if (pkti->cwnd) { in hbm_update_stats()
189 pkti->cwnd); in hbm_update_stats()
192 if (pkti->rtt) in hbm_update_stats()
194 pkti->rtt); in hbm_update_stats()