Searched refs:mtu_len (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | test_check_mtu.c | 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 [all …]
|
D | test_cls_redirect.c | 414 uint32_t mtu_len = 0; in forward_with_gre() local 487 if (bpf_check_mtu(skb, skb->ifindex, &mtu_len, delta, 0)) { in forward_with_gre()
|
D | test_cls_redirect_dynptr.c | 305 uint32_t mtu_len = 0; in forward_with_gre() local 381 if (bpf_check_mtu(skb, skb->ifindex, &mtu_len, delta, 0)) { in forward_with_gre()
|
/linux-6.12.1/net/core/ |
D | filter.c | 6280 u32, ifindex, u32 *, mtu_len, s32, len_diff, u64, flags) in BPF_CALL_5() argument 6288 if (unlikely(flags & BPF_MTU_CHK_SEGS && (len_diff || *mtu_len))) in BPF_CALL_5() 6299 skb_len = *mtu_len ? *mtu_len + dev->hard_header_len : skb->len; in BPF_CALL_5() 6318 *mtu_len = mtu; in BPF_CALL_5() 6323 u32, ifindex, u32 *, mtu_len, s32, len_diff, u64, flags) in BPF_CALL_5() argument 6342 if (*mtu_len) in BPF_CALL_5() 6343 xdp_len = *mtu_len + dev->hard_header_len; in BPF_CALL_5() 6349 *mtu_len = mtu; in BPF_CALL_5()
|