Home
last modified time | relevance | path

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

/linux-6.6.21/kernel/bpf/
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-6.6.21/include/linux/
Dbpf.h974 struct bpf_offload_dev *offdev; member
2778 void bpf_offload_dev_destroy(struct bpf_offload_dev *offdev);
2779 void *bpf_offload_dev_priv(struct bpf_offload_dev *offdev);
2780 int bpf_offload_dev_netdev_register(struct bpf_offload_dev *offdev,
2782 void bpf_offload_dev_netdev_unregister(struct bpf_offload_dev *offdev,
/linux-6.6.21/drivers/net/netdevsim/
Dbpf.c257 bpf_offload_dev_priv(prog->aux->offload->offdev); in nsim_bpf_verifier_prep()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/bpf/
Doffload.c203 nfp_prog->bpf = bpf_offload_dev_priv(prog->aux->offload->offdev); in nfp_bpf_verifier_prep()