Home
last modified time | relevance | path

Searched defs:ifindex (Results 1 – 25 of 54) sorted by relevance

123

/tools/testing/selftests/bpf/progs/
Dtest_check_mtu.c37 __u32 ifindex = 0; in xdp_use_helper() local
63 __u32 ifindex = GLOBAL_USER_IFINDEX; in xdp_exceed_mtu() local
90 __u32 ifindex = GLOBAL_USER_IFINDEX; in xdp_minus_delta() local
114 __u32 ifindex = GLOBAL_USER_IFINDEX; in xdp_input_len() local
136 __u32 ifindex = GLOBAL_USER_IFINDEX; in xdp_input_len_exceed() local
178 __u32 ifindex = GLOBAL_USER_IFINDEX; in tc_exceed_mtu() local
205 __u32 ifindex = GLOBAL_USER_IFINDEX; in tc_exceed_mtu_da() local
230 __u32 ifindex = GLOBAL_USER_IFINDEX; in tc_minus_delta() local
252 __u32 ifindex = GLOBAL_USER_IFINDEX; in tc_input_len() local
272 __u32 ifindex = GLOBAL_USER_IFINDEX; in tc_input_len_exceed() local
Dkfree_skb.c28 int ifindex; member
52 int ifindex; member
121 int len, ifindex; in BPF_PROG() local
139 int len, ifindex; in BPF_PROG() local
Dtest_xdp_bpf2bpf.c12 int ifindex; member
33 int ifindex; member
Dempty_skb.c8 int ifindex; variable
Dtype_cast.c17 int ifindex, ingress_ifindex; variable
/tools/bpf/bpftool/
Dfeature.c144 static int get_vendor_id(int ifindex) in get_vendor_id()
520 __u32 ifindex) in probe_prog_load_ifindex()
538 static bool probe_prog_type_ifindex(enum bpf_prog_type prog_type, __u32 ifindex) in probe_prog_type_ifindex()
552 bool *supported_types, const char *define_prefix, __u32 ifindex) in probe_prog_type()
597 static bool probe_map_type_ifindex(enum bpf_map_type map_type, __u32 ifindex) in probe_map_type_ifindex()
619 const char *define_prefix, __u32 ifindex) in probe_map_type()
660 __u32 ifindex) in probe_helper_ifindex()
688 const char *ptype_name, __u32 ifindex) in probe_helper_for_progtype()
725 const char *define_prefix, __u32 ifindex) in probe_helpers_for_progtype()
785 const char *define_prefix, __u32 ifindex, in probe_misc_feature()
[all …]
Dnet.c33 int ifindex; member
58 int ifindex; member
220 static int netlink_get_class(int sock, unsigned int nl_pid, int ifindex, in netlink_get_class()
259 static int netlink_get_qdisc(int sock, unsigned int nl_pid, int ifindex, in netlink_get_qdisc()
298 static int netlink_get_filter(int sock, unsigned int nl_pid, int ifindex, int handle, in netlink_get_filter()
610 int ifindex; in net_parse_dev() local
629 int ifindex, bool overwrite) in do_attach_detach_xdp()
648 int progfd, ifindex, err = 0; in do_attach() local
702 int progfd, ifindex, err = 0; in do_detach() local
Dnetlink_dumper.c29 static int do_xdp_dump_one(struct nlattr *attr, unsigned int ifindex, in do_xdp_dump_one()
162 const char *devname, int ifindex) in do_filter_dump()
/tools/net/ynl/generated/
Dnetdev-user.h27 __u32 ifindex:1; member
30 __u32 ifindex; member
40 netdev_dev_get_req_set_ifindex(struct netdev_dev_get_req *req, __u32 ifindex) in netdev_dev_get_req_set_ifindex()
48 __u32 ifindex:1; member
53 __u32 ifindex; member
Dfou-user.h36 __u32 ifindex:1; member
47 __s32 ifindex; member
115 fou_add_req_set_ifindex(struct fou_add_req *req, __s32 ifindex) in fou_add_req_set_ifindex()
131 __u32 ifindex:1; member
141 __s32 ifindex; member
162 fou_del_req_set_ifindex(struct fou_del_req *req, __s32 ifindex) in fou_del_req_set_ifindex()
221 __u32 ifindex:1; member
231 __s32 ifindex; member
252 fou_get_req_set_ifindex(struct fou_get_req *req, __s32 ifindex) in fou_get_req_set_ifindex()
312 __u32 ifindex:1; member
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dxdp_dev_bound_only.c8 static int load_dummy_prog(char *name, __u32 ifindex, __u32 flags) in load_dummy_prog()
28 __u32 ifindex; in test_xdp_dev_bound_only_offdev() local
Dtc_helpers.h48 static inline void __assert_mprog_count(int target, int expected, int ifindex) in __assert_mprog_count()
64 static inline void assert_mprog_count_ifindex(int ifindex, int target, int expected) in assert_mprog_count_ifindex()
Dlwt_reroute.c188 int ifindex = -1; in test_lwt_reroute_normal_xmit() local
221 int ifindex = -1; in test_lwt_reroute_qdisc_dropped() local
Dcheck_mtu.c104 static void test_check_mtu_xdp(__u32 mtu, __u32 ifindex) in test_check_mtu_xdp()
157 static void test_check_mtu_tc(__u32 mtu, __u32 ifindex) in test_check_mtu_tc()
Dtest_tunnel.c315 int key = 0, ifindex = -1; in test_vxlan_tunnel() local
399 int key = 0, ifindex = -1; in test_ip6vxlan_tunnel() local
470 int ifindex = -1; in test_ipip_tunnel() local
Dxdp_bonding.c102 int ifindex; in xdp_attach() local
218 int ifindex; in send_udp_packets() local
347 int ifindex = if_nametoindex(ifaces[i]); in test_xdp_bonding_redirect_multi() local
Dtc_links.c1486 int err, ifindex; in test_tc_links_dev_cleanup_target() local
1798 static int qdisc_replace(int ifindex, const char *kind, bool block) in qdisc_replace()
1828 int err, ifindex; in serial_test_tc_links_dev_chain0() local
1859 int err, ifindex; in test_tc_links_dev_mixed() local
Dkfree_skb.c7 int ifindex; member
Dempty_skb.c24 int *ifindex; in test_empty_skb() member
/tools/lib/bpf/
Dnetlink.c40 int ifindex; member
47 int ifindex; member
286 static int __bpf_set_link_xdp_fd_replace(int ifindex, int fd, int old_fd, in __bpf_set_link_xdp_fd_replace()
322 int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_attach()
339 int bpf_xdp_detach(int ifindex, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_detach()
412 __u32 ifindex; in parse_xdp_features() local
431 int bpf_xdp_query(int ifindex, int xdp_flags, struct bpf_xdp_query_opts *opts) in bpf_xdp_query()
506 int bpf_xdp_query_id(int ifindex, int flags, __u32 *prog_id) in bpf_xdp_query_id()
721 int ret, ifindex, attach_point, prog_fd; in bpf_tc_attach() local
797 int ret, ifindex, attach_point, prog_fd; in __bpf_tc_detach() local
[all …]
/tools/testing/selftests/bpf/
Dxsk.c74 int ifindex; member
278 bool xsk_is_in_mode(u32 ifindex, int mode) in xsk_is_in_mode()
390 int xsk_set_mtu(int ifindex, int mtu) in xsk_set_mtu()
423 int xsk_attach_xdp_program(struct bpf_program *prog, int ifindex, u32 xdp_flags) in xsk_attach_xdp_program()
431 void xsk_detach_xdp_program(int ifindex, u32 xdp_flags) in xsk_detach_xdp_program()
456 static struct xsk_ctx *xsk_get_ctx(struct xsk_umem *umem, int ifindex, in xsk_get_ctx()
501 struct xsk_umem *umem, int ifindex, in xsk_create_ctx()
537 int ifindex, in xsk_socket__create_shared()
706 int xsk_socket__create(struct xsk_socket **xsk_ptr, int ifindex, in xsk_socket__create()
Dxdp_synproxy.c19 static unsigned int ifindex; variable
91 static void parse_options(int argc, char *argv[], unsigned int *ifindex, __u32 *prog_id, in parse_options()
188 static int syncookie_attach(const char *argv0, unsigned int ifindex, bool tc) in syncookie_attach()
Dxdp_redirect_multi.c45 static int get_mac_addr(unsigned int ifindex, void *mac_addr) in get_mac_addr()
93 unsigned int ifindex; in main() local
/tools/net/ynl/samples/
Dnetdev.c55 int ifindex = 0; in main() local
/tools/testing/selftests/net/
Dnettest.c95 int ifindex; member
395 int ifindex = 0; in check_device() local
469 static int set_unicast_if(int sd, int ifindex, int version) in set_unicast_if()
488 static int set_multicast_if(int sd, int ifindex) in set_multicast_if()
500 static int set_membership(int sd, uint32_t grp, uint32_t addr, int ifindex) in set_membership()
909 int ifindex = 0; in get_index_from_cmsg() local
962 int ifindex, int version) in send_msg_cmsg()
1064 int ifindex; in socket_read_dgram() local

123