bpf, xdp: Remove XDP_QUERY_PROG and XDP_QUERY_PROG_HW XDP commands
Now that BPF program/link management is centralized in generic net_device code, kernel code never queries program id from drivers, so XDP_QUERY_PROG/XDP_QUERY_PROG_HW commands are unnecessary. This patch removes all the implementations of those commands in kernel, along the xdp_attachment_query(). This patch was compile-tested on allyesconfig. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200722064603.3350758-10-andriin@fb.com
This commit is contained in:

committed by
Alexei Starovoitov

parent
fe48230cf2
commit
e8407fdeb9
@@ -876,8 +876,6 @@ enum bpf_netdev_command {
|
||||
*/
|
||||
XDP_SETUP_PROG,
|
||||
XDP_SETUP_PROG_HW,
|
||||
XDP_QUERY_PROG,
|
||||
XDP_QUERY_PROG_HW,
|
||||
/* BPF program for offload callbacks, invoked at program load time. */
|
||||
BPF_OFFLOAD_MAP_ALLOC,
|
||||
BPF_OFFLOAD_MAP_FREE,
|
||||
@@ -911,12 +909,6 @@ struct netdev_bpf {
|
||||
struct bpf_prog *prog;
|
||||
struct netlink_ext_ack *extack;
|
||||
};
|
||||
/* XDP_QUERY_PROG, XDP_QUERY_PROG_HW */
|
||||
struct {
|
||||
u32 prog_id;
|
||||
/* flags with which program was installed */
|
||||
u32 prog_flags;
|
||||
};
|
||||
/* BPF_OFFLOAD_MAP_ALLOC, BPF_OFFLOAD_MAP_FREE */
|
||||
struct {
|
||||
struct bpf_offloaded_map *offmap;
|
||||
|
Reference in New Issue
Block a user