[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <65d3fab9c64423fbf9841b21448fe48cd825070c.camel@redhat.com>
Date: Thu, 19 Jan 2023 11:57:25 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: Aurelien Aptel <aaptel@...dia.com>, linux-nvme@...ts.infradead.org,
netdev@...r.kernel.org, sagi@...mberg.me, hch@....de,
kbusch@...nel.org, axboe@...com, chaitanyak@...dia.com,
davem@...emloft.net, kuba@...nel.org
Cc: Boris Pismenny <borisp@...dia.com>, aurelien.aptel@...il.com,
smalin@...dia.com, malin1024@...il.com, ogerlitz@...dia.com,
yorayz@...dia.com
Subject: Re: [PATCH v9 01/25] net: Introduce direct data placement tcp
offload
Hi,
I'm sorry for the very late feedback.
On Tue, 2023-01-17 at 17:35 +0200, Aurelien Aptel wrote:
> diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
> index cc072d2cfcd8..c711614604a6 100644
> --- a/net/ipv4/tcp_input.c
> +++ b/net/ipv4/tcp_input.c
> @@ -5234,6 +5234,10 @@ tcp_collapse(struct sock *sk, struct sk_buff_head *list, struct rb_root *root,
> memcpy(nskb->cb, skb->cb, sizeof(skb->cb));
> #ifdef CONFIG_TLS_DEVICE
> nskb->decrypted = skb->decrypted;
> +#endif
> +#ifdef CONFIG_ULP_DDP
> + nskb->ulp_ddp = skb->ulp_ddp;
> + nskb->ulp_crc = skb->ulp_crc;
> #endif
> TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start;
> if (list)
> @@ -5267,6 +5271,10 @@ tcp_collapse(struct sock *sk, struct sk_buff_head *list, struct rb_root *root,
> #ifdef CONFIG_TLS_DEVICE
> if (skb->decrypted != nskb->decrypted)
> goto end;
> +#endif
> +#ifdef CONFIG_ULP_DDP
> + if (skb_is_ulp_crc(skb) != skb_is_ulp_crc(nskb))
> + goto end;
> #endif
> }
> }
I *think* a similar check is additionally needed in tcp_try_coalesce().
Possibly even in tcp_shift_skb_data().
Cheers,
Paolo
Powered by blists - more mailing lists