From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpbgeu1.qq.com (smtpbgeu1.qq.com [52.59.177.22]) by dpdk.org (Postfix) with ESMTP id D9E152BB8 for ; Tue, 26 Feb 2019 09:29:20 +0100 (CET) X-QQ-mid: bizesmtp18t1551169745tei4y2y1 Received: from DESKTOPDQ7VDGF (unknown [202.106.72.208]) by esmtp6.qq.com (ESMTP) with SMTP id 0 for ; Tue, 26 Feb 2019 16:29:04 +0800 (CST) X-QQ-SSF: 00400000000000B0D220B00A0000000 X-QQ-FEAT: 3jlOKZxptE7ljzFwWQaamqsMOfkliszk56r44orpV63cn8G25gUf6DONu7cyi vw0Z1vqAGTZyr7KXgJRBWoWqtfaftDkcqLw3/qEpL/usgtfOsvobQIHsXI53l5SX/KToC7b gCAGnKCHBm1i9P/ay0miFGHZjnD+nia0Af3NwMCNbiPCj3/cuOMiROWmUa4/J0CI92iidFK uwqtiIvxT3hqZQS++DAHAk+AMD4zqyELK7QekpjJMfcTQKMcHBZLe6pD3YMvSTtRz2jF1Jn J2vuybxMHYp6YmbWUjHSndv5eUdfwrrpstLw== X-QQ-GoodBg: 2 From: =?gb2312?B?y8693Q==?= To: "'users'" Date: Tue, 26 Feb 2019 16:29:00 +0800 Message-ID: <000001d4cdad$5500d060$ff027120$@zctt.com>+082F8EC57162BA8A MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdTNrVKorNZgYbS2Qx+JokOF8HbyUg== Content-Language: zh-cn X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:zctt.com:qybgforeign:qybgforeign4 X-QQ-Bgrelay: 1 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] How to make virtual NIC (virtio and vmxnet3) support IP header checksum? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2019 08:29:21 -0000 Hi All I test the DPDK virtual nics both in Esxi and KVM, I used DPDK = vmxnet3, virtio and e1000 nic. I need create IP packets and TX them. =20 I set the rte_mbuf as below before TX. mb->l2_len =3D len(out_eth) mb->l3_len =3D len(out_ip) mb->ol_flags |=3D PKT_TX_IPV4 | PKT_TX_IP_CSUM =20 It worked well with DPDK virtual e1000 nic, the IP header checksum will = be set correct value. but vmxnet3 and virtio just keep 0 for IP header checksum.=20 I disable above code and call rte_ipv4_cksum for each IP header = checksum. it worked with vmxnet3 and virtio when TX slowly, but checksum invalid once = TX quicklyL =20 Why the DPDK vmxnet3 and virtio drivers don't support IP checksum? If there=A1=AFs an easy way for adding the IP header checksum with = vmxnet3 and virtio ? =20 =20 Thanks =20 Jie