| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_check_mtu.c | 37 __u32 ifindex = 0; xdp_use_helper() local 63 __u32 ifindex = GLOBAL_USER_IFINDEX; xdp_exceed_mtu() local 90 __u32 ifindex = GLOBAL_USER_IFINDEX; xdp_minus_delta() local 114 __u32 ifindex = GLOBAL_USER_IFINDEX; xdp_input_len() local 136 __u32 ifindex = GLOBAL_USER_IFINDEX; xdp_input_len_exceed() local 178 __u32 ifindex = GLOBAL_USER_IFINDEX; tc_exceed_mtu() local 205 __u32 ifindex = GLOBAL_USER_IFINDEX; tc_exceed_mtu_da() local 230 __u32 ifindex = GLOBAL_USER_IFINDEX; tc_minus_delta() local 252 __u32 ifindex = GLOBAL_USER_IFINDEX; tc_input_len() local 272 __u32 ifindex = GLOBAL_USER_IFINDEX; tc_input_len_exceed() local [all...] |
| H A D | kfree_skb.c | 28 int ifindex; member 52 int ifindex; member 121 int len, ifindex; in BPF_PROG() local 139 int len, ifindex; in BPF_PROG() local
|
| H A D | test_xdp_bpf2bpf.c | 12 int ifindex; member 33 int ifindex; member
|
| /linux/include/net/ |
| H A D | l3mdev.h | 81 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 D | addrlabel.c | 29 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 D | netif.c | 53 static inline u32 sel_netif_hashfn(const struct net *ns, int ifindex) in sel_netif_hashfn() 69 int ifindex) in sel_netif_find() 133 static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid_slow() 196 int sel_netif_sid(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid() 222 static void sel_netif_kill(const struct net *ns, int ifindex) in sel_netif_kill()
|
| /linux/drivers/net/vxlan/ |
| H A D | vxlan_multicast.c | 21 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
|
| H A D | vxlan_core.c | 85 __be16 port, u32 flags, int ifindex) in vxlan_find_sock() argument 102 int ifindex, __be32 vni, in vxlan_vs_find_vni() argument 142 static struct vxlan_dev *vxlan_find_vni(struct net *net, int ifindex, in vxlan_find_vni() argument 429 __be32 vni, __u32 ifindex) in vxlan_fdb_find_rdst() argument 550 vxlan_fdb_replace(struct vxlan_fdb * f,union vxlan_addr * ip,__be16 port,__be32 vni,__u32 ifindex,struct vxlan_rdst * oldrd) vxlan_fdb_replace() argument 575 vxlan_fdb_append(struct vxlan_fdb * f,union vxlan_addr * ip,__be16 port,__be32 vni,__u32 ifindex,struct vxlan_rdst ** rdp) vxlan_fdb_append() argument 859 vxlan_fdb_create(struct vxlan_dev * vxlan,const u8 * mac,union vxlan_addr * ip,__u16 state,__be16 port,__be32 src_vni,__be32 vni,__u32 ifindex,__u16 ndm_flags,u32 nhid,struct vxlan_fdb ** fdb,struct netlink_ext_ack * extack) vxlan_fdb_create() argument 972 vxlan_fdb_update_existing(struct vxlan_dev * vxlan,union vxlan_addr * ip,__u16 state,__u16 flags,__be16 port,__be32 vni,__u32 ifindex,__u16 ndm_flags,struct vxlan_fdb * f,u32 nhid,bool swdev_notify,struct netlink_ext_ack * extack) vxlan_fdb_update_existing() argument 1071 vxlan_fdb_update_create(struct vxlan_dev * vxlan,const u8 * mac,union vxlan_addr * ip,__u16 state,__u16 flags,__be16 port,__be32 src_vni,__be32 vni,__u32 ifindex,__u16 ndm_flags,u32 nhid,bool swdev_notify,struct netlink_ext_ack * extack) vxlan_fdb_update_create() argument 1107 vxlan_fdb_update(struct vxlan_dev * vxlan,const u8 * mac,union vxlan_addr * ip,__u16 state,__u16 flags,__be16 port,__be32 src_vni,__be32 vni,__u32 ifindex,__u16 ndm_flags,u32 nhid,bool swdev_notify,struct netlink_ext_ack * extack) vxlan_fdb_update() argument 1145 vxlan_fdb_parse(struct nlattr * tb[],struct vxlan_dev * vxlan,union vxlan_addr * ip,__be16 * port,__be32 * src_vni,__be32 * vni,u32 * ifindex,u32 * nhid,struct netlink_ext_ack * extack) vxlan_fdb_parse() argument 1240 u32 ifindex, nhid; vxlan_fdb_add() local 1276 __vxlan_fdb_delete(struct vxlan_dev * vxlan,const unsigned char * addr,union vxlan_addr ip,__be16 port,__be32 src_vni,__be32 vni,u32 ifindex,bool swdev_notify) __vxlan_fdb_delete() argument 1315 u32 ifindex, nhid; vxlan_fdb_delete() local 1429 u32 ifindex = 0; vxlan_snoop() local 1592 u32 ifindex = skb->dev->ifindex; vxlan_set_mac() local 2351 int ifindex; vxlan_xmit_one() local 3518 vxlan_create_sock(struct net * net,bool ipv6,__be16 port,u32 flags,int ifindex) vxlan_create_sock() argument 3550 vxlan_socket_create(struct net * net,bool ipv6,__be16 port,u32 flags,int ifindex) vxlan_socket_create() argument [all...] |
| /linux/net/phonet/ |
| H A D | pn_netlink.c | 25 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 D | netlink.c | 40 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 D | xsk.c | 74 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 D | xdp_synproxy.c | 19 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 D | xdp_redirect_multi.c | |
| /linux/net/l3mdev/ |
| H A D | l3mdev.c | 81 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/net/can/ |
| H A D | bcm.c | 107 int ifindex; member 132 int ifindex; member 189 static char *bcm_proc_getifname(struct net *net, char *result, int ifindex) in bcm_proc_getifname() argument 778 bcm_find_op(struct list_head * ops,struct bcm_msg_head * mh,int ifindex) bcm_find_op() argument 829 bcm_delete_rx_op(struct list_head * ops,struct bcm_msg_head * mh,int ifindex) bcm_delete_rx_op() argument 880 bcm_delete_tx_op(struct list_head * ops,struct bcm_msg_head * mh,int ifindex) bcm_delete_tx_op() argument 900 bcm_read_op(struct list_head * ops,struct bcm_msg_head * msg_head,int ifindex) bcm_read_op() argument 923 bcm_tx_setup(struct bcm_msg_head * msg_head,struct msghdr * msg,int ifindex,struct sock * sk) bcm_tx_setup() argument 1110 bcm_rx_setup(struct bcm_msg_head * msg_head,struct msghdr * msg,int ifindex,struct sock * sk) bcm_rx_setup() argument 1317 bcm_tx_send(struct msghdr * msg,int ifindex,struct sock * sk,int cfsiz) bcm_tx_send() argument 1366 int ifindex = bo->ifindex; /* default ifindex for this bcm_op */ bcm_sendmsg() local [all...] |
| /linux/tools/bpf/bpftool/ |
| H A D | net.c | 33 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 D | netlink_dumper.c | 29 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/drivers/net/netdevsim/ |
| H A D | hwstats.c | 57 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 D | xdp_dev_bound_only.c | 8 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 D | tc_helpers.h | 24 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 D | test_tunnel.c | 407 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
|
| H A D | lwt_reroute.c | 190 int ifindex = -1; in test_lwt_reroute_normal_xmit() local 223 int ifindex = -1; in test_lwt_reroute_qdisc_dropped() local
|
| H A D | check_mtu.c | 104 static void test_check_mtu_xdp(__u32 mtu, __u32 ifindex) in test_check_mtu_xdp() argument 157 test_check_mtu_tc(__u32 mtu,__u32 ifindex) test_check_mtu_tc() argument
|
| /linux/samples/bpf/ |
| H A D | test_lwt_bpf.c | 163 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
|
| H A D | xdp_router_ipv4.bpf.c | 19 int ifindex; member 37 int ifindex; member
|