Home
last modified time | relevance | path

Searched refs:offdev (Results 1 – 4 of 4) sorted by relevance

/linux/kernel/bpf/
H A Doffload.c45 struct bpf_offload_dev *offdev; /* NULL when bound-only */ member
78 static int __bpf_offload_dev_netdev_register(struct bpf_offload_dev *offdev, in __bpf_offload_dev_netdev_register() argument
89 ondev->offdev = offdev; in __bpf_offload_dev_netdev_register()
99 if (offdev) in __bpf_offload_dev_netdev_register()
100 list_add(&ondev->offdev_netdevs, &offdev->netdevs); in __bpf_offload_dev_netdev_register()
113 offload->offdev->ops->destroy(prog); in __bpf_prog_offload_destroy()
145 static void __bpf_offload_dev_netdev_unregister(struct bpf_offload_dev *offdev, in __bpf_offload_dev_netdev_unregister() argument
161 if (offdev) { in __bpf_offload_dev_netdev_unregister()
163 altdev = list_first_entry_or_null(&offdev->netdevs, in __bpf_offload_dev_netdev_unregister()
205 if (bpf_prog_is_offloaded(prog->aux) && (!ondev || !ondev->offdev)) { in __bpf_prog_dev_bound_init()
[all …]
/linux/include/linux/
H A Dbpf.h1019 struct bpf_offload_dev *offdev; member
3005 void bpf_offload_dev_destroy(struct bpf_offload_dev *offdev);
3006 void *bpf_offload_dev_priv(struct bpf_offload_dev *offdev);
3007 int bpf_offload_dev_netdev_register(struct bpf_offload_dev *offdev,
3009 void bpf_offload_dev_netdev_unregister(struct bpf_offload_dev *offdev,
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Doffload.c203 nfp_prog->bpf = bpf_offload_dev_priv(prog->aux->offload->offdev); in nfp_bpf_verifier_prep()
/linux/drivers/net/netdevsim/
H A Dbpf.c257 bpf_offload_dev_priv(prog->aux->offload->offdev); in nsim_bpf_verifier_prep()