Searched refs:nvchan (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/drivers/net/hyperv/ |
D | netvsc.c | 285 struct netvsc_channel *nvchan = &net_device->chan_table[q_idx]; in netvsc_alloc_recv_comp_ring() local 286 int node = cpu_to_node(nvchan->channel->target_cpu); in netvsc_alloc_recv_comp_ring() 290 nvchan->mrc.slots = vzalloc_node(size, node); in netvsc_alloc_recv_comp_ring() 291 if (!nvchan->mrc.slots) in netvsc_alloc_recv_comp_ring() 292 nvchan->mrc.slots = vzalloc(size); in netvsc_alloc_recv_comp_ring() 294 return nvchan->mrc.slots ? 0 : -ENOMEM; in netvsc_alloc_recv_comp_ring() 871 struct netvsc_channel * const nvchan = in netvsc_send_pkt() local 873 struct vmbus_channel *out_channel = nvchan->channel; in netvsc_send_pkt() 916 atomic_inc_return(&nvchan->queue_sends); in netvsc_send_pkt() 933 atomic_read(&nvchan->queue_sends) < 1 && in netvsc_send_pkt() [all …]
|
D | rndis_filter.c | 393 void rsc_add_data(struct netvsc_channel *nvchan, in rsc_add_data() argument 399 u32 cnt = nvchan->rsc.cnt; in rsc_add_data() 402 nvchan->rsc.pktlen += len; in rsc_add_data() 404 nvchan->rsc.vlan = vlan; in rsc_add_data() 405 nvchan->rsc.csum_info = csum_info; in rsc_add_data() 406 nvchan->rsc.pktlen = len; in rsc_add_data() 407 nvchan->rsc.hash_info = hash_info; in rsc_add_data() 410 nvchan->rsc.data[cnt] = data; in rsc_add_data() 411 nvchan->rsc.len[cnt] = len; in rsc_add_data() 412 nvchan->rsc.cnt++; in rsc_add_data() [all …]
|
D | netvsc_bpf.c | 23 u32 netvsc_run_xdp(struct net_device *ndev, struct netvsc_channel *nvchan, in netvsc_run_xdp() argument 26 void *data = nvchan->rsc.data[0]; in netvsc_run_xdp() 27 u32 len = nvchan->rsc.len[0]; in netvsc_run_xdp() 35 prog = rcu_dereference(nvchan->bpf_prog); in netvsc_run_xdp() 51 xdp->rxq = &nvchan->xdp_rxq; in netvsc_run_xdp()
|
D | netvsc_drv.c | 814 struct netvsc_channel *nvchan, in netvsc_alloc_recv_skb() argument 817 struct napi_struct *napi = &nvchan->napi; in netvsc_alloc_recv_skb() 818 const struct ndis_pkt_8021q_info *vlan = nvchan->rsc.vlan; in netvsc_alloc_recv_skb() 820 nvchan->rsc.csum_info; in netvsc_alloc_recv_skb() 821 const u32 *hash_info = nvchan->rsc.hash_info; in netvsc_alloc_recv_skb() 842 skb = napi_alloc_skb(napi, nvchan->rsc.pktlen); in netvsc_alloc_recv_skb() 850 for (i = 0; i < nvchan->rsc.cnt; i++) in netvsc_alloc_recv_skb() 851 skb_put_data(skb, nvchan->rsc.data[i], in netvsc_alloc_recv_skb() 852 nvchan->rsc.len[i]); in netvsc_alloc_recv_skb() 897 struct netvsc_channel *nvchan) in netvsc_recv_callback() argument [all …]
|
D | hyperv_net.h | 200 struct netvsc_channel *nvchan); 204 u32 netvsc_run_xdp(struct net_device *ndev, struct netvsc_channel *nvchan, 231 struct netvsc_channel *nvchan,
|