Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/hyperv/
Dnetvsc_drv.c85 struct netvsc_device *nvdev; in netvsc_set_rx_mode() local
94 nvdev = rcu_dereference(ndev_ctx->nvdev); in netvsc_set_rx_mode()
95 if (nvdev) in netvsc_set_rx_mode()
96 rndis_filter_update(nvdev); in netvsc_set_rx_mode()
113 struct netvsc_device *nvdev = rtnl_dereference(ndev_ctx->nvdev); in netvsc_open() local
120 ret = rndis_filter_open(nvdev); in netvsc_open()
126 rdev = nvdev->extension; in netvsc_open()
129 netvsc_tx_enable(nvdev, net); in netvsc_open()
146 static int netvsc_wait_until_empty(struct netvsc_device *nvdev) in netvsc_wait_until_empty() argument
155 for (i = 0; i < nvdev->num_chn; i++) { in netvsc_wait_until_empty()
[all …]
Dnetvsc_bpf.c119 struct bpf_prog *netvsc_xdp_get(struct netvsc_device *nvdev) in netvsc_xdp_get() argument
121 return rtnl_dereference(nvdev->chan_table[0].bpf_prog); in netvsc_xdp_get()
126 struct netvsc_device *nvdev) in netvsc_xdp_set() argument
131 old_prog = netvsc_xdp_get(nvdev); in netvsc_xdp_set()
153 bpf_prog_add(prog, nvdev->num_chn - 1); in netvsc_xdp_set()
155 for (i = 0; i < nvdev->num_chn; i++) in netvsc_xdp_set()
156 rcu_assign_pointer(nvdev->chan_table[i].bpf_prog, prog); in netvsc_xdp_set()
159 for (i = 0; i < nvdev->num_chn; i++) in netvsc_xdp_set()
197 struct netvsc_device *nvdev = rtnl_dereference(ndevctx->nvdev); in netvsc_bpf() local
202 if (!nvdev || nvdev->destroy) { in netvsc_bpf()
[all …]
Drndis_filter.c289 struct netvsc_device *nvdev, in rndis_filter_receive_response() argument
294 struct rndis_device *dev = nvdev->extension; in rndis_filter_receive_response()
483 struct netvsc_device *nvdev, in rndis_filter_receive_data() argument
576 ret = netvsc_recv_callback(ndev, nvdev, nvchan); in rndis_filter_receive_data()
639 struct netvsc_device *nvdev, in rndis_filter_query_device() argument
669 u32 nvsp_version = nvdev->nvsp_version; in rndis_filter_query_device()
797 int rndis_filter_set_device_mac(struct netvsc_device *nvdev, in rndis_filter_set_device_mac() argument
800 struct rndis_device *rdev = nvdev->extension; in rndis_filter_set_device_mac()
863 struct netvsc_device *nvdev, in rndis_filter_set_offload_params() argument
866 struct rndis_device *rdev = nvdev->extension; in rndis_filter_set_offload_params()
[all …]
Dnetvsc.c39 struct netvsc_device *nv_dev = rtnl_dereference(net_device_ctx->nvdev); in netvsc_switch_datapath()
99 struct netvsc_device *nvdev = in netvsc_subchan_work() local
110 rdev = nvdev->extension; in netvsc_subchan_work()
112 ret = rndis_set_subchannel(rdev->ndev, nvdev, NULL); in netvsc_subchan_work()
117 for (i = 1; i < nvdev->num_chn; i++) in netvsc_subchan_work()
118 netif_napi_del(&nvdev->chan_table[i].napi); in netvsc_subchan_work()
120 nvdev->max_chn = 1; in netvsc_subchan_work()
121 nvdev->num_chn = 1; in netvsc_subchan_work()
152 struct netvsc_device *nvdev in free_netvsc_device() local
156 kfree(nvdev->extension); in free_netvsc_device()
[all …]
Dhyperv_net.h236 struct netvsc_device *nvdev,
245 struct bpf_prog *netvsc_xdp_get(struct netvsc_device *nvdev);
248 struct netvsc_device *nvdev);
255 struct netvsc_device *nvdev,
257 int rndis_filter_open(struct netvsc_device *nvdev);
258 int rndis_filter_close(struct netvsc_device *nvdev);
261 void rndis_filter_update(struct netvsc_device *nvdev);
263 struct netvsc_device *nvdev);
267 struct netvsc_device *nvdev,
1019 struct netvsc_device __rcu *nvdev; member