Re: [PATCH net 1/2] net/sched: act_ct: fix restore the qdisc_skb_cb after defrag

2020-07-02 Thread David Miller
From: wenxu Date: Thu, 2 Jul 2020 17:17:47 +0800 > On 7/2/2020 6:21 AM, David Miller wrote: >> From: we...@ucloud.cn >> Date: Mon, 29 Jun 2020 17:16:17 +0800 >> >> Nothing can clobber the qdisc_skb_cb like this in these packet flows >> otherwise we will have serious crashes and problems. Some pa

Re: [PATCH net 1/2] net/sched: act_ct: fix restore the qdisc_skb_cb after defrag

2020-07-02 Thread wenxu
On 7/2/2020 6:21 AM, David Miller wrote: > From: we...@ucloud.cn > Date: Mon, 29 Jun 2020 17:16:17 +0800 > >> From: wenxu >> >> The fragment packets do defrag in tcf_ct_handle_fragments >> will clear the skb->cb which make the qdisc_skb_cb clear >> too and set the pkt_len to 0. The bytes always

Re: [PATCH net 1/2] net/sched: act_ct: fix restore the qdisc_skb_cb after defrag

2020-07-01 Thread David Miller
From: we...@ucloud.cn Date: Mon, 29 Jun 2020 17:16:17 +0800 > From: wenxu > > The fragment packets do defrag in tcf_ct_handle_fragments > will clear the skb->cb which make the qdisc_skb_cb clear > too and set the pkt_len to 0. The bytes always 0 when dump > the filter. And it also update the pkt

[PATCH net 1/2] net/sched: act_ct: fix restore the qdisc_skb_cb after defrag

2020-06-29 Thread wenxu
From: wenxu The fragment packets do defrag in tcf_ct_handle_fragments will clear the skb->cb which make the qdisc_skb_cb clear too and set the pkt_len to 0. The bytes always 0 when dump the filter. And it also update the pkt_len after all the fragments finish the defrag to one packet and make the