Home
last modified time | relevance | path

Searched refs:packets (Results 1 – 25 of 186) sorted by relevance

12345678

/drivers/net/
Dloopback.c94 void dev_lstats_read(struct net_device *dev, u64 *packets, u64 *bytes) in dev_lstats_read() argument
98 *packets = 0; in dev_lstats_read()
109 tpackets = u64_stats_read(&lb_stats->packets); in dev_lstats_read()
113 *packets += tpackets; in dev_lstats_read()
121 u64 packets, bytes; in loopback_get_stats64() local
123 dev_lstats_read(dev, &packets, &bytes); in loopback_get_stats64()
125 stats->rx_packets = packets; in loopback_get_stats64()
126 stats->tx_packets = packets; in loopback_get_stats64()
Dnlmon.c54 u64 packets, bytes; in nlmon_get_stats64() local
56 dev_lstats_read(dev, &packets, &bytes); in nlmon_get_stats64()
58 stats->rx_packets = packets; in nlmon_get_stats64()
Difb.c134 u64 packets, bytes; in ifb_stats64() local
140 packets = txp->rx_packets; in ifb_stats64()
143 stats->rx_packets += packets; in ifb_stats64()
148 packets = txp->tx_packets; in ifb_stats64()
151 stats->tx_packets += packets; in ifb_stats64()
/drivers/net/wireguard/
Dsend.c344 struct sk_buff_head packets; in wg_packet_send_staged_packets() local
348 __skb_queue_head_init(&packets); in wg_packet_send_staged_packets()
350 skb_queue_splice_init(&peer->staged_packet_queue, &packets); in wg_packet_send_staged_packets()
352 if (unlikely(skb_queue_empty(&packets))) in wg_packet_send_staged_packets()
373 skb_queue_walk(&packets, skb) { in wg_packet_send_staged_packets()
384 packets.prev->next = NULL; in wg_packet_send_staged_packets()
386 PACKET_CB(packets.next)->keypair = keypair; in wg_packet_send_staged_packets()
387 wg_packet_create_data(peer, packets.next); in wg_packet_send_staged_packets()
398 skb_queue_walk(&packets, skb) in wg_packet_send_staged_packets()
406 skb_queue_splice(&packets, &peer->staged_packet_queue); in wg_packet_send_staged_packets()
Ddevice.c123 struct sk_buff_head packets; in wg_xmit() local
158 __skb_queue_head_init(&packets); in wg_xmit()
186 __skb_queue_tail(&packets, skb); in wg_xmit()
198 skb_queue_splice_tail(&packets, &peer->staged_packet_queue); in wg_xmit()
/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_counters.c47 u64 packets; member
158 u64 packets = MLX5_GET64(traffic_counter, stats, packets); in update_counter_cache() local
161 if (cache->packets == packets) in update_counter_cache()
164 cache->packets = packets; in update_counter_cache()
316 counter->lastpackets = counter->cache.packets; in mlx5_fc_create()
422 u64 *packets, u64 *bytes) in mlx5_fc_query() argument
424 return mlx5_cmd_fc_query(dev, counter->id, packets, bytes); in mlx5_fc_query()
434 u64 *bytes, u64 *packets, u64 *lastuse) in mlx5_fc_query_cached() argument
441 *packets = c.packets - counter->lastpackets; in mlx5_fc_query_cached()
445 counter->lastpackets = c.packets; in mlx5_fc_query_cached()
Den_stats.c288 s->rx_xsk_packets += xskrq_stats->packets; in mlx5e_stats_grp_sw_update_stats_xskrq()
312 s->rx_packets += rq_stats->packets; in mlx5e_stats_grp_sw_update_stats_rq_stats()
369 s->tx_packets += sq_stats->packets; in mlx5e_stats_grp_sw_update_stats_sq()
627 VPORT_COUNTER_OFF(received_eth_unicast.packets) },
631 VPORT_COUNTER_OFF(transmitted_eth_unicast.packets) },
635 VPORT_COUNTER_OFF(received_eth_multicast.packets) },
639 VPORT_COUNTER_OFF(transmitted_eth_multicast.packets) },
643 VPORT_COUNTER_OFF(received_eth_broadcast.packets) },
647 VPORT_COUNTER_OFF(transmitted_eth_broadcast.packets) },
651 VPORT_COUNTER_OFF(received_ib_unicast.packets) },
[all …]
/drivers/net/ethernet/microsoft/mana/
Dmana_ethtool.c67 u64 packets, bytes; in mana_get_ethtool_stats() local
81 packets = stats->packets; in mana_get_ethtool_stats()
85 data[i++] = packets; in mana_get_ethtool_stats()
94 packets = stats->packets; in mana_get_ethtool_stats()
98 data[i++] = packets; in mana_get_ethtool_stats()
/drivers/net/wireless/marvell/mwifiex/
DREADME65 such as SSID, operating frequency, rx/tx packets, signal strength, tx bitrate.
109 num_tx_pkts = <number of packets sent to device>
110 num_rx_pkts = <number of packets received from device and sent to kernel>
111 num_tx_pkts_dropped = <number of Tx packets dropped by driver>
112 num_rx_pkts_dropped = <number of Rx packets dropped by driver>
113 num_tx_pkts_err = <number of Tx packets failed to send to device>
114 num_rx_pkts_err = <number of Rx packets failed to receive from device>
121 wmm_ac_vo = <number of packets sent to device from WMM AcVo queue>
122 wmm_ac_vi = <number of packets sent to device from WMM AcVi queue>
123 wmm_ac_be = <number of packets sent to device from WMM AcBE queue>
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_matchall.c357 tc_port_matchall->ingress.packets = 0; in cxgb4_matchall_free_filter()
436 u64 tmp_packets, tmp_bytes, packets = 0, bytes = 0; in cxgb4_tc_matchall_stats() local
456 packets += tmp_packets; in cxgb4_tc_matchall_stats()
460 if (tc_port_matchall->ingress.packets != packets) { in cxgb4_tc_matchall_stats()
463 packets - tc_port_matchall->ingress.packets, in cxgb4_tc_matchall_stats()
467 tc_port_matchall->ingress.packets = packets; in cxgb4_tc_matchall_stats()
Dcxgb4_tc_flower.c1020 u64 packets; in ch_flower_stats_handler() local
1032 &packets, &bytes, in ch_flower_stats_handler()
1038 if (ofld_stats->prev_packet_count != packets) { in ch_flower_stats_handler()
1039 ofld_stats->prev_packet_count = packets; in ch_flower_stats_handler()
1066 u64 packets; in cxgb4_tc_flower_stats() local
1077 &packets, &bytes, in cxgb4_tc_flower_stats()
1084 if (ofld_stats->packet_count != packets) { in cxgb4_tc_flower_stats()
1085 if (ofld_stats->prev_packet_count != packets) in cxgb4_tc_flower_stats()
1088 packets - ofld_stats->packet_count, 0, in cxgb4_tc_flower_stats()
1092 ofld_stats->packet_count = packets; in cxgb4_tc_flower_stats()
[all …]
/drivers/net/wireless/marvell/libertas/
Dif_sdio.c122 struct if_sdio_packet *packets; member
407 packet = card->packets; in if_sdio_host_to_card_worker()
409 card->packets = packet->next; in if_sdio_host_to_card_worker()
952 if (!card->packets) in if_sdio_host_to_card()
953 card->packets = packet; in if_sdio_host_to_card()
955 cur = card->packets; in if_sdio_host_to_card()
1238 while (card->packets) { in if_sdio_probe()
1239 packet = card->packets; in if_sdio_probe()
1240 card->packets = card->packets->next; in if_sdio_probe()
1282 while (card->packets) { in if_sdio_remove()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Den_port.c154 unsigned long packets, bytes; in mlx4_en_fold_software_stats() local
160 packets = 0; in mlx4_en_fold_software_stats()
165 packets += READ_ONCE(ring->packets); in mlx4_en_fold_software_stats()
168 dev->stats.rx_packets = packets; in mlx4_en_fold_software_stats()
171 packets = 0; in mlx4_en_fold_software_stats()
176 packets += READ_ONCE(ring->packets); in mlx4_en_fold_software_stats()
179 dev->stats.tx_packets = packets; in mlx4_en_fold_software_stats()
/drivers/infiniband/hw/mlx5/
Dmad.c90 cpu_to_be64(MLX5_SUM_CNT(out, transmitted_ib_unicast.packets, in pma_cnt_ext_assign()
91 transmitted_ib_multicast.packets)); in pma_cnt_ext_assign()
93 cpu_to_be64(MLX5_SUM_CNT(out, received_ib_unicast.packets, in pma_cnt_ext_assign()
94 received_ib_multicast.packets)); in pma_cnt_ext_assign()
97 out, transmitted_ib_unicast.packets); in pma_cnt_ext_assign()
100 out, received_ib_unicast.packets); in pma_cnt_ext_assign()
103 out, transmitted_ib_multicast.packets); in pma_cnt_ext_assign()
106 out, received_ib_multicast.packets); in pma_cnt_ext_assign()
Dib_virt.c141 stats->rx_packets = MLX5_GET64_PR(query_vport_counter_out, out, received_ib_unicast.packets); in mlx5_ib_get_vf_stats()
142 stats->tx_packets = MLX5_GET64_PR(query_vport_counter_out, out, transmitted_ib_unicast.packets); in mlx5_ib_get_vf_stats()
145 stats->multicast = MLX5_GET64_PR(query_vport_counter_out, out, received_ib_multicast.packets); in mlx5_ib_get_vf_stats()
/drivers/net/ethernet/mellanox/mlx5/core/diag/
Den_tc_tracepoint.h63 __field(u64, packets)
68 __entry->packets = f->stats.pkts;
73 __entry->packets, __entry->lastused
/drivers/net/ethernet/intel/iavf/
Diavf_txrx.c142 int packets; in iavf_detect_recover_hung() local
167 packets = tx_ring->stats.packets & INT_MAX; in iavf_detect_recover_hung()
168 if (tx_ring->tx_stats.prev_pkt_ctr == packets) { in iavf_detect_recover_hung()
178 iavf_get_tx_pending(tx_ring, true) ? packets : -1; in iavf_detect_recover_hung()
286 tx_ring->stats.packets += total_packets; in iavf_clean_tx_irq()
421 unsigned int avg_wire_size, packets, bytes, itr; in iavf_update_itr() local
456 packets = rc->total_packets; in iavf_update_itr()
465 if (packets && packets < 4 && bytes < 9000 && in iavf_update_itr()
470 } else if (packets < 4) { in iavf_update_itr()
480 } else if (packets > 32) { in iavf_update_itr()
[all …]
/drivers/net/hyperv/
Dnetvsc_drv.c960 rx_stats->packets++; in netvsc_recv_callback()
1358 u64 packets, bytes; in netvsc_get_pcpu_stats() local
1364 packets = stats->packets; in netvsc_get_pcpu_stats()
1369 this_tot->tx_packets += packets; in netvsc_get_pcpu_stats()
1374 packets = stats->packets; in netvsc_get_pcpu_stats()
1379 this_tot->rx_packets += packets; in netvsc_get_pcpu_stats()
1409 u64 packets, bytes, multicast; in netvsc_get_stats64() local
1415 packets = stats->packets; in netvsc_get_stats64()
1420 t->tx_packets += packets; in netvsc_get_stats64()
1425 packets = stats->packets; in netvsc_get_stats64()
[all …]
/drivers/net/team/
DKconfig22 Basic mode where packets are transmitted always by all suitable ports.
33 Basic mode where port used for transmitting packets is selected in
45 Basic mode where port used for transmitting packets is selected
/drivers/usb/usbip/
Dvudc_rx.c125 unsigned int maxp, packets, bytes; in v_recv_cmd_submit() local
130 packets = DIV_ROUND_UP(bytes, maxp); in v_recv_cmd_submit()
133 pdu->u.cmd_submit.number_of_packets > packets) { in v_recv_cmd_submit()
/drivers/net/ethernet/ni/
Dnixge.c466 u32 packets = 0; in nixge_start_xmit_done() local
479 packets++; in nixge_start_xmit_done()
488 ndev->stats.tx_packets += packets; in nixge_start_xmit_done()
491 if (packets) in nixge_start_xmit_done()
601 u32 packets = 0; in nixge_recv() local
608 budget > packets)) { in nixge_recv()
637 packets++; in nixge_recv()
642 return packets; in nixge_recv()
661 ndev->stats.rx_packets += packets; in nixge_recv()
667 return packets; in nixge_recv()
/drivers/net/wireless/broadcom/b43/
Dpio.c72 if (B43_WARN_ON(pack_index >= ARRAY_SIZE(q->packets))) in parse_cookie()
74 *pack = &q->packets[pack_index]; in parse_cookie()
148 for (i = 0; i < ARRAY_SIZE(q->packets); i++) { in b43_setup_pioqueue_tx()
149 p = &(q->packets[i]); in b43_setup_pioqueue_tx()
183 for (i = 0; i < ARRAY_SIZE(q->packets); i++) { in b43_pio_cancel_tx_packets()
184 pack = &(q->packets[i]); in b43_pio_cancel_tx_packets()
/drivers/net/usb/
Dgl620a.c64 struct gl_packet packets; member
91 packet = &header->packets; in genelink_rx_fixup()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dhv_vhca_stats.c24 data->rx_packets = stats->rq.packets; in mlx5e_hv_vhca_fill_ring_stats()
28 data->tx_packets += stats->sq[tc].packets; in mlx5e_hv_vhca_fill_ring_stats()
/drivers/net/ethernet/aquantia/atlantic/
Daq_ring.h94 u64 packets; member
109 u64 packets; member

12345678