From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D41C542DF8 for ; Fri, 7 Jul 2023 14:34:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3ECDF406B5; Fri, 7 Jul 2023 14:34:36 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 9ABD740685 for ; Fri, 7 Jul 2023 14:34:34 +0200 (CEST) Received: from dggpeml100019.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QyCSV5c13ztR1v; Fri, 7 Jul 2023 20:31:38 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggpeml100019.china.huawei.com (7.185.36.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 7 Jul 2023 20:34:32 +0800 Received: from dggpeml500020.china.huawei.com ([7.185.36.88]) by dggpeml500020.china.huawei.com ([7.185.36.88]) with mapi id 15.01.2507.027; Fri, 7 Jul 2023 20:34:32 +0800 From: "jiangheng (G)" To: Stephen Hemminger CC: "maxime.coquelin@redhat.com" , "chenbo.xia@intel.com" , "users@dpdk.org" Subject: why does virtio not support IPv4 CKSUM? Thread-Topic: why does virtio not support IPv4 CKSUM? Thread-Index: AdmvuxqAKvq8Er9ET6qfcLzNpsfxSgAGT/6AAD48ScAAAHmfUA== Date: Fri, 7 Jul 2023 12:34:32 +0000 Message-ID: <755827ef62454084b63beee310e0b546@huawei.com> References: <20230706073737.24bc2201@hermes.local> <9f63ee93df344a0f97732d28a31b6150@huawei.com> In-Reply-To: <9f63ee93df344a0f97732d28a31b6150@huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.136.117.195] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org >> Hi=20 >>=20 >> why does virtio not support IPv4 CKSUM? But support TCP/UDP cksum. > Because virtio is a software driver developed on Linux and Linux doesn't = need/want IP checksum offload. > It takes longer to look at offload bits then to compute checksum in SW. However, Virtio supports LRO. Is it possible to merge packets with incorrec= t cksum? Must cksum offload be enabled when LRO enabled? >>=20 >> If not support ipv4 cksum, when I use GRO, the ip cksum of the packets t= ransmitted to ip layer will be incorrect. >> I have to calculate ip cksum before packet was transmiited to ip layer. >> So why does virtio not support ipv4 cksum ?