Lines Matching full:delta

38 	int delta = 0;  in xdp_use_helper()  local
44 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) { in xdp_use_helper()
67 int delta; in xdp_exceed_mtu() local
70 /* Exceed MTU with 1 via delta adjust */ in xdp_exceed_mtu()
71 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in xdp_exceed_mtu()
73 err = bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0); in xdp_exceed_mtu()
93 int delta; in xdp_minus_delta() local
95 /* Borderline test case: Minus delta exceeding packet length allowed */ in xdp_minus_delta()
96 delta = -((data_len - ETH_HLEN) + 1); in xdp_minus_delta()
98 /* Minus length (adjusted via delta) still pass MTU check, other helpers in xdp_minus_delta()
101 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) in xdp_minus_delta()
161 int delta = 0; in tc_use_helper() local
163 if (bpf_check_mtu(ctx, 0, &mtu_len, delta, 0)) { in tc_use_helper()
182 int delta; in tc_exceed_mtu() local
185 /* Exceed MTU with 1 via delta adjust */ in tc_exceed_mtu()
186 delta = GLOBAL_USER_MTU - (skb_len - ETH_HLEN) + 1; in tc_exceed_mtu()
188 err = bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0); in tc_exceed_mtu()
209 int delta; in tc_exceed_mtu_da() local
212 /* Exceed MTU with 1 via delta adjust */ in tc_exceed_mtu_da()
213 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in tc_exceed_mtu_da()
215 err = bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0); in tc_exceed_mtu_da()
233 int delta; in tc_minus_delta() local
235 /* Borderline test case: Minus delta exceeding packet length allowed */ in tc_minus_delta()
236 delta = -((skb_len - ETH_HLEN) + 1); in tc_minus_delta()
238 /* Minus length (adjusted via delta) still pass MTU check, other helpers in tc_minus_delta()
241 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) in tc_minus_delta()