[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] Compact reported IPv[4|6] address xenstore values


  • To: Owen Smith <owen.smith@xxxxxxxxxx>, win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
  • Date: Tue, 8 Sep 2026 16:39:16 +0200
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=vates.tech header.i="@vates.tech" header.h="From:Subject:Date:Message-ID:To:MIME-Version:Content-Type:In-Reply-To:References:Feedback-ID"
  • Delivery-date: Tue, 08 Sep 2026 14:39:23 +0000
  • Feedback-id: default:8631fc262581453bbf619ec5b2062170:Sweego
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

On 08/09/2026 08:55, Owen Smith wrote:
> Pass the index of IPv[4|6] into the FrontendDumpIPv[4|6]Address call, to
> zero-index the IP address dumps to each of the specific protocols. Otherwise,
> an adapter could report uncontiguous indexes across IPv4 and IPv6.
> This also avoids cases where the address table contains non-IPv[4|6] 
> addresses,
> skipping indexes into the xenstore data.
> 
> Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>

Reviewed-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>

> ---
>   src/xenvif/frontend.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/xenvif/frontend.c b/src/xenvif/frontend.c
> index b772349..bece661 100644
> --- a/src/xenvif/frontend.c
> +++ b/src/xenvif/frontend.c
> @@ -907,7 +907,7 @@ FrontendDumpAddressTable(
>           case AF_INET: {
>               status = FrontendDumpIPv4Address(Frontend,
>                                                Transaction,
> -                                             Index,
> +                                             IpVersion4Count,
>                                                Entry);
>               if (!NT_SUCCESS(status))
>                   goto fail4;
> @@ -918,7 +918,7 @@ FrontendDumpAddressTable(
>           case AF_INET6: {
>               status = FrontendDumpIPv6Address(Frontend,
>                                                Transaction,
> -                                             Index,
> +                                             IpVersion6Count,
>                                                Entry);
>               if (!NT_SUCCESS(status))
>                   goto fail4;



--
Ngoc Tu Dinh | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.