Home
last modified time | relevance | path

Searched refs:vf_netdev (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/drivers/net/hyperv/
Dnetvsc_drv.c64 struct net_device *vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev); in netvsc_change_rx_flags() local
67 if (!vf_netdev) in netvsc_change_rx_flags()
72 dev_set_promiscuity(vf_netdev, inc); in netvsc_change_rx_flags()
77 dev_set_allmulti(vf_netdev, inc); in netvsc_change_rx_flags()
84 struct net_device *vf_netdev; in netvsc_set_rx_mode() local
88 vf_netdev = rcu_dereference(ndev_ctx->vf_netdev); in netvsc_set_rx_mode()
89 if (vf_netdev) { in netvsc_set_rx_mode()
90 dev_uc_sync(vf_netdev, net); in netvsc_set_rx_mode()
91 dev_mc_sync(vf_netdev, net); in netvsc_set_rx_mode()
112 struct net_device *vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev); in netvsc_open() local
[all …]
Dnetvsc_bpf.c165 int netvsc_vf_setxdp(struct net_device *vf_netdev, struct bpf_prog *prog) in netvsc_vf_setxdp() argument
172 if (!vf_netdev) in netvsc_vf_setxdp()
175 if (!vf_netdev->netdev_ops->ndo_bpf) in netvsc_vf_setxdp()
186 ret = vf_netdev->netdev_ops->ndo_bpf(vf_netdev, &xdp); in netvsc_vf_setxdp()
198 struct net_device *vf_netdev = rtnl_dereference(ndevctx->vf_netdev); in netvsc_bpf() local
213 ret = netvsc_vf_setxdp(vf_netdev, bpf->prog); in netvsc_bpf()
254 struct net_device *vf_netdev; in netvsc_ndoxdp_xmit() local
267 vf_netdev = rcu_dereference_bh(ndev_ctx->vf_netdev); in netvsc_ndoxdp_xmit()
268 if (vf_netdev && netif_running(vf_netdev) && in netvsc_ndoxdp_xmit()
269 netif_carrier_ok(vf_netdev) && !netpoll_tx_running(ndev) && in netvsc_ndoxdp_xmit()
[all …]
Dhyperv_net.h249 int netvsc_vf_setxdp(struct net_device *vf_netdev, struct bpf_prog *prog);
1046 struct net_device __rcu *vf_netdev; member