Commit ae372cb
net/sched: act_ct: fix restore the qdisc_skb_cb after defrag
The fragment packets do defrag in tcf_ct_handle_fragments
will clear the skb->cb which make the qdisc_skb_cb clear
too. So the qdsic_skb_cb should be store before defrag and
restore after that.
It also update the pkt_len after all the
fragments finish the defrag to one packet and make the
following actions counter correct.
Fixes: b57dc7c ("net/sched: Introduce action ct")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 1e8fd3a commit ae372cb
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
| 676 | + | |
677 | 677 | | |
678 | 678 | | |
| 679 | + | |
679 | 680 | | |
680 | 681 | | |
681 | 682 | | |
| |||
693 | 694 | | |
694 | 695 | | |
695 | 696 | | |
| 697 | + | |
696 | 698 | | |
697 | 699 | | |
698 | 700 | | |
| |||
703 | 705 | | |
704 | 706 | | |
705 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
706 | 711 | | |
707 | 712 | | |
708 | 713 | | |
| |||
711 | 716 | | |
712 | 717 | | |
713 | 718 | | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
714 | 722 | | |
715 | 723 | | |
716 | 724 | | |
717 | 725 | | |
718 | 726 | | |
719 | 727 | | |
| 728 | + | |
720 | 729 | | |
721 | 730 | | |
722 | 731 | | |
| |||
914 | 923 | | |
915 | 924 | | |
916 | 925 | | |
| 926 | + | |
917 | 927 | | |
918 | 928 | | |
919 | 929 | | |
| |||
946 | 956 | | |
947 | 957 | | |
948 | 958 | | |
949 | | - | |
| 959 | + | |
950 | 960 | | |
951 | 961 | | |
952 | 962 | | |
| |||
1014 | 1024 | | |
1015 | 1025 | | |
1016 | 1026 | | |
| 1027 | + | |
| 1028 | + | |
1017 | 1029 | | |
1018 | 1030 | | |
1019 | 1031 | | |
| |||
0 commit comments