Home
last modified time | relevance | path

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

12345678

/linux/tools/testing/selftests/bpf/progs/
H A 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
H A 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
/linux/tools/bpf/bpftool/
H A Dfeature.c144 static int get_vendor_id(int ifindex) in get_vendor_id()
516 __u32 ifindex) in probe_prog_load_ifindex()
534 static bool probe_prog_type_ifindex(enum bpf_prog_type prog_type, __u32 ifindex) in probe_prog_type_ifindex()
548 bool *supported_types, const char *define_prefix, __u32 ifindex) in probe_prog_type()
593 static bool probe_map_type_ifindex(enum bpf_map_type map_type, __u32 ifindex) in probe_map_type_ifindex()
615 const char *define_prefix, __u32 ifindex) in probe_map_type()
656 __u32 ifindex) in probe_helper_ifindex()
685 const char *ptype_name, __u32 ifindex) in probe_helper_for_progtype()
722 const char *define_prefix, __u32 ifindex) in probe_helpers_for_progtype()
782 const char *define_prefix, __u32 ifindex, in probe_misc_feature()
[all …]
H A Dnet.c33 int ifindex; member
58 int ifindex; member
226 static int netlink_get_class(int sock, unsigned int nl_pid, int ifindex, in netlink_get_class()
265 static int netlink_get_qdisc(int sock, unsigned int nl_pid, int ifindex, in netlink_get_qdisc()
304 static int netlink_get_filter(int sock, unsigned int nl_pid, int ifindex, int handle, in netlink_get_filter()
622 int ifindex; in net_parse_dev() local
641 int ifindex, bool overwrite) in do_attach_detach_xdp()
669 static int do_attach_tcx(int progfd, enum net_attach_type attach_type, int ifindex) in do_attach_tcx()
686 int progfd, ifindex, err = 0; in do_attach() local
753 int progfd, ifindex, err = 0; in do_detach() local
H A Dnetlink_dumper.c29 static int do_xdp_dump_one(struct nlattr *attr, unsigned int ifindex, in do_xdp_dump_one() argument
162 const char *devname, int ifindex) in do_filter_dump() argument
/linux/include/net/
H A Dl3mdev.h81 int ifindex; in l3mdev_master_ifindex() local
90 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index()
135 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index()
157 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
248 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index()
254 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index_rcu()
259 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index()
278 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index()
283 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
/linux/net/ipv6/
H A Daddrlabel.c29 int ifindex; member
110 int addrtype, int ifindex) in __ip6addrlbl_match()
123 int type, int ifindex) in __ipv6_addr_label()
135 const struct in6_addr *addr, int type, int ifindex) in ipv6_addr_label()
155 int prefixlen, int ifindex, in ip6addrlbl_alloc()
238 int ifindex, u32 label, int replace) in ip6addrlbl_add()
260 int ifindex) in __ip6addrlbl_del()
284 int ifindex) in ip6addrlbl_del()
363 static bool addrlbl_ifindex_exists(struct net *net, int ifindex) in addrlbl_ifindex_exists()
427 int prefixlen, int ifindex, u32 lseq) in ip6addrlbl_putmsg()
/linux/security/selinux/
H A Dnetif.c52 static inline u32 sel_netif_hashfn(const struct net *ns, int ifindex) in sel_netif_hashfn() argument
68 int ifindex) in sel_netif_find() argument
132 sel_netif_sid_slow(struct net * ns,int ifindex,u32 * sid) sel_netif_sid_slow() argument
191 sel_netif_sid(struct net * ns,int ifindex,u32 * sid) sel_netif_sid() argument
217 sel_netif_kill(const struct net * ns,int ifindex) sel_netif_kill() argument
[all...]
/linux/drivers/net/vxlan/
H A 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/net/phonet/
H A Dpn_netlink.c25 void phonet_address_notify(struct net *net, int event, u32 ifindex, u8 addr) in phonet_address_notify()
102 static int fill_addr(struct sk_buff *skb, u32 ifindex, u8 addr, in fill_addr()
173 static int fill_route(struct sk_buff *skb, u32 ifindex, u8 dst, in fill_route()
203 void rtm_phonet_notify(struct net *net, int event, u32 ifindex, u8 dst) in rtm_phonet_notify()
239 u32 ifindex; in route_doit() local
/linux/tools/lib/bpf/
H A 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() argument
322 int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_attach() argument
339 int bpf_xdp_detach(int ifindex, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_detach() argument
412 __u32 ifindex; parse_xdp_features() local
431 bpf_xdp_query(int ifindex,int xdp_flags,struct bpf_xdp_query_opts * opts) bpf_xdp_query() argument
506 bpf_xdp_query_id(int ifindex,int flags,__u32 * prog_id) bpf_xdp_query_id() argument
721 int ret, ifindex, attach_point, prog_fd; bpf_tc_attach() local
797 int ret, ifindex, attach_point, prog_fd; __bpf_tc_detach() local
868 int ret, ifindex, attach_point, prog_fd; bpf_tc_query() local
[all...]
/linux/tools/testing/selftests/bpf/
H A Dxsk.c74 int ifindex; member
281 bool xsk_is_in_mode(u32 ifindex, int mode) in xsk_is_in_mode()
393 int xsk_set_mtu(int ifindex, int mtu) in xsk_set_mtu()
426 int xsk_attach_xdp_program(struct bpf_program *prog, int ifindex, u32 xdp_flags) in xsk_attach_xdp_program()
434 void xsk_detach_xdp_program(int ifindex, u32 xdp_flags) in xsk_detach_xdp_program()
458 static struct xsk_ctx *xsk_get_ctx(struct xsk_umem *umem, int ifindex, in xsk_get_ctx()
503 struct xsk_umem *umem, int ifindex, in xsk_create_ctx()
539 int ifindex, in xsk_socket__create_shared()
708 int xsk_socket__create(struct xsk_socket **xsk_ptr, int ifindex, in xsk_socket__create()
H A 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()
H A Dxdp_redirect_multi.c
/linux/net/l3mdev/
H A 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/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A 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/net/can/
H A Dbcm.c107 int ifindex; member
132 int ifindex; member
189 static char *bcm_proc_getifname(struct net *net, char *result, int ifindex) in bcm_proc_getifname()
778 struct bcm_msg_head *mh, int ifindex) in bcm_find_op()
829 int ifindex) in bcm_delete_rx_op()
880 int ifindex) in bcm_delete_tx_op()
900 int ifindex) in bcm_read_op()
923 int ifindex, struct sock *sk) in bcm_tx_setup()
1110 int ifindex, struct sock *sk) in bcm_rx_setup()
1317 static int bcm_tx_send(struct msghdr *msg, int ifindex, struct sock *sk, in bcm_tx_send()
[all …]
/linux/drivers/net/netdevsim/
H A Dhwstats.c57 int ifindex) in nsim_dev_hwslist_find_hwsdev()
216 int ifindex, in nsim_dev_hwstats_enable_ifindex()
269 int ifindex, in nsim_dev_hwstats_disable_ifindex()
302 int ifindex, in nsim_dev_hwstats_fail_ifindex()
343 int ifindex; in nsim_dev_hwstats_do_write() local
/linux/tools/testing/selftests/bpf/prog_tests/
H A 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
H A Dtc_helpers.h24 static inline void __assert_mprog_count(int target, int expected, int ifindex) in __assert_mprog_count()
40 static inline void assert_mprog_count_ifindex(int ifindex, int target, int expected) in assert_mprog_count_ifindex()
H A Dtest_tunnel.c407 int key = 0, ifindex = -1; test_vxlan_tunnel() local
491 int key = 0, ifindex = -1; test_ip6vxlan_tunnel() local
562 int ifindex = -1; test_ipip_tunnel() local
638 int ifindex; test_xfrm_tunnel() local
[all...]
/linux/net/core/
H A Dnetdev-genl.c20 unsigned long ifindex; member
115 u32 ifindex; in netdev_nl_dev_get_doit() local
298 u32 ifindex = 0; in netdev_nl_napi_get_dumpit() local
478 u32 q_id, q_type, ifindex; in netdev_nl_queue_get_doit() local
547 u32 ifindex = 0; in netdev_nl_queue_get_dumpit() local
831 unsigned int ifindex; in netdev_nl_qstats_get_dumpit() local
876 u32 ifindex, dmabuf_fd, rxq_idx; in netdev_nl_bind_rx_doit() local
989 u32 ifindex, dmabuf_fd; in netdev_nl_bind_tx_doit() local
/linux/samples/bpf/
H A Dtest_lwt_bpf.c163 int ret, ifindex = DST_IFINDEX; in __do_push_ll_and_redirect() local
193 int ret, ifindex = DST_IFINDEX; in do_push_ll_and_redirect() local
231 int ifindex = DST_IFINDEX; in do_fill_garbage_and_redirect() local
/linux/net/batman-adv/
H A Dnetlink.c1145 batadv_netlink_get_meshif_from_ifindex(struct net *net, int ifindex) in batadv_netlink_get_meshif_from_ifindex()
1175 int ifindex; in batadv_netlink_get_meshif_from_info() local
1194 int ifindex = batadv_netlink_get_ifindex(cb->nlh, in batadv_netlink_get_meshif() local
1214 struct net *net, int ifindex) in batadv_netlink_get_hardif_from_ifindex()
1256 int ifindex; in batadv_netlink_get_hardif_from_info() local
1278 int ifindex = batadv_netlink_get_ifindex(cb->nlh, in batadv_netlink_get_hardif() local
/linux/drivers/net/bonding/
H A Dbond_netlink.c208 int ifindex = nla_get_u32(data[IFLA_BOND_ACTIVE_SLAVE]); in bond_changelink() local
369 int ifindex = nla_get_u32(data[IFLA_BOND_PRIMARY]); in bond_changelink() local
651 int ifindex; in bond_option_active_slave_get_ifindex() local
665 int ifindex, i, targets_added; in bond_fill_info() local

12345678