Searched refs:nvchan (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/net/hyperv/ |
H A D | netvsc.c | 323 struct netvsc_channel *nvchan = &net_device->chan_table[q_idx]; in netvsc_alloc_recv_comp_ring() local 324 int node = cpu_to_node(nvchan->channel->target_cpu); in netvsc_alloc_recv_comp_ring() 328 nvchan->mrc.slots = vzalloc_node(size, node); in netvsc_alloc_recv_comp_ring() 329 if (!nvchan->mrc.slots) in netvsc_alloc_recv_comp_ring() 330 nvchan->mrc.slots = vzalloc(size); in netvsc_alloc_recv_comp_ring() 332 return nvchan->mrc.slots ? 0 : -ENOMEM; in netvsc_alloc_recv_comp_ring() 438 struct netvsc_channel *nvchan = &net_device->chan_table[i]; in netvsc_init_buf() local 440 nvchan->recv_buf = kzalloc(net_device->recv_section_size, GFP_KERNEL); in netvsc_init_buf() 441 if (nvchan->recv_buf == NULL) { in netvsc_init_buf() 1060 struct netvsc_channel * const nvchan = in netvsc_send_pkt() local [all …]
|
H A D | rndis_filter.c | 444 void rsc_add_data(struct netvsc_channel *nvchan, in rsc_add_data() argument 450 u32 cnt = nvchan->rsc.cnt; in rsc_add_data() 453 nvchan->rsc.pktlen += len; in rsc_add_data() 460 memcpy(&nvchan->rsc.vlan, vlan, sizeof(*vlan)); in rsc_add_data() 461 nvchan->rsc.ppi_flags |= NVSC_RSC_VLAN; in rsc_add_data() 463 nvchan->rsc.ppi_flags &= ~NVSC_RSC_VLAN; in rsc_add_data() 466 memcpy(&nvchan->rsc.csum_info, csum_info, sizeof(*csum_info)); in rsc_add_data() 467 nvchan->rsc.ppi_flags |= NVSC_RSC_CSUM_INFO; in rsc_add_data() 469 nvchan->rsc.ppi_flags &= ~NVSC_RSC_CSUM_INFO; in rsc_add_data() 471 nvchan->rsc.pktlen = len; in rsc_add_data() [all …]
|
H A D | netvsc_bpf.c | 24 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 D | netvsc_drv.c | 786 struct netvsc_channel *nvchan, in netvsc_alloc_recv_skb() argument 789 struct napi_struct *napi = &nvchan->napi; in netvsc_alloc_recv_skb() 790 const struct ndis_pkt_8021q_info *vlan = &nvchan->rsc.vlan; in netvsc_alloc_recv_skb() 792 &nvchan->rsc.csum_info; in netvsc_alloc_recv_skb() 793 const u32 *hash_info = &nvchan->rsc.hash_info; in netvsc_alloc_recv_skb() 794 u8 ppi_flags = nvchan->rsc.ppi_flags; in netvsc_alloc_recv_skb() 815 skb = napi_alloc_skb(napi, nvchan->rsc.pktlen); in netvsc_alloc_recv_skb() 823 for (i = 0; i < nvchan->rsc.cnt; i++) in netvsc_alloc_recv_skb() 824 skb_put_data(skb, nvchan->rsc.data[i], in netvsc_alloc_recv_skb() 825 nvchan->rsc.len[i]); in netvsc_alloc_recv_skb() [all …]
|
H A D | hyperv_net.h | 239 struct netvsc_channel *nvchan); 244 u32 netvsc_run_xdp(struct net_device *ndev, struct netvsc_channel *nvchan, 273 struct netvsc_channel *nvchan,
|