1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2023 Isovalent */
9 int netkit_prog_attach(const union bpf_attr
*attr
, struct bpf_prog
*prog
);
10 int netkit_link_attach(const union bpf_attr
*attr
, struct bpf_prog
*prog
);
11 int netkit_prog_detach(const union bpf_attr
*attr
, struct bpf_prog
*prog
);
12 int netkit_prog_query(const union bpf_attr
*attr
, union bpf_attr __user
*uattr
);
13 INDIRECT_CALLABLE_DECLARE(struct net_device
*netkit_peer_dev(struct net_device
*dev
));
15 static inline int netkit_prog_attach(const union bpf_attr
*attr
,
16 struct bpf_prog
*prog
)
21 static inline int netkit_link_attach(const union bpf_attr
*attr
,
22 struct bpf_prog
*prog
)
27 static inline int netkit_prog_detach(const union bpf_attr
*attr
,
28 struct bpf_prog
*prog
)
33 static inline int netkit_prog_query(const union bpf_attr
*attr
,
34 union bpf_attr __user
*uattr
)
39 static inline struct net_device
*netkit_peer_dev(struct net_device
*dev
)
43 #endif /* CONFIG_NETKIT */
44 #endif /* __NET_NETKIT_H */