From: Volker Diels-Grabsch <v@njh.eu>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH v4] Send an initial ARP and NDP request to resolve the guest IP address
Date: Thu, 11 Sep 2025 21:47:56 +0200 [thread overview]
Message-ID: <aMMnbHBIRQbApl-7@6153f789-1cf1-4ca3-8cea-6fa7ae195a8b.njh.eu> (raw)
In-Reply-To: <20250910163218.620bfef7@elisabeth>
Stefano Brivio wrote:
> > memcpy(c->guest_mac, eh->h_source, ETH_ALEN);
> > + info("Guest MAC address: %s", eth_ntop(c->guest_mac, bufmac, sizeof(bufmac)));
>
> This is one line you can break easily instead. But I don't think it
> should be info(), otherwise the guest can happily spam system logs on
> the host.
>
> I'm undecided between suggesting debug() or trace(), because on one
> hand it's a rather relevant information (maybe say "New guest MAC
> address"?), on the other hand nothing prevents a guest from using a
> different MAC address every other frame, and make debugging with --debug
> impossible if this happens.
For debugging this issue that message was extremely helpful, so I
strongly recommend to not hide it in trace(). I personally would
even like to keep it info(), but I'll demote it to debug() as you
request.
> We don't have (yet) a generic rate limiting mechanism for prints.
> Maybe we could go with trace() for the moment, and the day we have it,
> switch this to a rate-limited debug() (or even info(), at that point).
In the unlikely case a client really does spam us with an every
changing MAC address, we can still easily grep those messages out.
I'll soon provide v5 of my patch.
Best regards,
Volker
--
.---<<<((()))>>>---.
| [[||]] |
'---<<<((()))>>>---'
next prev parent reply other threads:[~2025-09-11 19:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-10 11:35 [PATCH v4] Send an initial ARP and NDP request to resolve the guest IP Volker Diels-Grabsch
2025-09-10 11:35 ` [PATCH v4] Send an initial ARP and NDP request to resolve the guest IP address Volker Diels-Grabsch
2025-09-10 14:32 ` Stefano Brivio
2025-09-11 19:47 ` Volker Diels-Grabsch [this message]
2025-09-10 14:10 ` [PATCH v4] Send an initial ARP and NDP request to resolve the guest IP 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=aMMnbHBIRQbApl-7@6153f789-1cf1-4ca3-8cea-6fa7ae195a8b.njh.eu \
--to=v@njh.eu \
--cc=passt-dev@passt.top \
--cc=sbrivio@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).