Home
last modified time | relevance | path

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

/linux/drivers/net/hyperv/
H A Dnetvsc.c324 struct netvsc_channel *nvchan = &net_device->chan_table[q_idx]; in netvsc_alloc_recv_comp_ring()
325 int node = cpu_to_node(nvchan->channel->target_cpu); in netvsc_alloc_recv_comp_ring()
329 nvchan->mrc.slots = vzalloc_node(size, node); in netvsc_alloc_recv_comp_ring()
330 if (!nvchan->mrc.slots) in netvsc_alloc_recv_comp_ring()
331 nvchan->mrc.slots = vzalloc(size); in netvsc_alloc_recv_comp_ring()
333 return nvchan->mrc.slots ? 0 : -ENOMEM; in netvsc_alloc_recv_comp_ring()
439 struct netvsc_channel *nvchan = &net_device->chan_table[i]; in netvsc_init_buf()
441 nvchan->recv_buf = kzalloc(net_device->recv_section_size, GFP_KERNEL); in netvsc_init_buf()
442 if (nvchan->recv_buf == NULL) { in netvsc_init_buf()
1113 struct netvsc_channel * const nvchan in netvsc_send_pkt()
323 struct netvsc_channel *nvchan = &net_device->chan_table[q_idx]; netvsc_alloc_recv_comp_ring() local
438 struct netvsc_channel *nvchan = &net_device->chan_table[i]; netvsc_init_buf() local
1102 struct netvsc_channel * const nvchan = netvsc_send_pkt() local
1236 struct netvsc_channel *nvchan; netvsc_send() local
1353 send_recv_completions(struct net_device * ndev,struct netvsc_device * nvdev,struct netvsc_channel * nvchan) send_recv_completions() argument
1410 struct netvsc_channel *nvchan = &nvdev->chan_table[q_idx]; enq_receive_complete() local
1438 netvsc_receive(struct net_device * ndev,struct netvsc_device * net_device,struct netvsc_channel * nvchan,const struct vmpacket_descriptor * desc) netvsc_receive() argument
1647 netvsc_process_raw_pkt(struct hv_device * device,struct netvsc_channel * nvchan,struct netvsc_device * net_device,struct net_device * ndev,const struct vmpacket_descriptor * desc,int budget) netvsc_process_raw_pkt() argument
1692 struct netvsc_channel *nvchan netvsc_poll() local
1742 struct netvsc_channel *nvchan = context; netvsc_channel_cb() local
1789 struct netvsc_channel *nvchan = &net_device->chan_table[i]; netvsc_device_add() local
[all...]
H A Drndis_filter.c429 void rsc_add_data(struct netvsc_channel *nvchan, in rsc_add_data() argument
435 u32 cnt = nvchan->rsc.cnt; in rsc_add_data()
438 nvchan->rsc.pktlen += len; in rsc_add_data()
445 memcpy(&nvchan->rsc.vlan, vlan, sizeof(*vlan)); in rsc_add_data()
446 nvchan->rsc.ppi_flags |= NVSC_RSC_VLAN; in rsc_add_data()
448 nvchan->rsc.ppi_flags &= ~NVSC_RSC_VLAN; in rsc_add_data()
451 memcpy(&nvchan->rsc.csum_info, csum_info, sizeof(*csum_info)); in rsc_add_data()
452 nvchan->rsc.ppi_flags |= NVSC_RSC_CSUM_INFO; in rsc_add_data()
454 nvchan->rsc.ppi_flags &= ~NVSC_RSC_CSUM_INFO; in rsc_add_data()
456 nvchan->rsc.pktlen = len; in rsc_add_data()
[all …]
H A 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()
H A Dnetvsc_drv.c753 struct netvsc_channel *nvchan, in netvsc_alloc_recv_skb() argument
756 struct napi_struct *napi = &nvchan->napi; in netvsc_alloc_recv_skb()
757 const struct ndis_pkt_8021q_info *vlan = &nvchan->rsc.vlan; in netvsc_alloc_recv_skb()
759 &nvchan->rsc.csum_info; in netvsc_alloc_recv_skb()
760 const u32 *hash_info = &nvchan->rsc.hash_info; in netvsc_alloc_recv_skb()
761 u8 ppi_flags = nvchan->rsc.ppi_flags; in netvsc_alloc_recv_skb()
782 skb = napi_alloc_skb(napi, nvchan->rsc.pktlen); in netvsc_alloc_recv_skb()
790 for (i = 0; i < nvchan->rsc.cnt; i++) in netvsc_alloc_recv_skb()
791 skb_put_data(skb, nvchan->rsc.data[i], in netvsc_alloc_recv_skb()
792 nvchan->rsc.len[i]); in netvsc_alloc_recv_skb()
[all …]
H A Dhyperv_net.h238 struct netvsc_channel *nvchan);
243 u32 netvsc_run_xdp(struct net_device *ndev, struct netvsc_channel *nvchan,
272 struct netvsc_channel *nvchan,