public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Paul Holzinger <pholzing@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>, passt-dev@passt.top
Subject: Re: [PATCH] checksum: Fix calculation for ICMP checksum on IPv4
Date: Wed, 26 Oct 2022 15:40:56 +0200	[thread overview]
Message-ID: <20221026154056.5a881b91@elisabeth> (raw)
In-Reply-To: <CAFsF8vLk_Qyva32Z5pH5Jic+NeFKrnaPLm_pw_QDARfjdiXQvQ@mail.gmail.com>

On Wed, 26 Oct 2022 15:07:42 +0200
Paul Holzinger <pholzing@redhat.com> wrote:

> Pcap file is attached.

Thanks, it's not the issue I had in mind. Here the ARP exchange already
happened, and the ICMP proxy is not tracking the first reply. We might
be using this kind of mechanism here, if bind() for ICMP echo sockets is
not allowed on the host:

  https://passt.top/passt/commit/?id=9663378d6d6dcd8275d60b826356cc4be0538231

(this issue was seen in KubeVirt with passt). But I don't have a clear
explanation as to why that first reply is ignored, yet. I'll need to
look further into this.

> > This difference is due to the fact that pasta allows any IP address to
> > be used by the container, and it will learn that on the first packet. I
> > see the same exact behaviour. We might be able to improve this, but I'm
> > not entirely sure.  
> 
> I might misunderstand how passt/pasta work but it already configured the
> interface in the netns with the correct ip, no? Why does it need to learn
> it?

Not in general. Podman is passing --config-net, so we can be reasonably
(but not totally) sure that that's going to be the address used in the
future -- the user could still change it manually.

In other cases, we might be offering zero or more of DHCP, NDP, DHCPv6,
depending on configuration, and nobody guarantees that the container or
a guest is actually implementing that.

-- 
Stefano


  parent reply	other threads:[~2022-10-26 13:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 16:07 [PATCH] checksum: Fix calculation for ICMP checksum on IPv4 Stefano Brivio
2022-10-25 17:25 ` Stefano Brivio
2022-10-26  0:06 ` David Gibson
     [not found]   ` <CAFsF8v+x-c=Rk6z+-hwwFWt0PvEu10u-rpkQ4F=Z2jbfAJPoww@mail.gmail.com>
2022-10-26 12:57     ` Stefano Brivio
     [not found]       ` <CAFsF8vLk_Qyva32Z5pH5Jic+NeFKrnaPLm_pw_QDARfjdiXQvQ@mail.gmail.com>
2022-10-26 13:40         ` Stefano Brivio [this message]
2022-10-26 14:28           ` Stefano Brivio

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=20221026154056.5a881b91@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    --cc=pholzing@redhat.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).