Lines Matching refs:mtu_len

24 	__u32 mtu_len = 0;  in xdp_use_helper_basic()  local
26 if (bpf_check_mtu(ctx, 0, &mtu_len, 0, 0)) in xdp_use_helper_basic()
36 __u32 mtu_len = 0; in xdp_use_helper() local
44 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) { in xdp_use_helper()
50 if (mtu_len != GLOBAL_USER_MTU) in xdp_use_helper()
54 global_bpf_mtu_xdp = mtu_len; in xdp_use_helper()
66 __u32 mtu_len = 0; in xdp_exceed_mtu() local
73 err = bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0); in xdp_exceed_mtu()
80 global_bpf_mtu_xdp = mtu_len; in xdp_exceed_mtu()
92 __u32 mtu_len = 0; in xdp_minus_delta() local
101 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) in xdp_minus_delta()
104 global_bpf_mtu_xdp = mtu_len; in xdp_minus_delta()
123 __u32 mtu_len = data_len - ETH_HLEN; in xdp_input_len() local
125 if (bpf_check_mtu(ctx, ifindex, &mtu_len, 0, 0)) in xdp_input_len()
128 global_bpf_mtu_xdp = mtu_len; in xdp_input_len()
144 __u32 mtu_len = GLOBAL_USER_MTU; in xdp_input_len_exceed() local
146 mtu_len += 1; /* Exceed with 1 */ in xdp_input_len_exceed()
148 err = bpf_check_mtu(ctx, ifindex, &mtu_len, 0, 0); in xdp_input_len_exceed()
152 global_bpf_mtu_xdp = mtu_len; in xdp_input_len_exceed()
160 __u32 mtu_len = 0; in tc_use_helper() local
163 if (bpf_check_mtu(ctx, 0, &mtu_len, delta, 0)) { in tc_use_helper()
168 if (mtu_len != GLOBAL_USER_MTU) in tc_use_helper()
171 global_bpf_mtu_tc = mtu_len; in tc_use_helper()
181 __u32 mtu_len = 0; in tc_exceed_mtu() local
188 err = bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0); in tc_exceed_mtu()
195 global_bpf_mtu_tc = mtu_len; in tc_exceed_mtu()
208 __u32 mtu_len = 0; in tc_exceed_mtu_da() local
215 err = bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0); in tc_exceed_mtu_da()
222 global_bpf_mtu_tc = mtu_len; in tc_exceed_mtu_da()
232 __u32 mtu_len = 0; in tc_minus_delta() local
241 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) in tc_minus_delta()
244 global_bpf_mtu_xdp = mtu_len; in tc_minus_delta()
259 __u32 mtu_len = GLOBAL_USER_MTU; in tc_input_len() local
261 if (bpf_check_mtu(ctx, ifindex, &mtu_len, 0, 0)) in tc_input_len()
264 global_bpf_mtu_xdp = mtu_len; in tc_input_len()
280 __u32 mtu_len = GLOBAL_USER_MTU; in tc_input_len_exceed() local
282 mtu_len += 1; /* Exceed with 1 */ in tc_input_len_exceed()
284 err = bpf_check_mtu(ctx, ifindex, &mtu_len, 0, 0); in tc_input_len_exceed()
288 global_bpf_mtu_xdp = mtu_len; in tc_input_len_exceed()