From: Stefano Brivio <sbrivio@redhat.com>
To: Volker Diels-Grabsch <v@njh.eu>
Cc: passt-dev@passt.top
Subject: Re: [PATCH v5 1/5] Show debug message whenever we learn a new guest MAC address
Date: Sat, 13 Sep 2025 12:15:45 +0200 [thread overview]
Message-ID: <20250913121545.1d19ca10@elisabeth> (raw)
In-Reply-To: <20250911201900.237677-2-v@njh.eu>
On Thu, 11 Sep 2025 22:18:57 +0200
Volker Diels-Grabsch <v@njh.eu> wrote:
> Signed-off-by: Volker Diels-Grabsch <v@njh.eu>
> ---
> tap.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tap.c b/tap.c
> index 7ba6399..3c08126 100644
> --- a/tap.c
> +++ b/tap.c
> @@ -1096,7 +1096,11 @@ void tap_add_packet(struct ctx *c, struct iov_tail *data,
> return;
>
> if (memcmp(c->guest_mac, eh->h_source, ETH_ALEN)) {
> + char bufmac[ETH_ADDRSTRLEN];
> +
> memcpy(c->guest_mac, eh->h_source, ETH_ALEN);
> + debug("Guest MAC address: %s",
I think this should say "New guest MAC address", or maybe even "New
guest MAC address observed" (a bit verbose though).
Otherwise it's not really clear to users what we're referring to here.
> + eth_ntop(c->guest_mac, bufmac, sizeof(bufmac)));
> proto_update_l2_buf(c->guest_mac, NULL);
> }
>
The rest of the series looks great to me!
--
Stefano
prev parent reply other threads:[~2025-09-13 10:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-11 20:18 [PATCH v5 1/5] Show debug message whenever we learn a new guest MAC address Volker Diels-Grabsch
2025-09-11 20:18 ` [PATCH v5 2/5] Improve clarity of comment Volker Diels-Grabsch
2025-09-12 1:17 ` David Gibson
2025-09-12 6:35 ` Stefano Brivio
2025-09-12 7:38 ` David Gibson
2025-09-11 20:19 ` [PATCH v5 3/5] Introduce constant MAC_BROADCAST Volker Diels-Grabsch
2025-09-12 1:17 ` David Gibson
2025-09-11 20:19 ` [PATCH v5 4/5] Fix --no-icmp description and make it imply --no-ndp Volker Diels-Grabsch
2025-09-12 1:18 ` David Gibson
2025-09-11 20:19 ` [PATCH v5 5/5] Send an initial ARP and NDP request to resolve the guest IP address Volker Diels-Grabsch
2025-09-12 3:29 ` David Gibson
2025-09-13 10:15 ` Stefano Brivio [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=20250913121545.1d19ca10@elisabeth \
--to=sbrivio@redhat.com \
--cc=passt-dev@passt.top \
--cc=v@njh.eu \
/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).