Lines Matching full:iface
22 #define GET_STAT(iface, s) (iface ? iface->stats.s : net_stats.s) argument
23 #define GET_STAT_ADDR(iface, s) (iface ? &iface->stats.s : &net_stats.s) argument
26 #define GET_STAT(iface, s) (net_stats.s) argument
27 #define GET_STAT_ADDR(iface, s) (&GET_STAT(iface, s)) argument
36 static inline void net_stats_update_processing_error(struct net_if *iface) in net_stats_update_processing_error() argument
38 UPDATE_STAT(iface, stats.processing_error++); in net_stats_update_processing_error()
41 static inline void net_stats_update_ip_errors_protoerr(struct net_if *iface) in net_stats_update_ip_errors_protoerr() argument
43 UPDATE_STAT(iface, stats.ip_errors.protoerr++); in net_stats_update_ip_errors_protoerr()
46 static inline void net_stats_update_ip_errors_vhlerr(struct net_if *iface) in net_stats_update_ip_errors_vhlerr() argument
48 UPDATE_STAT(iface, stats.ip_errors.vhlerr++); in net_stats_update_ip_errors_vhlerr()
51 static inline void net_stats_update_bytes_recv(struct net_if *iface, in net_stats_update_bytes_recv() argument
54 UPDATE_STAT(iface, stats.bytes.received += bytes); in net_stats_update_bytes_recv()
57 static inline void net_stats_update_bytes_sent(struct net_if *iface, in net_stats_update_bytes_sent() argument
60 UPDATE_STAT(iface, stats.bytes.sent += bytes); in net_stats_update_bytes_sent()
63 #define net_stats_update_processing_error(iface) argument
64 #define net_stats_update_ip_errors_protoerr(iface) argument
65 #define net_stats_update_ip_errors_vhlerr(iface) argument
66 #define net_stats_update_bytes_recv(iface, bytes) argument
67 #define net_stats_update_bytes_sent(iface, bytes) argument
73 static inline void net_stats_update_ipv6_sent(struct net_if *iface) in net_stats_update_ipv6_sent() argument
75 UPDATE_STAT(iface, stats.ipv6.sent++); in net_stats_update_ipv6_sent()
78 static inline void net_stats_update_ipv6_recv(struct net_if *iface) in net_stats_update_ipv6_recv() argument
80 UPDATE_STAT(iface, stats.ipv6.recv++); in net_stats_update_ipv6_recv()
83 static inline void net_stats_update_ipv6_drop(struct net_if *iface) in net_stats_update_ipv6_drop() argument
85 UPDATE_STAT(iface, stats.ipv6.drop++); in net_stats_update_ipv6_drop()
88 #define net_stats_update_ipv6_drop(iface) argument
89 #define net_stats_update_ipv6_sent(iface) argument
90 #define net_stats_update_ipv6_recv(iface) argument
96 static inline void net_stats_update_ipv6_nd_sent(struct net_if *iface) in net_stats_update_ipv6_nd_sent() argument
98 UPDATE_STAT(iface, stats.ipv6_nd.sent++); in net_stats_update_ipv6_nd_sent()
101 static inline void net_stats_update_ipv6_nd_recv(struct net_if *iface) in net_stats_update_ipv6_nd_recv() argument
103 UPDATE_STAT(iface, stats.ipv6_nd.recv++); in net_stats_update_ipv6_nd_recv()
106 static inline void net_stats_update_ipv6_nd_drop(struct net_if *iface) in net_stats_update_ipv6_nd_drop() argument
108 UPDATE_STAT(iface, stats.ipv6_nd.drop++); in net_stats_update_ipv6_nd_drop()
111 #define net_stats_update_ipv6_nd_sent(iface) argument
112 #define net_stats_update_ipv6_nd_recv(iface) argument
113 #define net_stats_update_ipv6_nd_drop(iface) argument
119 static inline void net_stats_update_ipv6_pmtu_sent(struct net_if *iface) in net_stats_update_ipv6_pmtu_sent() argument
121 UPDATE_STAT(iface, stats.ipv6_pmtu.sent++); in net_stats_update_ipv6_pmtu_sent()
124 static inline void net_stats_update_ipv6_pmtu_recv(struct net_if *iface) in net_stats_update_ipv6_pmtu_recv() argument
126 UPDATE_STAT(iface, stats.ipv6_pmtu.recv++); in net_stats_update_ipv6_pmtu_recv()
129 static inline void net_stats_update_ipv6_pmtu_drop(struct net_if *iface) in net_stats_update_ipv6_pmtu_drop() argument
131 UPDATE_STAT(iface, stats.ipv6_pmtu.drop++); in net_stats_update_ipv6_pmtu_drop()
134 #define net_stats_update_ipv6_pmtu_sent(iface) argument
135 #define net_stats_update_ipv6_pmtu_recv(iface) argument
136 #define net_stats_update_ipv6_pmtu_drop(iface) argument
142 static inline void net_stats_update_ipv4_pmtu_sent(struct net_if *iface) in net_stats_update_ipv4_pmtu_sent() argument
144 UPDATE_STAT(iface, stats.ipv4_pmtu.sent++); in net_stats_update_ipv4_pmtu_sent()
147 static inline void net_stats_update_ipv4_pmtu_recv(struct net_if *iface) in net_stats_update_ipv4_pmtu_recv() argument
149 UPDATE_STAT(iface, stats.ipv4_pmtu.recv++); in net_stats_update_ipv4_pmtu_recv()
152 static inline void net_stats_update_ipv4_pmtu_drop(struct net_if *iface) in net_stats_update_ipv4_pmtu_drop() argument
154 UPDATE_STAT(iface, stats.ipv4_pmtu.drop++); in net_stats_update_ipv4_pmtu_drop()
157 #define net_stats_update_ipv4_pmtu_sent(iface) argument
158 #define net_stats_update_ipv4_pmtu_recv(iface) argument
159 #define net_stats_update_ipv4_pmtu_drop(iface) argument
165 static inline void net_stats_update_ipv4_drop(struct net_if *iface) in net_stats_update_ipv4_drop() argument
167 UPDATE_STAT(iface, stats.ipv4.drop++); in net_stats_update_ipv4_drop()
170 static inline void net_stats_update_ipv4_sent(struct net_if *iface) in net_stats_update_ipv4_sent() argument
172 UPDATE_STAT(iface, stats.ipv4.sent++); in net_stats_update_ipv4_sent()
175 static inline void net_stats_update_ipv4_recv(struct net_if *iface) in net_stats_update_ipv4_recv() argument
177 UPDATE_STAT(iface, stats.ipv4.recv++); in net_stats_update_ipv4_recv()
180 #define net_stats_update_ipv4_drop(iface) argument
181 #define net_stats_update_ipv4_sent(iface) argument
182 #define net_stats_update_ipv4_recv(iface) argument
187 static inline void net_stats_update_icmp_sent(struct net_if *iface) in net_stats_update_icmp_sent() argument
189 UPDATE_STAT(iface, stats.icmp.sent++); in net_stats_update_icmp_sent()
192 static inline void net_stats_update_icmp_recv(struct net_if *iface) in net_stats_update_icmp_recv() argument
194 UPDATE_STAT(iface, stats.icmp.recv++); in net_stats_update_icmp_recv()
197 static inline void net_stats_update_icmp_drop(struct net_if *iface) in net_stats_update_icmp_drop() argument
199 UPDATE_STAT(iface, stats.icmp.drop++); in net_stats_update_icmp_drop()
202 #define net_stats_update_icmp_sent(iface) argument
203 #define net_stats_update_icmp_recv(iface) argument
204 #define net_stats_update_icmp_drop(iface) argument
209 static inline void net_stats_update_udp_sent(struct net_if *iface) in net_stats_update_udp_sent() argument
211 UPDATE_STAT(iface, stats.udp.sent++); in net_stats_update_udp_sent()
214 static inline void net_stats_update_udp_recv(struct net_if *iface) in net_stats_update_udp_recv() argument
216 UPDATE_STAT(iface, stats.udp.recv++); in net_stats_update_udp_recv()
219 static inline void net_stats_update_udp_drop(struct net_if *iface) in net_stats_update_udp_drop() argument
221 UPDATE_STAT(iface, stats.udp.drop++); in net_stats_update_udp_drop()
224 static inline void net_stats_update_udp_chkerr(struct net_if *iface) in net_stats_update_udp_chkerr() argument
226 UPDATE_STAT(iface, stats.udp.chkerr++); in net_stats_update_udp_chkerr()
229 #define net_stats_update_udp_sent(iface) argument
230 #define net_stats_update_udp_recv(iface) argument
231 #define net_stats_update_udp_drop(iface) argument
232 #define net_stats_update_udp_chkerr(iface) argument
237 static inline void net_stats_update_tcp_sent(struct net_if *iface, uint32_t bytes) in net_stats_update_tcp_sent() argument
239 UPDATE_STAT(iface, stats.tcp.bytes.sent += bytes); in net_stats_update_tcp_sent()
242 static inline void net_stats_update_tcp_recv(struct net_if *iface, uint32_t bytes) in net_stats_update_tcp_recv() argument
244 UPDATE_STAT(iface, stats.tcp.bytes.received += bytes); in net_stats_update_tcp_recv()
247 static inline void net_stats_update_tcp_resent(struct net_if *iface, in net_stats_update_tcp_resent() argument
250 UPDATE_STAT(iface, stats.tcp.resent += bytes); in net_stats_update_tcp_resent()
253 static inline void net_stats_update_tcp_drop(struct net_if *iface) in net_stats_update_tcp_drop() argument
255 UPDATE_STAT(iface, stats.tcp.drop++); in net_stats_update_tcp_drop()
258 static inline void net_stats_update_tcp_seg_sent(struct net_if *iface) in net_stats_update_tcp_seg_sent() argument
260 UPDATE_STAT(iface, stats.tcp.sent++); in net_stats_update_tcp_seg_sent()
263 static inline void net_stats_update_tcp_seg_recv(struct net_if *iface) in net_stats_update_tcp_seg_recv() argument
265 UPDATE_STAT(iface, stats.tcp.recv++); in net_stats_update_tcp_seg_recv()
268 static inline void net_stats_update_tcp_seg_drop(struct net_if *iface) in net_stats_update_tcp_seg_drop() argument
270 UPDATE_STAT(iface, stats.tcp.seg_drop++); in net_stats_update_tcp_seg_drop()
273 static inline void net_stats_update_tcp_seg_rst(struct net_if *iface) in net_stats_update_tcp_seg_rst() argument
275 UPDATE_STAT(iface, stats.tcp.rst++); in net_stats_update_tcp_seg_rst()
278 static inline void net_stats_update_tcp_seg_conndrop(struct net_if *iface) in net_stats_update_tcp_seg_conndrop() argument
280 UPDATE_STAT(iface, stats.tcp.conndrop++); in net_stats_update_tcp_seg_conndrop()
283 static inline void net_stats_update_tcp_seg_connrst(struct net_if *iface) in net_stats_update_tcp_seg_connrst() argument
285 UPDATE_STAT(iface, stats.tcp.connrst++); in net_stats_update_tcp_seg_connrst()
288 static inline void net_stats_update_tcp_seg_chkerr(struct net_if *iface) in net_stats_update_tcp_seg_chkerr() argument
290 UPDATE_STAT(iface, stats.tcp.chkerr++); in net_stats_update_tcp_seg_chkerr()
293 static inline void net_stats_update_tcp_seg_ackerr(struct net_if *iface) in net_stats_update_tcp_seg_ackerr() argument
295 UPDATE_STAT(iface, stats.tcp.ackerr++); in net_stats_update_tcp_seg_ackerr()
298 static inline void net_stats_update_tcp_seg_rsterr(struct net_if *iface) in net_stats_update_tcp_seg_rsterr() argument
300 UPDATE_STAT(iface, stats.tcp.rsterr++); in net_stats_update_tcp_seg_rsterr()
303 static inline void net_stats_update_tcp_seg_rexmit(struct net_if *iface) in net_stats_update_tcp_seg_rexmit() argument
305 UPDATE_STAT(iface, stats.tcp.rexmit++); in net_stats_update_tcp_seg_rexmit()
308 #define net_stats_update_tcp_sent(iface, bytes) argument
309 #define net_stats_update_tcp_resent(iface, bytes) argument
310 #define net_stats_update_tcp_recv(iface, bytes) argument
311 #define net_stats_update_tcp_drop(iface) argument
312 #define net_stats_update_tcp_seg_sent(iface) argument
313 #define net_stats_update_tcp_seg_recv(iface) argument
314 #define net_stats_update_tcp_seg_drop(iface) argument
315 #define net_stats_update_tcp_seg_rst(iface) argument
316 #define net_stats_update_tcp_seg_conndrop(iface) argument
317 #define net_stats_update_tcp_seg_connrst(iface) argument
318 #define net_stats_update_tcp_seg_chkerr(iface) argument
319 #define net_stats_update_tcp_seg_ackerr(iface) argument
320 #define net_stats_update_tcp_seg_rsterr(iface) argument
321 #define net_stats_update_tcp_seg_rexmit(iface) argument
324 static inline void net_stats_update_per_proto_recv(struct net_if *iface, in net_stats_update_per_proto_recv() argument
332 net_stats_update_udp_recv(iface); in net_stats_update_per_proto_recv()
334 net_stats_update_tcp_seg_recv(iface); in net_stats_update_per_proto_recv()
338 static inline void net_stats_update_per_proto_drop(struct net_if *iface, in net_stats_update_per_proto_drop() argument
346 net_stats_update_udp_drop(iface); in net_stats_update_per_proto_drop()
348 net_stats_update_tcp_drop(iface); in net_stats_update_per_proto_drop()
353 static inline void net_stats_update_ipv6_mld_recv(struct net_if *iface) in net_stats_update_ipv6_mld_recv() argument
355 UPDATE_STAT(iface, stats.ipv6_mld.recv++); in net_stats_update_ipv6_mld_recv()
358 static inline void net_stats_update_ipv6_mld_sent(struct net_if *iface) in net_stats_update_ipv6_mld_sent() argument
360 UPDATE_STAT(iface, stats.ipv6_mld.sent++); in net_stats_update_ipv6_mld_sent()
363 static inline void net_stats_update_ipv6_mld_drop(struct net_if *iface) in net_stats_update_ipv6_mld_drop() argument
365 UPDATE_STAT(iface, stats.ipv6_mld.drop++); in net_stats_update_ipv6_mld_drop()
368 #define net_stats_update_ipv6_mld_recv(iface) argument
369 #define net_stats_update_ipv6_mld_sent(iface) argument
370 #define net_stats_update_ipv6_mld_drop(iface) argument
374 static inline void net_stats_update_ipv4_igmp_recv(struct net_if *iface) in net_stats_update_ipv4_igmp_recv() argument
376 UPDATE_STAT(iface, stats.ipv4_igmp.recv++); in net_stats_update_ipv4_igmp_recv()
379 static inline void net_stats_update_ipv4_igmp_sent(struct net_if *iface) in net_stats_update_ipv4_igmp_sent() argument
381 UPDATE_STAT(iface, stats.ipv4_igmp.sent++); in net_stats_update_ipv4_igmp_sent()
384 static inline void net_stats_update_ipv4_igmp_drop(struct net_if *iface) in net_stats_update_ipv4_igmp_drop() argument
386 UPDATE_STAT(iface, stats.ipv4_igmp.drop++); in net_stats_update_ipv4_igmp_drop()
389 #define net_stats_update_ipv4_igmp_recv(iface) argument
390 #define net_stats_update_ipv4_igmp_sent(iface) argument
391 #define net_stats_update_ipv4_igmp_drop(iface) argument
395 static inline void net_stats_update_dns_recv(struct net_if *iface) in net_stats_update_dns_recv() argument
397 UPDATE_STAT(iface, stats.dns.recv++); in net_stats_update_dns_recv()
400 static inline void net_stats_update_dns_sent(struct net_if *iface) in net_stats_update_dns_sent() argument
402 UPDATE_STAT(iface, stats.dns.sent++); in net_stats_update_dns_sent()
405 static inline void net_stats_update_dns_drop(struct net_if *iface) in net_stats_update_dns_drop() argument
407 UPDATE_STAT(iface, stats.dns.drop++); in net_stats_update_dns_drop()
410 #define net_stats_update_dns_recv(iface) argument
411 #define net_stats_update_dns_sent(iface) argument
412 #define net_stats_update_dns_drop(iface) argument
416 static inline void net_stats_update_tx_time(struct net_if *iface, in net_stats_update_tx_time() argument
422 UPDATE_STAT(iface, stats.tx_time.sum += in net_stats_update_tx_time()
424 UPDATE_STAT(iface, stats.tx_time.count += 1); in net_stats_update_tx_time()
427 #define net_stats_update_tx_time(iface, start_time, end_time) argument
431 static inline void net_stats_update_tx_time_detail(struct net_if *iface, in net_stats_update_tx_time_detail() argument
437 UPDATE_STAT(iface, in net_stats_update_tx_time_detail()
440 UPDATE_STAT(iface, in net_stats_update_tx_time_detail()
445 #define net_stats_update_tx_time_detail(iface, detail_stat) argument
449 static inline void net_stats_update_rx_time(struct net_if *iface, in net_stats_update_rx_time() argument
455 UPDATE_STAT(iface, stats.rx_time.sum += in net_stats_update_rx_time()
457 UPDATE_STAT(iface, stats.rx_time.count += 1); in net_stats_update_rx_time()
460 #define net_stats_update_rx_time(iface, start_time, end_time) argument
464 static inline void net_stats_update_rx_time_detail(struct net_if *iface, in net_stats_update_rx_time_detail() argument
470 UPDATE_STAT(iface, in net_stats_update_rx_time_detail()
473 UPDATE_STAT(iface, in net_stats_update_rx_time_detail()
478 #define net_stats_update_rx_time_detail(iface, detail_stat) argument
483 static inline void net_stats_update_tc_sent_pkt(struct net_if *iface, uint8_t tc) in net_stats_update_tc_sent_pkt() argument
485 UPDATE_STAT(iface, stats.tc.sent[tc].pkts++); in net_stats_update_tc_sent_pkt()
488 static inline void net_stats_update_tc_sent_bytes(struct net_if *iface, in net_stats_update_tc_sent_bytes() argument
491 UPDATE_STAT(iface, stats.tc.sent[tc].bytes += bytes); in net_stats_update_tc_sent_bytes()
494 static inline void net_stats_update_tc_sent_priority(struct net_if *iface, in net_stats_update_tc_sent_priority() argument
497 UPDATE_STAT(iface, stats.tc.sent[tc].priority = priority); in net_stats_update_tc_sent_priority()
502 static inline void net_stats_update_tc_tx_time(struct net_if *iface, in net_stats_update_tc_tx_time() argument
510 UPDATE_STAT(iface, stats.tc.sent[tc].tx_time.sum += in net_stats_update_tc_tx_time()
512 UPDATE_STAT(iface, stats.tc.sent[tc].tx_time.count += 1); in net_stats_update_tc_tx_time()
514 net_stats_update_tx_time(iface, start_time, end_time); in net_stats_update_tc_tx_time()
517 #define net_stats_update_tc_tx_time(iface, tc, start_time, end_time) argument
521 static inline void net_stats_update_tc_tx_time_detail(struct net_if *iface, in net_stats_update_tc_tx_time_detail() argument
529 UPDATE_STAT(iface, in net_stats_update_tc_tx_time_detail()
532 UPDATE_STAT(iface, in net_stats_update_tc_tx_time_detail()
536 net_stats_update_tx_time_detail(iface, detail_stat); in net_stats_update_tc_tx_time_detail()
539 #define net_stats_update_tc_tx_time_detail(iface, tc, detail_stat) argument
544 static inline void net_stats_update_tc_rx_time(struct net_if *iface, in net_stats_update_tc_rx_time() argument
552 UPDATE_STAT(iface, stats.tc.recv[tc].rx_time.sum += in net_stats_update_tc_rx_time()
554 UPDATE_STAT(iface, stats.tc.recv[tc].rx_time.count += 1); in net_stats_update_tc_rx_time()
556 net_stats_update_rx_time(iface, start_time, end_time); in net_stats_update_tc_rx_time()
559 #define net_stats_update_tc_rx_time(iface, tc, start_time, end_time) argument
563 static inline void net_stats_update_tc_rx_time_detail(struct net_if *iface, in net_stats_update_tc_rx_time_detail() argument
571 UPDATE_STAT(iface, in net_stats_update_tc_rx_time_detail()
574 UPDATE_STAT(iface, in net_stats_update_tc_rx_time_detail()
578 net_stats_update_rx_time_detail(iface, detail_stat); in net_stats_update_tc_rx_time_detail()
581 #define net_stats_update_tc_rx_time_detail(iface, tc, detail_stat) argument
584 static inline void net_stats_update_tc_recv_pkt(struct net_if *iface, uint8_t tc) in net_stats_update_tc_recv_pkt() argument
586 UPDATE_STAT(iface, stats.tc.recv[tc].pkts++); in net_stats_update_tc_recv_pkt()
589 static inline void net_stats_update_tc_recv_bytes(struct net_if *iface, in net_stats_update_tc_recv_bytes() argument
592 UPDATE_STAT(iface, stats.tc.recv[tc].bytes += bytes); in net_stats_update_tc_recv_bytes()
595 static inline void net_stats_update_tc_recv_priority(struct net_if *iface, in net_stats_update_tc_recv_priority() argument
598 UPDATE_STAT(iface, stats.tc.recv[tc].priority = priority); in net_stats_update_tc_recv_priority()
601 #define net_stats_update_tc_sent_pkt(iface, tc) argument
602 #define net_stats_update_tc_sent_bytes(iface, tc, bytes) argument
603 #define net_stats_update_tc_sent_priority(iface, tc, priority) argument
604 #define net_stats_update_tc_recv_pkt(iface, tc) argument
605 #define net_stats_update_tc_recv_bytes(iface, tc, bytes) argument
606 #define net_stats_update_tc_recv_priority(iface, tc, priority) argument
610 static inline void net_stats_update_tc_tx_time(struct net_if *iface, in net_stats_update_tc_tx_time() argument
617 net_stats_update_tx_time(iface, start_time, end_time); in net_stats_update_tc_tx_time()
620 #define net_stats_update_tc_tx_time(iface, priority, start_time, end_time) argument
624 static inline void net_stats_update_tc_tx_time_detail(struct net_if *iface, in net_stats_update_tc_tx_time_detail() argument
630 net_stats_update_tx_time_detail(iface, detail_stat); in net_stats_update_tc_tx_time_detail()
633 #define net_stats_update_tc_tx_time_detail(iface, pkt_priority, detail_stat) argument
638 static inline void net_stats_update_tc_rx_time(struct net_if *iface, in net_stats_update_tc_rx_time() argument
645 net_stats_update_rx_time(iface, start_time, end_time); in net_stats_update_tc_rx_time()
648 #define net_stats_update_tc_rx_time(iface, priority, start_time, end_time) argument
652 static inline void net_stats_update_tc_rx_time_detail(struct net_if *iface, in net_stats_update_tc_rx_time_detail() argument
658 net_stats_update_rx_time_detail(iface, detail_stat); in net_stats_update_tc_rx_time_detail()
661 #define net_stats_update_tc_rx_time_detail(iface, pkt_priority, detail_stat) argument
667 static inline void net_stats_add_suspend_start_time(struct net_if *iface, in net_stats_add_suspend_start_time() argument
670 UPDATE_STAT(iface, stats.pm.start_time = time); in net_stats_add_suspend_start_time()
673 static inline void net_stats_add_suspend_end_time(struct net_if *iface, in net_stats_add_suspend_end_time() argument
677 k_cyc_to_ms_floor32(time - GET_STAT(iface, pm.start_time)); in net_stats_add_suspend_end_time()
679 UPDATE_STAT(iface, stats.pm.start_time = 0); in net_stats_add_suspend_end_time()
680 UPDATE_STAT(iface, stats.pm.last_suspend_time = diff_time); in net_stats_add_suspend_end_time()
681 UPDATE_STAT(iface, stats.pm.suspend_count++); in net_stats_add_suspend_end_time()
682 UPDATE_STAT(iface, stats.pm.overall_suspend_time += diff_time); in net_stats_add_suspend_end_time()
685 #define net_stats_add_suspend_start_time(iface, time) argument
686 #define net_stats_add_suspend_end_time(iface, time) argument
693 void net_print_statistics_iface(struct net_if *iface);
697 #define net_print_statistics_iface(iface) argument
701 void net_stats_reset(struct net_if *iface);