Searched refs:netdev (Results 1 – 2 of 2) sorted by relevance
43 struct net_device *netdev; member53 .key_offset = offsetof(struct bpf_offload_netdev, netdev),61 static int bpf_dev_offload_check(struct net_device *netdev) in bpf_dev_offload_check() argument63 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() argument77 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 …]
744 struct net_device *netdev) in dev_map_hash_remove_netdev() argument758 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() local786 dev_map_hash_remove_netdev(dtab, netdev); in dev_map_notification()794 if (!dev || netdev != dev->dev) in dev_map_notification()