Lines Matching full:ifindex

407 	int key = 0, ifindex = -1;  in test_vxlan_tunnel()  local
422 ifindex = if_nametoindex(VXLAN_TUNL_DEV1); in test_vxlan_tunnel()
423 if (!ASSERT_NEQ(ifindex, 0, "vxlan11 ifindex")) in test_vxlan_tunnel()
425 tc_hook.ifindex = ifindex; in test_vxlan_tunnel()
436 ifindex = if_nametoindex("veth1"); in test_vxlan_tunnel()
437 if (!ASSERT_NEQ(ifindex, 0, "veth1 ifindex")) in test_vxlan_tunnel()
439 tc_hook.ifindex = ifindex; in test_vxlan_tunnel()
450 ifindex = if_nametoindex(VXLAN_TUNL_DEV0); in test_vxlan_tunnel()
451 if (!ASSERT_NEQ(ifindex, 0, "vxlan00 ifindex")) in test_vxlan_tunnel()
453 tc_hook.ifindex = ifindex; in test_vxlan_tunnel()
491 int key = 0, ifindex = -1; in test_ip6vxlan_tunnel() local
506 ifindex = if_nametoindex(IP6VXLAN_TUNL_DEV1); in test_ip6vxlan_tunnel()
507 if (!ASSERT_NEQ(ifindex, 0, "ip6vxlan11 ifindex")) in test_ip6vxlan_tunnel()
509 tc_hook.ifindex = ifindex; in test_ip6vxlan_tunnel()
523 ifindex = if_nametoindex(IP6VXLAN_TUNL_DEV0); in test_ip6vxlan_tunnel()
524 if (!ASSERT_NEQ(ifindex, 0, "ip6vxlan00 ifindex")) in test_ip6vxlan_tunnel()
526 tc_hook.ifindex = ifindex; in test_ip6vxlan_tunnel()
562 int ifindex = -1; in test_ipip_tunnel() local
576 ifindex = if_nametoindex(IPIP_TUNL_DEV1); in test_ipip_tunnel()
577 if (!ASSERT_NEQ(ifindex, 0, "ipip11 ifindex")) in test_ipip_tunnel()
579 tc_hook.ifindex = ifindex; in test_ipip_tunnel()
638 int ifindex; in test_xfrm_tunnel() local
649 ifindex = if_nametoindex("veth1"); in test_xfrm_tunnel()
650 if (!ASSERT_NEQ(ifindex, 0, "veth1 ifindex")) in test_xfrm_tunnel()
654 tc_hook.ifindex = ifindex; in test_xfrm_tunnel()
665 err = bpf_xdp_attach(ifindex, xdp_prog_fd, XDP_FLAGS_REPLACE, &opts); in test_xfrm_tunnel()