[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <PH0PR18MB3845EC64645DFFA3BA9BCD63CCC60@PH0PR18MB3845.namprd18.prod.outlook.com>
Date: Tue, 15 Dec 2020 14:07:27 +0000
From: Shai Malin <smalin@...vell.com>
To: Boris Pismenny <borisp@...lanox.com>,
"kuba@...nel.org" <kuba@...nel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"saeedm@...dia.com" <saeedm@...dia.com>, "hch@....de" <hch@....de>,
"sagi@...mberg.me" <sagi@...mberg.me>,
"axboe@...com" <axboe@...com>,
"kbusch@...nel.org" <kbusch@...nel.org>,
"viro@...iv.linux.org.uk" <viro@...iv.linux.org.uk>,
"edumazet@...gle.com" <edumazet@...gle.com>
CC: Yoray Zack <yorayz@...lanox.com>,
"yorayz@...dia.com" <yorayz@...dia.com>,
"boris.pismenny@...il.com" <boris.pismenny@...il.com>,
Ben Ben-Ishay <benishay@...lanox.com>,
"benishay@...dia.com" <benishay@...dia.com>,
"linux-nvme@...ts.infradead.org" <linux-nvme@...ts.infradead.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Or Gerlitz <ogerlitz@...lanox.com>,
"ogerlitz@...dia.com" <ogerlitz@...dia.com>
Subject: RE: [PATCH v1 net-next 07/15] nvme-tcp : Recalculate crc in the end
of the capsule
> crc offload of the nvme capsule. Check if all the skb bits are on, and if not
> recalculate the crc in SW and check it.
>
> This patch reworks the receive-side crc calculation to always run at the end,
> so as to keep a single flow for both offload and non-offload. This change
> simplifies the code, but it may degrade performance for non-offload crc
> calculation.
>
> Signed-off-by: Boris Pismenny <borisp@...lanox.com>
> Signed-off-by: Ben Ben-Ishay <benishay@...lanox.com>
> Signed-off-by: Or Gerlitz <ogerlitz@...lanox.com>
> Signed-off-by: Yoray Zack <yorayz@...lanox.com>
> ---
> drivers/nvme/host/tcp.c | 111 ++++++++++++++++++++++++++++++++----
> ----
> 1 file changed, 91 insertions(+), 20 deletions(-)
>
> diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c index
> 534fd5c00f33..3c10c8876036 100644
> --- a/drivers/nvme/host/tcp.c
> +++ b/drivers/nvme/host/tcp.c
> @@ -69,6 +69,7 @@ enum nvme_tcp_queue_flags {
> NVME_TCP_Q_LIVE = 1,
> NVME_TCP_Q_POLLING = 2,
> NVME_TCP_Q_OFFLOADS = 3,
> + NVME_TCP_Q_OFF_CRC_RX = 4,
Because only the data digest is offloaded, and not the header digest,
in order to avoid confusion, I suggest replacing the term
NVME_TCP_Q_OFF_CRC_RX with NVME_TCP_Q_OFF_DDGST_RX.
> };
Powered by blists - more mailing lists