Home
last modified time | relevance | path

Searched refs:netdev (Results 1 – 2 of 2) sorted by relevance

/kernel/bpf/
Doffload.c43 struct net_device *netdev; member
53 .key_offset = offsetof(struct bpf_offload_netdev, netdev),
61 static int bpf_dev_offload_check(struct net_device *netdev) in bpf_dev_offload_check() argument
63 if (!netdev) in bpf_dev_offload_check()
65 if (!netdev->netdev_ops->ndo_bpf) in bpf_dev_offload_check()
71 bpf_offload_find_netdev(struct net_device *netdev) in bpf_offload_find_netdev() argument
77 return rhashtable_lookup_fast(&offdevs, &netdev, offdevs_params); in bpf_offload_find_netdev()
99 offload->netdev = dev_get_by_index(current->nsproxy->net_ns, in bpf_prog_offload_init()
101 err = bpf_dev_offload_check(offload->netdev); in bpf_prog_offload_init()
106 ondev = bpf_offload_find_netdev(offload->netdev); in bpf_prog_offload_init()
[all …]
Ddevmap.c744 struct net_device *netdev) in dev_map_hash_remove_netdev() argument
758 if (netdev != dev->dev) in dev_map_hash_remove_netdev()
772 struct net_device *netdev = netdev_notifier_info_to_dev(ptr); in dev_map_notification() local
786 dev_map_hash_remove_netdev(dtab, netdev); in dev_map_notification()
794 if (!dev || netdev != dev->dev) in dev_map_notification()