Searched refs:bond_ifindex (Results 1 – 1 of 1) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | xdp_bonding.c | 712 int bond_ifindex = -1; in test_xdp_bonding_xmit_policy_compat() local 726 bond_ifindex = if_nametoindex("bond0"); in test_xdp_bonding_xmit_policy_compat() 727 if (!ASSERT_GT(bond_ifindex, 0, "bond0 ifindex")) in test_xdp_bonding_xmit_policy_compat() 734 err = bpf_xdp_attach(bond_ifindex, xdp_fd, XDP_FLAGS_DRV_MODE, NULL); in test_xdp_bonding_xmit_policy_compat() 743 ASSERT_OK(bpf_xdp_detach(bond_ifindex, XDP_FLAGS_DRV_MODE, NULL), in test_xdp_bonding_xmit_policy_compat() 746 bond_ifindex = -1; in test_xdp_bonding_xmit_policy_compat() 751 if (bond_ifindex > 0) in test_xdp_bonding_xmit_policy_compat() 752 bpf_xdp_detach(bond_ifindex, XDP_FLAGS_DRV_MODE, NULL); in test_xdp_bonding_xmit_policy_compat()
|