[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DM6PR12MB35649D22C1B41F895344E239BCC49@DM6PR12MB3564.namprd12.prod.outlook.com>
Date: Thu, 19 Jan 2023 19:25:22 +0000
From: Shai Malin <smalin@...dia.com>
To: Paolo Abeni <pabeni@...hat.com>,
Aurelien Aptel <aaptel@...dia.com>,
"linux-nvme@...ts.infradead.org" <linux-nvme@...ts.infradead.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"sagi@...mberg.me" <sagi@...mberg.me>, "hch@....de" <hch@....de>,
"kbusch@...nel.org" <kbusch@...nel.org>,
"axboe@...com" <axboe@...com>,
Chaitanya Kulkarni <chaitanyak@...dia.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"kuba@...nel.org" <kuba@...nel.org>
CC: Boris Pismenny <borisp@...dia.com>,
"aurelien.aptel@...il.com" <aurelien.aptel@...il.com>,
"malin1024@...il.com" <malin1024@...il.com>,
Or Gerlitz <ogerlitz@...dia.com>,
Yoray Zack <yorayz@...dia.com>
Subject: RE: [PATCH v9 01/25] net: Introduce direct data placement tcp offload
On Thu, 19 Jan 2023 at 12:57, Paolo Abeni wrote:
>
> 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().
Thanks!
It is needed in tcp_try_coalesce() when SKBs are merged.
We will fix it in the next iteration.
> Possibly even in tcp_shift_skb_data().
In tcp_shift_skb_data() it's not needed.
>
> Cheers,
>
> Paolo
Powered by blists - more mailing lists