From: Andrea Claudi <aclaudi@redhat.com>
To: Stephen Gallagher <sgallagh@redhat.com>
Cc: netdev@vger.kernel.org, stephen@networkplumber.org, dsahern@kernel.org
Subject: Re: [PATCH] iproute2: fix type incompatibility in ifstat.c
Date: Tue, 6 Feb 2024 17:17:18 +0100 [thread overview]
Message-ID: <ZcJbjmOKMNiNo5LE@renaissance-vector> (raw)
In-Reply-To: <20240206142213.777317-1-sgallagh@redhat.com>
On Tue, Feb 06, 2024 at 09:22:06AM -0500, Stephen Gallagher wrote:
> Throughout ifstat.c, ifstat_ent.val is accessed as a long long unsigned
> type, however it is defined as __u64. This works by coincidence on many
> systems, however on ppc64le, __u64 is a long unsigned.
>
> This patch makes the type definition consistent with all of the places
> where it is accessed.
>
> Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
> ---
> misc/ifstat.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/misc/ifstat.c b/misc/ifstat.c
> index 721f4914..767cedd4 100644
> --- a/misc/ifstat.c
> +++ b/misc/ifstat.c
> @@ -58,7 +58,7 @@ struct ifstat_ent {
> struct ifstat_ent *next;
> char *name;
> int ifindex;
> - __u64 val[MAXS];
> + unsigned long long val[MAXS];
> double rate[MAXS];
> __u32 ival[MAXS];
> };
> --
> 2.43.0
>
Hi Stephen, thanks for taking care of this.
FYI, patch directed to iproute2 or iproute2-next tree should:
- preferrably have [PATCH iproute2] in their subject
- be directed or cc'd to iproute2 maintainers Stephen Hemminger and
David Ahern, and to the author of the fixed commit if possible.
This should include a Fixes: line on the commit changing val to __u64:
Fixes: 5a52102b7c8f ("ifstat: Add extended statistics to ifstat")
Stephen, David: do Stephen needs to resend this?
That said, patch looks good to me, so feel free to add my reviewed-by to
the following versions of this patch.
Reviewed-by: Andrea Claudi <aclaudi@redhat.com>
next prev parent reply other threads:[~2024-02-06 16:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-06 14:22 [PATCH] iproute2: fix type incompatibility in ifstat.c Stephen Gallagher
2024-02-06 16:17 ` Andrea Claudi [this message]
2024-02-06 16:52 ` [PATCH iproute] Fix " Stephen Gallagher
2024-02-06 16:52 ` [PATCH] iproute2: fix " Stephen Gallagher
2024-02-15 3:10 ` patchwork-bot+netdevbpf
2024-02-07 3:12 ` Stephen Hemminger
2024-02-07 6:44 ` Florian Weimer
2024-02-08 18:17 ` Stephen Gallagher
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=ZcJbjmOKMNiNo5LE@renaissance-vector \
--to=aclaudi@redhat.com \
--cc=dsahern@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sgallagh@redhat.com \
--cc=stephen@networkplumber.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.