Home
last modified time | relevance | path

Searched refs:nvchan (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.1/drivers/net/hyperv/
Dnetvsc.c329 struct netvsc_channel *nvchan = &net_device->chan_table[q_idx]; in netvsc_alloc_recv_comp_ring() local
330 int node = cpu_to_node(nvchan->channel->target_cpu); in netvsc_alloc_recv_comp_ring()
334 nvchan->mrc.slots = vzalloc_node(size, node); in netvsc_alloc_recv_comp_ring()
335 if (!nvchan->mrc.slots) in netvsc_alloc_recv_comp_ring()
336 nvchan->mrc.slots = vzalloc(size); in netvsc_alloc_recv_comp_ring()
338 return nvchan->mrc.slots ? 0 : -ENOMEM; in netvsc_alloc_recv_comp_ring()
456 struct netvsc_channel *nvchan = &net_device->chan_table[i]; in netvsc_init_buf() local
458 nvchan->recv_buf = kzalloc(net_device->recv_section_size, GFP_KERNEL); in netvsc_init_buf()
459 if (nvchan->recv_buf == NULL) { in netvsc_init_buf()
1079 struct netvsc_channel * const nvchan = in netvsc_send_pkt() local
[all …]
Drndis_filter.c443 void rsc_add_data(struct netvsc_channel *nvchan, in rsc_add_data() argument
449 u32 cnt = nvchan->rsc.cnt; in rsc_add_data()
452 nvchan->rsc.pktlen += len; in rsc_add_data()
459 memcpy(&nvchan->rsc.vlan, vlan, sizeof(*vlan)); in rsc_add_data()
460 nvchan->rsc.ppi_flags |= NVSC_RSC_VLAN; in rsc_add_data()
462 nvchan->rsc.ppi_flags &= ~NVSC_RSC_VLAN; in rsc_add_data()
465 memcpy(&nvchan->rsc.csum_info, csum_info, sizeof(*csum_info)); in rsc_add_data()
466 nvchan->rsc.ppi_flags |= NVSC_RSC_CSUM_INFO; in rsc_add_data()
468 nvchan->rsc.ppi_flags &= ~NVSC_RSC_CSUM_INFO; in rsc_add_data()
470 nvchan->rsc.pktlen = len; in rsc_add_data()
[all …]
Dnetvsc_bpf.c24 u32 netvsc_run_xdp(struct net_device *ndev, struct netvsc_channel *nvchan, in netvsc_run_xdp() argument
27 struct netvsc_stats_rx *rx_stats = &nvchan->rx_stats; in netvsc_run_xdp()
28 void *data = nvchan->rsc.data[0]; in netvsc_run_xdp()
29 u32 len = nvchan->rsc.len[0]; in netvsc_run_xdp()
38 prog = rcu_dereference(nvchan->bpf_prog); in netvsc_run_xdp()
56 xdp_init_buff(xdp, PAGE_SIZE, &nvchan->xdp_rxq); in netvsc_run_xdp()
74 nvchan->xdp_flush = true; in netvsc_run_xdp()
81 rx_stats->bytes += nvchan->rsc.pktlen; in netvsc_run_xdp()
Dnetvsc_drv.c782 struct netvsc_channel *nvchan, in netvsc_alloc_recv_skb() argument
785 struct napi_struct *napi = &nvchan->napi; in netvsc_alloc_recv_skb()
786 const struct ndis_pkt_8021q_info *vlan = &nvchan->rsc.vlan; in netvsc_alloc_recv_skb()
788 &nvchan->rsc.csum_info; in netvsc_alloc_recv_skb()
789 const u32 *hash_info = &nvchan->rsc.hash_info; in netvsc_alloc_recv_skb()
790 u8 ppi_flags = nvchan->rsc.ppi_flags; in netvsc_alloc_recv_skb()
811 skb = napi_alloc_skb(napi, nvchan->rsc.pktlen); in netvsc_alloc_recv_skb()
819 for (i = 0; i < nvchan->rsc.cnt; i++) in netvsc_alloc_recv_skb()
820 skb_put_data(skb, nvchan->rsc.data[i], in netvsc_alloc_recv_skb()
821 nvchan->rsc.len[i]); in netvsc_alloc_recv_skb()
[all …]
Dhyperv_net.h237 struct netvsc_channel *nvchan);
242 u32 netvsc_run_xdp(struct net_device *ndev, struct netvsc_channel *nvchan,
271 struct netvsc_channel *nvchan,