DPDK usage discussions
 help / color / mirror / Atom feed
From: "jiangheng (G)" <jiangheng14@huawei.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: "maxime.coquelin@redhat.com" <maxime.coquelin@redhat.com>,
	"chenbo.xia@intel.com" <chenbo.xia@intel.com>,
	"users@dpdk.org" <users@dpdk.org>
Subject: why does virtio not support IPv4 CKSUM?
Date: Fri, 7 Jul 2023 12:34:32 +0000	[thread overview]
Message-ID: <755827ef62454084b63beee310e0b546@huawei.com> (raw)
In-Reply-To: <9f63ee93df344a0f97732d28a31b6150@huawei.com>

>> Hi 
>> 
>> 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 incorrect cksum?
Must cksum offload be enabled when LRO enabled?

>> 
>> If not support ipv4 cksum, when I use GRO, the ip cksum of the packets transmitted 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 ?

      reply	other threads:[~2023-07-07 12:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-06  3:47 jiangheng (G)
2023-07-06 14:37 ` Stephen Hemminger
2023-07-07 12:21   ` 答复: " jiangheng (G)
2023-07-07 12:34     ` jiangheng (G) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=755827ef62454084b63beee310e0b546@huawei.com \
    --to=jiangheng14@huawei.com \
    --cc=chenbo.xia@intel.com \
    --cc=maxime.coquelin@redhat.com \
    --cc=stephen@networkplumber.org \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).