Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/hyperv/
Dnetvsc.c283 struct netvsc_channel *nvchan = &net_device->chan_table[q_idx]; in netvsc_alloc_recv_comp_ring() local
284 int node = cpu_to_node(nvchan->channel->target_cpu); in netvsc_alloc_recv_comp_ring()
288 nvchan->mrc.slots = vzalloc_node(size, node); in netvsc_alloc_recv_comp_ring()
289 if (!nvchan->mrc.slots) in netvsc_alloc_recv_comp_ring()
290 nvchan->mrc.slots = vzalloc(size); in netvsc_alloc_recv_comp_ring()
292 return nvchan->mrc.slots ? 0 : -ENOMEM; in netvsc_alloc_recv_comp_ring()
813 struct netvsc_channel * const nvchan = in netvsc_send_pkt() local
815 struct vmbus_channel *out_channel = nvchan->channel; in netvsc_send_pkt()
858 atomic_inc_return(&nvchan->queue_sends); in netvsc_send_pkt()
875 atomic_read(&nvchan->queue_sends) < 1 && in netvsc_send_pkt()
[all …]
Drndis_filter.c358 void rsc_add_data(struct netvsc_channel *nvchan, in rsc_add_data() argument
363 u32 cnt = nvchan->rsc.cnt; in rsc_add_data()
366 nvchan->rsc.pktlen += len; in rsc_add_data()
368 nvchan->rsc.vlan = vlan; in rsc_add_data()
369 nvchan->rsc.csum_info = csum_info; in rsc_add_data()
370 nvchan->rsc.pktlen = len; in rsc_add_data()
373 nvchan->rsc.data[cnt] = data; in rsc_add_data()
374 nvchan->rsc.len[cnt] = len; in rsc_add_data()
375 nvchan->rsc.cnt++; in rsc_add_data()
380 struct netvsc_channel *nvchan, in rndis_filter_receive_data() argument
[all …]
Dnetvsc_drv.c763 struct netvsc_channel *nvchan) in netvsc_alloc_recv_skb() argument
765 struct napi_struct *napi = &nvchan->napi; in netvsc_alloc_recv_skb()
766 const struct ndis_pkt_8021q_info *vlan = nvchan->rsc.vlan; in netvsc_alloc_recv_skb()
768 nvchan->rsc.csum_info; in netvsc_alloc_recv_skb()
772 skb = napi_alloc_skb(napi, nvchan->rsc.pktlen); in netvsc_alloc_recv_skb()
780 for (i = 0; i < nvchan->rsc.cnt; i++) in netvsc_alloc_recv_skb()
781 skb_put_data(skb, nvchan->rsc.data[i], nvchan->rsc.len[i]); in netvsc_alloc_recv_skb()
823 struct netvsc_channel *nvchan) in netvsc_recv_callback() argument
826 struct vmbus_channel *channel = nvchan->channel; in netvsc_recv_callback()
835 skb = netvsc_alloc_recv_skb(net, nvchan); in netvsc_recv_callback()
[all …]
Dhyperv_net.h198 struct netvsc_channel *nvchan);
219 struct netvsc_channel *nvchan,