Searched refs:netkit (Results 1 – 11 of 11) sorted by relevance
/linux/drivers/net/ |
H A D | netkit.c | 18 struct netkit { struct 61 static struct netkit *netkit_priv(const struct net_device *dev) in netkit_priv() 69 struct netkit *nk = netkit_priv(dev); in netkit_xmit() 121 struct netkit *nk = netkit_priv(dev); in netkit_open() 135 struct netkit *nk = netkit_priv(dev); in netkit_close() 146 struct netkit *nk = netkit_priv(dev); in netkit_get_iflink() 165 struct netkit *nk = netkit_priv(dev); in netkit_set_macaddr() 175 struct netkit *nk = netkit_priv(dev), *nk2; in netkit_set_headroom() 280 struct netkit *nk = netkit_priv(dev); in netkit_get_link_net() 342 struct netkit *nk; in netkit_new_link() [all …]
|
H A D | Kconfig | 469 The netkit device is a virtual networking device where BPF programs
|
/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-net.rst | 39 Currently, device driver xdp attachments, tcx, netkit and old-style tc 53 all tcx, netkit, then tc class/qdisc bpf program attachments, then 55 tcx/netkit/tc programs are ordered based on ifindex number. If multiple bpf 57 will be first all bpf programs attached to tcx, netkit, then tc classes,
|
/linux/tools/lib/bpf/ |
H A D | bpf.c | 824 relative_fd = OPTS_GET(opts, netkit.relative_fd, 0); in bpf_link_create() 825 relative_id = OPTS_GET(opts, netkit.relative_id, 0); in bpf_link_create() 829 attr.link_create.netkit.relative_id = relative_id; in bpf_link_create() 832 attr.link_create.netkit.relative_fd = relative_fd; in bpf_link_create() 834 attr.link_create.netkit.expected_revision = OPTS_GET(opts, netkit.expected_revision, 0); in bpf_link_create() 835 if (!OPTS_ZEROED(opts, netkit)) in bpf_link_create()
|
H A D | bpf.h | 437 } netkit; member
|
H A D | libbpf.c | 152 [BPF_LINK_TYPE_NETKIT] = "netkit", 9386 SEC_DEF("netkit/primary", SCHED_CLS, BPF_NETKIT_PRIMARY, SEC_NONE), 9387 SEC_DEF("netkit/peer", SCHED_CLS, BPF_NETKIT_PEER, SEC_NONE), 12742 link_create_opts.netkit.expected_revision = OPTS_GET(opts, expected_revision, 0); in bpf_program__attach_freplace() 12743 link_create_opts.netkit.relative_fd = relative_fd; in bpf_program__attach_freplace() 12744 link_create_opts.netkit.relative_id = relative_id; in bpf_program__attach_freplace() 12747 return bpf_program_attach_fd(prog, ifindex, "netkit", &link_create_opts); in bpf_program__attach_freplace()
|
/linux/include/linux/ |
H A D | bpf_types.h | 148 BPF_LINK_TYPE(BPF_LINK_TYPE_NETKIT, netkit)
|
/linux/tools/bpf/bpftool/ |
H A D | link.c | 526 show_link_ifindex_json(info->netkit.ifindex, json_wtr); in show_link_close_json() 527 show_link_attach_type_json(info->netkit.attach_type, json_wtr); in show_link_close_json() 919 show_link_ifindex_plain(info->netkit.ifindex); in show_link_close_plain() 920 show_link_attach_type_plain(info->netkit.attach_type); in show_link_close_plain()
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 1777 } netkit; member 4956 * ingress hook and for veth and netkit target device types. The 6736 } netkit; 6735 } netkit; global() member
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 1777 } netkit; member 4956 * ingress hook and for veth and netkit target device types. The 6735 } netkit; member
|
/linux/ |
H A D | MAINTAINERS | 4264 F: drivers/net/netkit.c 4265 F: include/net/netkit.h
|