Home
last modified time | relevance | path

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

1234567

/linux-5.19.10/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
/linux-5.19.10/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 const char *define_prefix, __u32 ifindex) in probe_prog_type()
601 static bool probe_map_type_ifindex(enum bpf_map_type map_type, __u32 ifindex) in probe_map_type_ifindex()
623 __u32 ifindex) in probe_map_type()
668 __u32 ifindex) in probe_helper_ifindex()
696 const char *ptype_name, __u32 ifindex) in probe_helper_for_progtype()
732 const char *define_prefix, __u32 ifindex) in probe_helpers_for_progtype()
793 const char *define_prefix, __u32 ifindex, in probe_misc_feature()
[all …]
Dnet.c31 int ifindex; member
56 int ifindex; member
213 static int netlink_get_class(int sock, unsigned int nl_pid, int ifindex, in netlink_get_class()
252 static int netlink_get_qdisc(int sock, unsigned int nl_pid, int ifindex, in netlink_get_qdisc()
291 static int netlink_get_filter(int sock, unsigned int nl_pid, int ifindex, int handle, in netlink_get_filter()
522 int ifindex; in net_parse_dev() local
541 int ifindex, bool overwrite) in do_attach_detach_xdp()
560 int progfd, ifindex, err = 0; in do_attach() local
614 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()
/linux-5.19.10/include/net/
Dl3mdev.h67 int ifindex; in l3mdev_master_ifindex() local
76 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index()
121 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index()
143 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
232 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index()
238 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index_rcu()
243 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index()
262 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index()
267 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
/linux-5.19.10/tools/lib/bpf/
Dlibbpf_probes.c25 static int get_vendor_id(int ifindex) in get_vendor_id()
54 __u32 ifindex) in probe_prog_load()
168 bool bpf_probe_prog_type(enum bpf_prog_type prog_type, __u32 ifindex) in bpf_probe_prog_type()
245 static int probe_map_create(enum bpf_map_type map_type, __u32 ifindex) in probe_map_create()
377 bool bpf_probe_map_type(enum bpf_map_type map_type, __u32 ifindex) in bpf_probe_map_type()
432 __u32 ifindex) in bpf_probe_helper()
463 bool bpf_probe_large_insn_limit(__u32 ifindex) in bpf_probe_large_insn_limit()
Dnetlink.c31 int ifindex; member
233 static int __bpf_set_link_xdp_fd_replace(int ifindex, int fd, int old_fd, in __bpf_set_link_xdp_fd_replace()
269 int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_attach()
286 int bpf_xdp_detach(int ifindex, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_detach()
291 int bpf_set_link_xdp_fd_opts(int ifindex, int fd, __u32 flags, in bpf_set_link_xdp_fd_opts()
308 int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags) in bpf_set_link_xdp_fd()
377 int bpf_xdp_query(int ifindex, int xdp_flags, struct bpf_xdp_query_opts *opts) in bpf_xdp_query()
416 int bpf_get_link_xdp_info(int ifindex, struct xdp_link_info *info, in bpf_get_link_xdp_info()
440 int bpf_xdp_query_id(int ifindex, int flags, __u32 *prog_id) in bpf_xdp_query_id()
466 int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags) in bpf_get_link_xdp_id()
[all …]
Dxsk.c78 int ifindex; member
98 int ifindex; member
669 static int xsk_link_lookup(int ifindex, __u32 *prog_id, int *link_fd) in xsk_link_lookup()
753 static int xsk_create_xsk_struct(int ifindex, struct xsk_socket *xsk) in xsk_create_xsk_struct()
879 static struct xsk_ctx *xsk_get_ctx(struct xsk_umem *umem, int ifindex, in xsk_get_ctx()
924 struct xsk_umem *umem, int ifindex, in xsk_create_ctx()
972 int xsk_setup_xdp_prog(int ifindex, int *xsks_map_fd) in xsk_setup_xdp_prog()
1009 int err, ifindex; in xsk_socket__create_shared() local
/linux-5.19.10/net/ipv6/
Daddrlabel.c35 int ifindex; member
116 int addrtype, int ifindex) in __ip6addrlbl_match()
129 int type, int ifindex) in __ipv6_addr_label()
141 const struct in6_addr *addr, int type, int ifindex) in ipv6_addr_label()
161 int prefixlen, int ifindex, in ip6addrlbl_alloc()
244 int ifindex, u32 label, int replace) in ip6addrlbl_add()
267 int ifindex) in __ip6addrlbl_del()
291 int ifindex) in ip6addrlbl_del()
372 static bool addrlbl_ifindex_exists(struct net *net, int ifindex) in addrlbl_ifindex_exists()
436 int prefixlen, int ifindex, u32 lseq) in ip6addrlbl_putmsg()
/linux-5.19.10/security/selinux/
Dnetif.c52 static inline u32 sel_netif_hashfn(const struct net *ns, int ifindex) in sel_netif_hashfn()
68 int ifindex) in sel_netif_find()
132 static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid_slow()
191 int sel_netif_sid(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid()
217 static void sel_netif_kill(const struct net *ns, int ifindex) in sel_netif_kill()
/linux-5.19.10/drivers/net/vxlan/
Dvxlan_multicast.c21 int ifindex = (rifindex ? : vxlan->default_dst.remote_ifindex); in vxlan_igmp_join() local
55 int ifindex = (rifindex ? : vxlan->default_dst.remote_ifindex); in vxlan_igmp_leave() local
85 static bool vxlan_group_used_match(union vxlan_addr *ip, int ifindex, in vxlan_group_used_match()
101 union vxlan_addr *ip, int ifindex) in vxlan_group_used_by_vnifilter()
129 int ifindex = (rifindex ? : dev->default_dst.remote_ifindex); in vxlan_group_used() local
/linux-5.19.10/net/l3mdev/
Dl3mdev.c81 int ifindex = -EINVAL; in l3mdev_ifindex_lookup_by_table_id() local
112 int ifindex = 0; in l3mdev_master_ifindex_rcu() local
144 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index_rcu()
189 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index()
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dint_port.c13 int ifindex; member
106 int ifindex, in mlx5e_int_port_lookup()
125 int ifindex, enum mlx5e_tc_int_port_type type, in mlx5e_int_port_metadata_alloc()
151 int ifindex, in mlx5e_int_port_add()
265 int ifindex, in mlx5e_tc_int_port_get()
416 int ifindex; in mlx5e_tc_int_port_dev_fwd() local
/linux-5.19.10/net/can/
Dbcm.c104 int ifindex; member
128 int ifindex; member
175 static char *bcm_proc_getifname(struct net *net, char *result, int ifindex) in bcm_proc_getifname()
709 struct bcm_msg_head *mh, int ifindex) in bcm_find_op()
760 int ifindex) in bcm_delete_rx_op()
811 int ifindex) in bcm_delete_tx_op()
831 int ifindex) in bcm_read_op()
854 int ifindex, struct sock *sk) in bcm_tx_setup()
1029 int ifindex, struct sock *sk) in bcm_rx_setup()
1239 static int bcm_tx_send(struct msghdr *msg, int ifindex, struct sock *sk, in bcm_tx_send()
[all …]
/linux-5.19.10/drivers/net/netdevsim/
Dhwstats.c57 int ifindex) in nsim_dev_hwslist_find_hwsdev()
216 int ifindex, in nsim_dev_hwstats_enable_ifindex()
272 int ifindex, in nsim_dev_hwstats_disable_ifindex()
305 int ifindex, in nsim_dev_hwstats_fail_ifindex()
347 int ifindex; in nsim_dev_hwstats_do_write() local
/linux-5.19.10/samples/bpf/
Dtest_lwt_bpf.c171 int ret, ifindex = DST_IFINDEX; in __do_push_ll_and_redirect() local
201 int ret, ifindex = DST_IFINDEX; in do_push_ll_and_redirect() local
239 int ifindex = DST_IFINDEX; in do_fill_garbage_and_redirect() local
Dxdp_redirect_map_multi_user.c53 unsigned int ifindex; in update_mac_map() local
87 unsigned int ifindex; in main() local
Dtc_l2_redirect_kern.c65 int key = 0, *ifindex; in _l2_to_iptun_ingress_forward() local
116 int key = 0, *ifindex; in _l2_to_iptun_ingress_redirect() local
157 int key = 0, *ifindex; in _l2_to_ip6tun_ingress_redirect() local
Dxdp_router_ipv4.bpf.c19 int ifindex; member
37 int ifindex; member
/linux-5.19.10/drivers/net/bonding/
Dbond_netlink.c183 int ifindex = nla_get_u32(data[IFLA_BOND_ACTIVE_SLAVE]); in bond_changelink() local
329 int ifindex = nla_get_u32(data[IFLA_BOND_PRIMARY]); in bond_changelink() local
569 int ifindex; in bond_option_active_slave_get_ifindex() local
583 int ifindex, i, targets_added; in bond_fill_info() local
/linux-5.19.10/tools/testing/selftests/bpf/
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
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/
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()
/linux-5.19.10/drivers/net/ppp/
Dpppoe.c160 unsigned char *addr, int ifindex) in __get_item()
198 char *addr, int ifindex) in __delete_item()
224 unsigned char *addr, int ifindex) in get_item()
244 int ifindex; in get_item_by_addr() local
259 char *addr, int ifindex) in delete_item()

1234567