Lines Matching full:mtu
18 const char *filename = "/sys/class/net/lo/mtu"; in read_mtu_device_lo()
98 /* Extract MTU that BPF-prog got */ in test_check_mtu_run_xdp()
100 ASSERT_EQ(mtu_result, mtu_expect, "MTU-compare-user"); in test_check_mtu_run_xdp()
104 static void test_check_mtu_xdp(__u32 mtu, __u32 ifindex) in test_check_mtu_xdp() argument
114 skel->rodata->GLOBAL_USER_MTU = mtu; in test_check_mtu_xdp()
121 test_check_mtu_run_xdp(skel, skel->progs.xdp_use_helper, mtu); in test_check_mtu_xdp()
122 test_check_mtu_run_xdp(skel, skel->progs.xdp_exceed_mtu, mtu); in test_check_mtu_xdp()
123 test_check_mtu_run_xdp(skel, skel->progs.xdp_minus_delta, mtu); in test_check_mtu_xdp()
124 test_check_mtu_run_xdp(skel, skel->progs.xdp_input_len, mtu); in test_check_mtu_xdp()
125 test_check_mtu_run_xdp(skel, skel->progs.xdp_input_len_exceed, mtu); in test_check_mtu_xdp()
151 /* Extract MTU that BPF-prog got */ in test_check_mtu_run_tc()
153 ASSERT_EQ(mtu_result, mtu_expect, "MTU-compare-user"); in test_check_mtu_run_tc()
157 static void test_check_mtu_tc(__u32 mtu, __u32 ifindex) in test_check_mtu_tc() argument
167 skel->rodata->GLOBAL_USER_MTU = mtu; in test_check_mtu_tc()
174 test_check_mtu_run_tc(skel, skel->progs.tc_use_helper, mtu); in test_check_mtu_tc()
175 test_check_mtu_run_tc(skel, skel->progs.tc_exceed_mtu, mtu); in test_check_mtu_tc()
176 test_check_mtu_run_tc(skel, skel->progs.tc_exceed_mtu_da, mtu); in test_check_mtu_tc()
177 test_check_mtu_run_tc(skel, skel->progs.tc_minus_delta, mtu); in test_check_mtu_tc()
178 test_check_mtu_run_tc(skel, skel->progs.tc_input_len, mtu); in test_check_mtu_tc()
179 test_check_mtu_run_tc(skel, skel->progs.tc_input_len_exceed, mtu); in test_check_mtu_tc()
192 if (CHECK(mtu_lo < 0, "reading MTU value", "failed (err:%d)", mtu_lo)) in serial_test_check_mtu()