/net/netfilter/ipvs/ |
D | ip_vs_est.c | 105 void ip_vs_new_estimator(struct ip_vs_stats *stats) in ip_vs_new_estimator() argument 107 struct ip_vs_estimator *est = &stats->est; in ip_vs_new_estimator() 111 est->last_conns = stats->ustats.conns; in ip_vs_new_estimator() 112 est->cps = stats->ustats.cps<<10; in ip_vs_new_estimator() 114 est->last_inpkts = stats->ustats.inpkts; in ip_vs_new_estimator() 115 est->inpps = stats->ustats.inpps<<10; in ip_vs_new_estimator() 117 est->last_outpkts = stats->ustats.outpkts; in ip_vs_new_estimator() 118 est->outpps = stats->ustats.outpps<<10; in ip_vs_new_estimator() 120 est->last_inbytes = stats->ustats.inbytes; in ip_vs_new_estimator() 121 est->inbps = stats->ustats.inbps<<5; in ip_vs_new_estimator() [all …]
|
D | ip_vs_core.c | 104 spin_lock(&dest->stats.lock); in ip_vs_in_stats() 105 dest->stats.ustats.inpkts++; in ip_vs_in_stats() 106 dest->stats.ustats.inbytes += skb->len; in ip_vs_in_stats() 107 spin_unlock(&dest->stats.lock); in ip_vs_in_stats() 109 spin_lock(&dest->svc->stats.lock); in ip_vs_in_stats() 110 dest->svc->stats.ustats.inpkts++; in ip_vs_in_stats() 111 dest->svc->stats.ustats.inbytes += skb->len; in ip_vs_in_stats() 112 spin_unlock(&dest->svc->stats.lock); in ip_vs_in_stats() 127 spin_lock(&dest->stats.lock); in ip_vs_out_stats() 128 dest->stats.ustats.outpkts++; in ip_vs_out_stats() [all …]
|
/net/tipc/ |
D | bcast.c | 287 bcl->stats.sent_nacks++; in bclink_send_nack() 292 bcl->stats.bearer_congs++; in bclink_send_nack() 398 bcl->stats.sent_info++; in tipc_bclink_send_msg() 400 if (bcl->out_queue_size > bcl->stats.max_queue_sz) in tipc_bclink_send_msg() 401 bcl->stats.max_queue_sz = bcl->out_queue_size; in tipc_bclink_send_msg() 402 bcl->stats.queue_sz_counts++; in tipc_bclink_send_msg() 403 bcl->stats.accu_queue_sz += bcl->out_queue_size; in tipc_bclink_send_msg() 441 bcl->stats.recv_nacks++; in tipc_bclink_recv_pkt() 472 bcl->stats.recv_info++; in tipc_bclink_recv_pkt() 477 bcl->stats.sent_acks++; in tipc_bclink_recv_pkt() [all …]
|
D | link.c | 371 l_ptr->stats.accu_queue_sz += l_ptr->out_queue_size; in link_timeout() 372 l_ptr->stats.queue_sz_counts++; in link_timeout() 374 if (l_ptr->out_queue_size > l_ptr->stats.max_queue_sz) in link_timeout() 375 l_ptr->stats.max_queue_sz = l_ptr->out_queue_size; in link_timeout() 386 l_ptr->stats.msg_lengths_total += length; in link_timeout() 387 l_ptr->stats.msg_length_counts++; in link_timeout() 389 l_ptr->stats.msg_length_profile[0]++; in link_timeout() 391 l_ptr->stats.msg_length_profile[1]++; in link_timeout() 393 l_ptr->stats.msg_length_profile[2]++; in link_timeout() 395 l_ptr->stats.msg_length_profile[3]++; in link_timeout() [all …]
|
/net/irda/ |
D | wrapper.c | 209 struct net_device_stats *stats, in async_bump() argument 228 stats->rx_dropped++; in async_bump() 265 stats->rx_packets++; in async_bump() 266 stats->rx_bytes += rx_buff->len; in async_bump() 281 struct net_device_stats *stats, in async_unwrap_bof() argument 291 stats->rx_errors++; in async_unwrap_bof() 292 stats->rx_missed_errors++; in async_unwrap_bof() 321 struct net_device_stats *stats, in async_unwrap_eof() argument 331 stats->rx_errors++; in async_unwrap_eof() 332 stats->rx_missed_errors++; in async_unwrap_eof() [all …]
|
/net/wanrouter/ |
D | wanproc.c | 234 "total packets received", wandev->stats.rx_packets); in wandev_show() 236 "total packets transmitted", wandev->stats.tx_packets); in wandev_show() 238 "total bytes received", wandev->stats.rx_bytes); in wandev_show() 240 "total bytes transmitted", wandev->stats.tx_bytes); in wandev_show() 242 "bad packets received", wandev->stats.rx_errors); in wandev_show() 244 "packet transmit problems", wandev->stats.tx_errors); in wandev_show() 246 "received frames dropped", wandev->stats.rx_dropped); in wandev_show() 248 "transmit frames dropped", wandev->stats.tx_dropped); in wandev_show() 250 "multicast packets received", wandev->stats.multicast); in wandev_show() 252 "transmit collisions", wandev->stats.collisions); in wandev_show() [all …]
|
/net/netrom/ |
D | nr_dev.c | 45 struct net_device_stats *stats = netdev_priv(dev); in nr_rx_ip() local 48 stats->rx_dropped++; in nr_rx_ip() 52 stats->rx_packets++; in nr_rx_ip() 53 stats->rx_bytes += skb->len; in nr_rx_ip() 175 struct net_device_stats *stats = &nr->stats; in nr_xmit() local 180 stats->tx_errors++; in nr_xmit() 184 stats->tx_packets++; in nr_xmit() 185 stats->tx_bytes += len; in nr_xmit() 194 return &nr->stats; in nr_get_stats()
|
/net/sched/ |
D | sch_red.c | 44 struct red_stats stats; member 76 q->stats.prob_drop++; in red_enqueue() 80 q->stats.prob_mark++; in red_enqueue() 87 q->stats.forced_drop++; in red_enqueue() 91 q->stats.forced_mark++; in red_enqueue() 101 q->stats.pdrop++; in red_enqueue() 141 q->stats.other++; in red_drop() 257 .early = q->stats.prob_drop + q->stats.forced_drop, in red_dump_stats() 258 .pdrop = q->stats.pdrop, in red_dump_stats() 259 .other = q->stats.other, in red_dump_stats() [all …]
|
D | sch_gred.c | 44 struct red_stats stats; member 211 q->stats.prob_drop++; in gred_enqueue() 215 q->stats.prob_mark++; in gred_enqueue() 222 q->stats.forced_drop++; in gred_enqueue() 225 q->stats.forced_mark++; in gred_enqueue() 234 q->stats.pdrop++; in gred_enqueue() 293 q->stats.other++; in gred_drop() 540 opt.other = q->stats.other; in gred_dump() 541 opt.early = q->stats.prob_drop; in gred_dump() 542 opt.forced = q->stats.forced_drop; in gred_dump() [all …]
|
/net/irda/irlan/ |
D | irlan_eth.c | 199 self->stats.tx_dropped++; in irlan_eth_xmit() 201 self->stats.tx_packets++; in irlan_eth_xmit() 202 self->stats.tx_bytes += skb->len; in irlan_eth_xmit() 219 ++self->stats.rx_dropped; in irlan_eth_receive() 225 ++self->stats.rx_dropped; in irlan_eth_receive() 237 self->stats.rx_packets++; in irlan_eth_receive() 238 self->stats.rx_bytes += skb->len; in irlan_eth_receive() 349 return &self->stats; in irlan_eth_get_stats()
|
/net/rose/ |
D | rose_dev.c | 60 struct net_device_stats *stats = netdev_priv(dev); in rose_rebuild_header() local 83 stats->tx_errors++; in rose_rebuild_header() 87 stats->tx_packets++; in rose_rebuild_header() 88 stats->tx_bytes += len; in rose_rebuild_header() 136 struct net_device_stats *stats = netdev_priv(dev); in rose_xmit() local 143 stats->tx_errors++; in rose_xmit()
|
/net/8021q/ |
D | vlan_core.c | 34 struct net_device_stats *stats; in vlan_hwaccel_do_receive() local 43 stats = &dev->stats; in vlan_hwaccel_do_receive() 44 stats->rx_packets++; in vlan_hwaccel_do_receive() 45 stats->rx_bytes += skb->len; in vlan_hwaccel_do_receive() 51 stats->multicast++; in vlan_hwaccel_do_receive()
|
D | vlan_dev.c | 143 struct net_device_stats *stats; in vlan_skb_recv() local 166 stats = &skb->dev->stats; in vlan_skb_recv() 167 stats->rx_packets++; in vlan_skb_recv() 168 stats->rx_bytes += skb->len; in vlan_skb_recv() 183 stats->multicast++; in vlan_skb_recv() 203 stats->rx_errors++; in vlan_skb_recv() 293 struct net_device_stats *stats = &dev->stats; in vlan_dev_hard_start_xmit() local 312 stats->tx_dropped++; in vlan_dev_hard_start_xmit() 320 stats->tx_packets++; in vlan_dev_hard_start_xmit() 321 stats->tx_bytes += skb->len; in vlan_dev_hard_start_xmit() [all …]
|
D | vlanproc.c | 282 struct net_device_stats *stats = &vlandev->stats; in vlandev_seq_show() local 294 seq_printf(seq, fmt, "total frames received", stats->rx_packets); in vlandev_seq_show() 295 seq_printf(seq, fmt, "total bytes received", stats->rx_bytes); in vlandev_seq_show() 296 seq_printf(seq, fmt, "Broadcast/Multicast Rcvd", stats->multicast); in vlandev_seq_show() 298 seq_printf(seq, fmt, "total frames transmitted", stats->tx_packets); in vlandev_seq_show() 299 seq_printf(seq, fmt, "total bytes transmitted", stats->tx_bytes); in vlandev_seq_show()
|
/net/sunrpc/ |
D | stats.c | 129 void rpc_free_iostats(struct rpc_iostats *stats) in rpc_free_iostats() argument 131 kfree(stats); in rpc_free_iostats() 144 struct rpc_iostats *stats = task->tk_client->cl_metrics; in rpc_count_iostats() local 148 if (!stats || !req) in rpc_count_iostats() 150 op_metrics = &stats[task->tk_msg.rpc_proc->p_statidx]; in rpc_count_iostats() 190 struct rpc_iostats *stats = clnt->cl_metrics; in rpc_print_iostats() local 194 if (!stats) in rpc_print_iostats() 206 struct rpc_iostats *metrics = &stats[op]; in rpc_print_iostats()
|
/net/mac80211/ |
D | debugfs.c | 73 int (*printvalue)(struct ieee80211_low_level_stats *stats, char *buf, in format_devstat_counter() argument 76 struct ieee80211_low_level_stats stats; in format_devstat_counter() local 84 res = local->ops->get_stats(local_to_hw(local), &stats); in format_devstat_counter() 87 res = printvalue(&stats, buf, sizeof(buf)); in format_devstat_counter() 92 static int print_devstats_##name(struct ieee80211_low_level_stats *stats,\ 95 return scnprintf(buf, buflen, "%u\n", stats->name); \ 114 local->debugfs.stats.name = debugfs_create_file(#name, 0400, statsd,\ 118 debugfs_remove(local->debugfs.stats.name); \ 119 local->debugfs.stats.name = NULL;
|
/net/wireless/ |
D | wext.c | 540 struct iw_statistics *stats; in iw_handler_get_iwstats() local 542 stats = get_wireless_stats(dev); in iw_handler_get_iwstats() 543 if (stats) { in iw_handler_get_iwstats() 545 memcpy(extra, stats, sizeof(struct iw_statistics)); in iw_handler_get_iwstats() 550 stats->qual.updated &= ~IW_QUAL_ALL_UPDATED; in iw_handler_get_iwstats() 612 struct iw_statistics *stats = get_wireless_stats(dev); in wireless_seq_printf_stats() local 614 if (stats) { in wireless_seq_printf_stats() 617 dev->name, stats->status, stats->qual.qual, in wireless_seq_printf_stats() 618 stats->qual.updated & IW_QUAL_QUAL_UPDATED in wireless_seq_printf_stats() 620 ((__s32) stats->qual.level) - in wireless_seq_printf_stats() [all …]
|
/net/ipv6/ |
D | proc.c | 210 snmp6_seq_show_item(seq, (void **)idev->stats.ipv6, snmp6_ipstats_list); in snmp6_dev_seq_show() 211 snmp6_seq_show_item(seq, (void **)idev->stats.icmpv6, snmp6_icmp6_list); in snmp6_dev_seq_show() 212 snmp6_seq_show_icmpv6msg(seq, (void **)idev->stats.icmpv6msg); in snmp6_dev_seq_show() 247 idev->stats.proc_dir_entry = p; in snmp6_register_dev() 256 if (!idev || !idev->stats.proc_dir_entry) in snmp6_unregister_dev() 258 remove_proc_entry(idev->stats.proc_dir_entry->name, in snmp6_unregister_dev() 260 idev->stats.proc_dir_entry = NULL; in snmp6_unregister_dev()
|
/net/phonet/ |
D | pep-gprs.c | 134 dev->stats.rx_packets++; in gprs_recv() 135 dev->stats.rx_bytes += skb->len; in gprs_recv() 144 dev->stats.rx_dropped++; in gprs_recv() 208 dev->stats.tx_aborted_errors++; in gprs_xmit() 209 dev->stats.tx_errors++; in gprs_xmit() 211 dev->stats.tx_packets++; in gprs_xmit() 212 dev->stats.tx_bytes += len; in gprs_xmit()
|
/net/atm/ |
D | br2684.c | 86 struct net_device_stats stats; member 214 brdev->stats.tx_packets++; in br2684_xmit_vcc() 215 brdev->stats.tx_bytes += skb->len; in br2684_xmit_vcc() 236 brdev->stats.tx_errors++; in br2684_start_xmit() 237 brdev->stats.tx_carrier_errors++; in br2684_start_xmit() 251 brdev->stats.tx_errors++; in br2684_start_xmit() 252 brdev->stats.tx_fifo_errors++; in br2684_start_xmit() 261 return &BRPRIV(dev)->stats; in br2684_get_stats() 433 brdev->stats.rx_packets++; in br2684_push() 434 brdev->stats.rx_bytes += skb->len; in br2684_push() [all …]
|
D | resources.c | 108 memset(&dev->stats, 0, sizeof(dev->stats)); in atm_dev_register() 184 copy_aal_stats(&dev->stats.aal0, &tmp.aal0); in fetch_stats() 185 copy_aal_stats(&dev->stats.aal34, &tmp.aal34); in fetch_stats() 186 copy_aal_stats(&dev->stats.aal5, &tmp.aal5); in fetch_stats() 190 subtract_aal_stats(&dev->stats.aal0, &tmp.aal0); in fetch_stats() 191 subtract_aal_stats(&dev->stats.aal34, &tmp.aal34); in fetch_stats() 192 subtract_aal_stats(&dev->stats.aal5, &tmp.aal5); in fetch_stats()
|
D | proc.c | 43 const struct k_atm_aal_stats *stats) in add_stats() argument 46 atomic_read(&stats->tx),atomic_read(&stats->tx_err), in add_stats() 47 atomic_read(&stats->rx),atomic_read(&stats->rx_err), in add_stats() 48 atomic_read(&stats->rx_drop)); in add_stats() 59 add_stats(seq, "0", &dev->stats.aal0); in atm_dev_info() 61 add_stats(seq, "5", &dev->stats.aal5); in atm_dev_info()
|
/net/dsa/ |
D | tag_trailer.c | 23 dev->stats.tx_packets++; in trailer_xmit() 24 dev->stats.tx_bytes += skb->len; in trailer_xmit() 101 skb->dev->stats.rx_packets++; in trailer_rcv() 102 skb->dev->stats.rx_bytes += skb->len; in trailer_rcv()
|
D | tag_dsa.c | 23 dev->stats.tx_packets++; in dsa_xmit() 24 dev->stats.tx_bytes += skb->len; in dsa_xmit() 165 skb->dev->stats.rx_packets++; in dsa_rcv() 166 skb->dev->stats.rx_bytes += skb->len; in dsa_rcv()
|
D | tag_edsa.c | 24 dev->stats.tx_packets++; in edsa_xmit() 25 dev->stats.tx_bytes += skb->len; in edsa_xmit() 184 skb->dev->stats.rx_packets++; in edsa_rcv() 185 skb->dev->stats.rx_bytes += skb->len; in edsa_rcv()
|