Commit f48d431
committed
selftests/bpf: tc_tunnel - pass decap flags for tunnel type
commit-author Nick Hudson <nhudson@akamai.com>
commit -
commit-source https://lore.kernel.org/netdev/20260504101759.3319427-7-nhudson@akamai.com/
upstream-diff |
The upstream patch targets a newer selftest framework with CO-RE
support (bpf_cast_to_kern_ctx, bpf_core_cast, bpf_core_enum_value_exists).
This tree has an older version of test_tc_tunnel.c without those
features, so the following upstream changes were dropped:
- CO-RE enum existence checks for flag availability
- Post-decap GSO gso_type and skb->encapsulation validation
- TSO disable removal from prog_tests/test_tc_tunnel.c (file absent)
The functional flag-passing changes (DECAP_L4_GRE, DECAP_L4_UDP,
DECAP_IPXIP4, DECAP_IPXIP6) to decap_internal/decap_ipv4/decap_ipv6
are applied as in upstream.
Pass the new BPF_F_ADJ_ROOM_DECAP_* flags through the decap path so
the kernel clears the correct GSO and encapsulation state when removing
tunnel headers.
Signed-off-by: Nick Hudson <nhudson@akamai.com>
Signed-off-by: Brett Mastbergen <bmastbergen@ciq.com>1 parent d84d5ac commit f48d431
1 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
| 601 | + | |
601 | 602 | | |
602 | 603 | | |
603 | 604 | | |
| |||
607 | 608 | | |
608 | 609 | | |
609 | 610 | | |
610 | | - | |
| 611 | + | |
| 612 | + | |
611 | 613 | | |
612 | 614 | | |
613 | | - | |
| 615 | + | |
| 616 | + | |
614 | 617 | | |
615 | 618 | | |
616 | 619 | | |
617 | 620 | | |
618 | 621 | | |
619 | 622 | | |
620 | 623 | | |
621 | | - | |
| 624 | + | |
| 625 | + | |
622 | 626 | | |
623 | 627 | | |
624 | | - | |
| 628 | + | |
| 629 | + | |
625 | 630 | | |
626 | 631 | | |
627 | 632 | | |
628 | 633 | | |
629 | 634 | | |
630 | 635 | | |
631 | 636 | | |
| 637 | + | |
632 | 638 | | |
633 | 639 | | |
634 | 640 | | |
| |||
642 | 648 | | |
643 | 649 | | |
644 | 650 | | |
| 651 | + | |
645 | 652 | | |
646 | 653 | | |
647 | 654 | | |
| |||
678 | 685 | | |
679 | 686 | | |
680 | 687 | | |
681 | | - | |
| 688 | + | |
| 689 | + | |
682 | 690 | | |
683 | 691 | | |
684 | 692 | | |
| |||
690 | 698 | | |
691 | 699 | | |
692 | 700 | | |
693 | | - | |
| 701 | + | |
| 702 | + | |
694 | 703 | | |
695 | 704 | | |
696 | 705 | | |
| |||
0 commit comments