--- zzzz-none-000/linux-5.4.213/net/ipv4/tcp_output.c 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/net/ipv4/tcp_output.c 2024-05-29 11:20:02.000000000 +0000 @@ -1106,6 +1106,10 @@ skb_set_dst_pending_confirm(skb, sk->sk_dst_pending_confirm); +#ifdef CONFIG_AVM_SK_TC_INDEX + skb->tc_index = sk->sk_tc_index; +#endif + /* Build TCP header and checksum it. */ th = (struct tcphdr *)skb->data; th->source = inet->inet_sport; @@ -1350,6 +1354,10 @@ buff->truesize += nlen; skb->truesize -= nlen; +#ifdef CONFIG_AVM_SK_TC_INDEX + skb->tc_index = sk->sk_tc_index; +#endif + /* Correct the sequence numbers. */ TCP_SKB_CB(buff)->seq = TCP_SKB_CB(skb)->seq + len; TCP_SKB_CB(buff)->end_seq = TCP_SKB_CB(skb)->end_seq;