Commit 6b96d7a
net_sched: sch_sfq: use a temporary work area for validating configuration
commit 8c0cea5 upstream.
Many configuration parameters have influence on others (e.g. divisor
-> flows -> limit, depth -> limit) and so it is difficult to correctly
do all of the validation before applying the configuration. And if a
validation error is detected late it is difficult to roll back a
partially applied configuration.
To avoid these issues use a temporary work area to update and validate
the configuration and only then apply the configuration to the
internal state.
Signed-off-by: Octavian Purdila <[email protected]>
Acked-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 1b562b7 commit 6b96d7a
1 file changed
+44
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
634 | 643 | | |
635 | 644 | | |
636 | 645 | | |
| |||
656 | 665 | | |
657 | 666 | | |
658 | 667 | | |
| 668 | + | |
659 | 669 | | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
660 | 681 | | |
661 | | - | |
662 | | - | |
| 682 | + | |
| 683 | + | |
663 | 684 | | |
664 | | - | |
| 685 | + | |
665 | 686 | | |
666 | | - | |
667 | | - | |
| 687 | + | |
| 688 | + | |
668 | 689 | | |
669 | 690 | | |
670 | 691 | | |
671 | | - | |
| 692 | + | |
672 | 693 | | |
673 | | - | |
674 | | - | |
| 694 | + | |
675 | 695 | | |
676 | 696 | | |
677 | 697 | | |
678 | 698 | | |
679 | 699 | | |
680 | 700 | | |
681 | | - | |
682 | | - | |
| 701 | + | |
| 702 | + | |
683 | 703 | | |
684 | 704 | | |
685 | | - | |
686 | | - | |
| 705 | + | |
| 706 | + | |
687 | 707 | | |
688 | 708 | | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
689 | 721 | | |
690 | 722 | | |
691 | 723 | | |
| |||
0 commit comments