Home
last modified time | relevance | path

Searched refs:pkts (Results 1 – 25 of 175) sorted by relevance

1234567

/linux-6.1.9/lib/dim/
Dnet_dim.c21 {.usec = 1, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \
22 {.usec = 8, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \
23 {.usec = 64, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \
24 {.usec = 128, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,}, \
25 {.usec = 256, .pkts = NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE,} \
29 {.usec = 2, .pkts = 256,}, \
30 {.usec = 8, .pkts = 128,}, \
31 {.usec = 16, .pkts = 64,}, \
32 {.usec = 32, .pkts = 64,}, \
33 {.usec = 64, .pkts = 64,} \
[all …]
/linux-6.1.9/drivers/bluetooth/
Dh4_recv.h45 const struct h4_recv_pkt *pkts, in h4_recv_buf() argument
57 if (buffer[0] != (&pkts[i])->type) in h4_recv_buf()
60 skb = bt_skb_alloc((&pkts[i])->maxlen, in h4_recv_buf()
65 hci_skb_pkt_type(skb) = (&pkts[i])->type; in h4_recv_buf()
66 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf()
89 if (hci_skb_pkt_type(skb) == (&pkts[i])->type) in h4_recv_buf()
98 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
101 switch ((&pkts[i])->lsize) { in h4_recv_buf()
108 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf()
119 (&pkts[i])->loff); in h4_recv_buf()
[all …]
Dhci_h4.c156 const struct h4_recv_pkt *pkts, int pkts_count) in h4_recv_buf() argument
178 if (buffer[0] != (&pkts[i])->type) in h4_recv_buf()
181 skb = bt_skb_alloc((&pkts[i])->maxlen, in h4_recv_buf()
186 hci_skb_pkt_type(skb) = (&pkts[i])->type; in h4_recv_buf()
187 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf()
210 if (hci_skb_pkt_type(skb) == (&pkts[i])->type) in h4_recv_buf()
219 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
222 switch ((&pkts[i])->lsize) { in h4_recv_buf()
229 dlen = skb->data[(&pkts[i])->loff]; in h4_recv_buf()
240 (&pkts[i])->loff); in h4_recv_buf()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dl4lb_all.c16 __u64 pkts; in test_l4lb() member
27 __u64 bytes = 0, pkts = 0; in test_l4lb() local
81 pkts += stats[i].pkts; in test_l4lb()
84 pkts != NUM_ITER * 2)) in test_l4lb()
85 printf("test_l4lb:FAIL:stats %lld %lld\n", bytes, pkts); in test_l4lb()
Dxdp_noinline.c18 __u64 pkts; in test_xdp_noinline() member
29 __u64 bytes = 0, pkts = 0; in test_xdp_noinline() local
68 pkts += stats[i].pkts; in test_xdp_noinline()
71 ASSERT_EQ(pkts, NUM_ITER * 2, "stats pkts"); in test_xdp_noinline()
/linux-6.1.9/tools/testing/selftests/drivers/net/netdevsim/
Dhw_stats_l3.sh318 local pkts=$(get_hwstat dummy1 l3 rx.packets)
319 ((pkts < 10))
324 local pkts=$(get_hwstat dummy1 l3 rx.packets)
325 ((pkts >= 20))
333 local pkts=$(get_hwstat dummy1 l3 rx.packets)
334 ((pkts < 10))
345 local pkts=$(get_hwstat dummy1 l3 rx.packets)
346 ((pkts < 10))
390 local pkts=$(get_hwstat dummy1 l3 rx.packets)
391 ((pkts < 10))
[all …]
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/
Dhinic_rx.c58 rxq_stats->pkts = 0; in hinic_rxq_clean_stats()
78 stats->pkts = rxq_stats->pkts; in hinic_rxq_get_stats()
364 int num_wqes, pkts = 0; in rxq_recv() local
376 while (pkts < budget) { in rxq_recv()
426 pkts++; in rxq_recv()
450 rxq->rxq_stats.pkts += pkts; in rxq_recv()
454 return pkts; in rxq_recv()
462 int pkts; in rx_poll() local
464 pkts = rxq_recv(rxq, budget); in rx_poll()
465 if (pkts >= budget) in rx_poll()
[all …]
Dhinic_tx.c82 txq_stats->pkts = 0; in hinic_txq_clean_stats()
103 stats->pkts = txq_stats->pkts; in hinic_txq_get_stats()
707 int nr_sges, pkts = 0; in free_tx_poll() local
733 pkts++; in free_tx_poll()
742 } while (pkts < budget); in free_tx_poll()
761 txq->txq_stats.pkts += pkts; in free_tx_poll()
764 if (pkts < budget) { in free_tx_poll()
771 return pkts; in free_tx_poll()
/linux-6.1.9/net/netfilter/
Dxt_connbytes.c28 u_int64_t pkts = 0; in connbytes_mt() local
74 pkts = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets); in connbytes_mt()
78 pkts = atomic64_read(&counters[IP_CT_DIR_REPLY].packets); in connbytes_mt()
83 pkts = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets) + in connbytes_mt()
87 if (pkts != 0) in connbytes_mt()
88 what = div64_u64(bytes, pkts); in connbytes_mt()
Dnfnetlink_acct.c30 atomic64_t pkts; member
89 atomic64_set(&matching->pkts, 0); in nfnl_acct_new()
133 atomic64_set(&nfacct->pkts, in nfnl_acct_new()
147 u64 pkts, bytes; in nfnl_acct_fill_info() local
161 pkts = atomic64_xchg(&acct->pkts, 0); in nfnl_acct_fill_info()
167 pkts = atomic64_read(&acct->pkts); in nfnl_acct_fill_info()
170 if (nla_put_be64(skb, NFACCT_PKTS, cpu_to_be64(pkts), in nfnl_acct_fill_info()
455 atomic64_inc(&nfacct->pkts); in nfnl_acct_update()
490 atomic64_read(&nfacct->pkts) : atomic64_read(&nfacct->bytes); in nfnl_acct_overquota()
/linux-6.1.9/tools/testing/selftests/net/forwarding/
Dpedit_ip.sh133 local pkts
134 pkts=$(busywait "$TC_HIT_TIMEOUT" until_counter_is ">= 10" \
136 check_err $? "Expected to get 10 packets, but got $pkts."
138 pkts=$(tc_rule_handle_stats_get "$pedit_locus" 101)
139 ((pkts >= 10))
140 check_err $? "Expected to get 10 packets on pedit rule, but got $pkts."
Dpedit_l4port.sh138 local pkts
139 pkts=$(busywait "$TC_HIT_TIMEOUT" until_counter_is ">= 10" \
141 check_err $? "Expected to get 10 packets, but got $pkts."
143 pkts=$(tc_rule_handle_stats_get "$pedit_locus" 101)
144 ((pkts >= 10))
145 check_err $? "Expected to get 10 packets on pedit rule, but got $pkts."
Dpedit_dsfield.sh134 local pkts
135 pkts=$(busywait "$TC_HIT_TIMEOUT" until_counter_is ">= 10" \
137 check_err $? "Expected to get 10 packets on test probe, but got $pkts."
139 pkts=$(tc_rule_handle_stats_get "$pedit_locus" 101)
140 ((pkts >= 10))
141 check_err $? "Expected to get 10 packets on pedit rule, but got $pkts."
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Dqos_conf.c372 curr_stats->pkts = be64_to_cpu(msg->pass_pkts) + in nfp_flower_stats_rlim_reply()
378 prev_stats->pkts = curr_stats->pkts; in nfp_flower_stats_rlim_reply()
491 diff_pkts = curr_stats->pkts - prev_stats->pkts; in nfp_flower_stats_rate_limiter()
493 prev_stats->pkts = curr_stats->pkts; in nfp_flower_stats_rate_limiter()
804 meter_entry->stats.curr.pkts = be64_to_cpu(msg->pass_pkts) + in nfp_act_stats_reply()
810 meter_entry->stats.prev.pkts = meter_entry->stats.curr.pkts; in nfp_act_stats_reply()
842 diff_pkts = meter_entry->stats.curr.pkts > meter_entry->stats.prev.pkts ? in nfp_act_stats_actions()
843 meter_entry->stats.curr.pkts - meter_entry->stats.prev.pkts : 0; in nfp_act_stats_actions()
853 meter_entry->stats.prev.pkts = meter_entry->stats.curr.pkts; in nfp_act_stats_actions()
/linux-6.1.9/tools/testing/selftests/bpf/
Dxskxceiver.c579 return &pkt_stream->pkts[pkt_nb]; in pkt_stream_get_pkt()
586 if (pkt_stream->pkts[pkt_stream->rx_pkt_nb].valid) in pkt_stream_get_next_rx_pkt()
587 return &pkt_stream->pkts[pkt_stream->rx_pkt_nb++]; in pkt_stream_get_next_rx_pkt()
595 free(pkt_stream->pkts); in pkt_stream_delete()
623 pkt_stream->pkts = calloc(nb_pkts, sizeof(*pkt_stream->pkts)); in __pkt_stream_alloc()
624 if (!pkt_stream->pkts) { in __pkt_stream_alloc()
654 pkt_set(umem, &pkt_stream->pkts[i], (i % umem->num_frames) * umem->frame_size, in pkt_stream_generate()
656 pkt_stream->pkts[i].payload = i; in pkt_stream_generate()
665 return pkt_stream_generate(umem, pkt_stream->nb_pkts, pkt_stream->pkts[0].len); in pkt_stream_clone()
687 pkt_set(umem, &pkt_stream->pkts[i], in __pkt_stream_replace_half()
[all …]
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_mirror.c116 new_stats.rx_packets - old_stats->pkts, in lan966x_mirror_port_stats()
122 old_stats->pkts = new_stats.rx_packets; in lan966x_mirror_port_stats()
128 new_stats.tx_packets - old_stats->pkts, in lan966x_mirror_port_stats()
134 old_stats->pkts = new_stats.tx_packets; in lan966x_mirror_port_stats()
Dlan966x_police.c177 old_stats->pkts = new_stats.rx_packets; in lan966x_police_port_add()
226 new_stats.rx_packets - old_stats->pkts, in lan966x_police_port_stats()
232 old_stats->pkts = new_stats.rx_packets; in lan966x_police_port_stats()
/linux-6.1.9/net/tipc/
Dbcast.c259 int tipc_bcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_bcast_xmit() argument
269 rc = tipc_link_xmit(l, pkts, &xmitq); in tipc_bcast_xmit()
272 __skb_queue_purge(pkts); in tipc_bcast_xmit()
288 static int tipc_rcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_rcast_xmit() argument
295 selector = msg_link_selector(buf_msg(skb_peek(pkts))); in tipc_rcast_xmit()
300 if (!tipc_msg_pskb_copy(dnode, pkts, &_pkts)) in tipc_rcast_xmit()
378 int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_mcast_xmit() argument
392 if (dests->local && !tipc_msg_reassemble(pkts, &localq)) { in tipc_mcast_xmit()
400 skb = skb_peek(pkts); in tipc_mcast_xmit()
417 rc = tipc_rcast_xmit(net, pkts, dests, cong_link_cnt); in tipc_mcast_xmit()
[all …]
Dbearer.h245 void tipc_clone_to_loopback(struct net *net, struct sk_buff_head *pkts);
250 struct sk_buff_head *pkts) in tipc_loopback_trace() argument
253 tipc_clone_to_loopback(net, pkts); in tipc_loopback_trace()
/linux-6.1.9/net/vmw_vsock/
Dvsock_loopback.c124 LIST_HEAD(pkts); in vsock_loopback_work()
127 list_splice_init(&vsock->pkt_list, &pkts); in vsock_loopback_work()
130 while (!list_empty(&pkts)) { in vsock_loopback_work()
133 pkt = list_first_entry(&pkts, struct virtio_vsock_pkt, list); in vsock_loopback_work()
/linux-6.1.9/drivers/usb/host/
Dxhci-mtk-sch.c315 sch_ep->pkts = max_burst + 1; in setup_sch_info()
316 sch_ep->bw_cost_per_microframe = maxpkt * sch_ep->pkts; in setup_sch_info()
331 sch_ep->pkts = esit_pkts; in setup_sch_info()
338 sch_ep->pkts = esit_pkts; in setup_sch_info()
340 sch_ep->pkts = 1; in setup_sch_info()
342 sch_ep->pkts = roundup_pow_of_two(esit_pkts) in setup_sch_info()
346 DIV_ROUND_UP(esit_pkts, sch_ep->pkts); in setup_sch_info()
350 sch_ep->bw_cost_per_microframe = maxpkt * sch_ep->pkts; in setup_sch_info()
352 sch_ep->pkts = 1; /* at most one packet for each microframe */ in setup_sch_info()
711 ep_ctx->reserved[0] = cpu_to_le32(EP_BPKTS(sch_ep->pkts) in xhci_mtk_check_bandwidth()
[all …]
/linux-6.1.9/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c235 stats->pkts++; in ionic_rx_clean()
448 u64 pkts, bytes; in ionic_dim_update() local
458 pkts = lif->txqstats[qi].pkts; in ionic_dim_update()
462 pkts = lif->rxqstats[qi].pkts; in ionic_dim_update()
466 pkts = lif->txqstats[qi].pkts + lif->rxqstats[qi].pkts; in ionic_dim_update()
472 pkts, bytes, &dim_sample); in ionic_dim_update()
750 int pkts = 0; in ionic_tx_service() local
768 pkts++; in ionic_tx_service()
775 if (pkts && bytes && !unlikely(q->features & IONIC_TXQ_F_HWSTAMP)) in ionic_tx_service()
776 netdev_tx_completed_queue(q_to_ndq(q), pkts, bytes); in ionic_tx_service()
[all …]
/linux-6.1.9/drivers/net/ethernet/fungible/funeth/
Dfuneth_txrx.h44 #define FUN_IRQ_CQ_DB(usec, pkts) \ argument
46 ((pkts) << FUN_DB_INTCOAL_ENTRIES_S))
49 #define FUN_IRQ_SQ_DB(usec, pkts) \ argument
52 ((pkts) << FUN_DB_INTCOAL_ENTRIES_S))
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_repr.c163 u64 pkts, bytes; in ice_repr_sp_stats64() local
167 &pkts, &bytes); in ice_repr_sp_stats64()
168 stats->rx_packets = pkts; in ice_repr_sp_stats64()
173 &pkts, &bytes); in ice_repr_sp_stats64()
174 stats->tx_packets = pkts; in ice_repr_sp_stats64()
/linux-6.1.9/drivers/net/ethernet/
Dlantiq_xrx200.c318 int pkts = 0; in xrx200_tx_housekeeping() local
322 while (pkts < budget) { in xrx200_tx_housekeeping()
328 pkts++; in xrx200_tx_housekeeping()
341 net_dev->stats.tx_packets += pkts; in xrx200_tx_housekeeping()
343 netdev_completed_queue(ch->priv->net_dev, pkts, bytes); in xrx200_tx_housekeeping()
349 if (pkts < budget) { in xrx200_tx_housekeeping()
350 if (napi_complete_done(&ch->napi, pkts)) in xrx200_tx_housekeeping()
354 return pkts; in xrx200_tx_housekeeping()

1234567