]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hv/hv_kvp_daemon: Handle IPv4 and Ipv6 combination for keyfile format
authorShradha Gupta <shradhagupta@linux.microsoft.com>
Fri, 22 Mar 2024 13:46:02 +0000 (06:46 -0700)
committerWei Liu <wei.liu@kernel.org>
Wed, 10 Apr 2024 21:25:40 +0000 (21:25 +0000)
commitf971f6dd3742d22dd13710306fb4365ea7bcb536
tree0ebef6eb56ecef532ffe97bdf68b131c2c243166
parentd9ea7a3f66a5c7e1a2f73cf4b20f5eff3ced4ff8
hv/hv_kvp_daemon: Handle IPv4 and Ipv6 combination for keyfile format

If the network configuration strings are passed as a combination of IPv4
and IPv6 addresses, the current KVP daemon does not handle processing for
the keyfile configuration format.
With these changes, the keyfile config generation logic scans through the
list twice to generate IPv4 and IPv6 sections for the configuration files
to handle this support.

Testcases ran:Rhel 9, Hyper-V VMs
              (IPv4 only, IPv6 only, IPv4 and IPv6 combination)

Co-developed-by: Ani Sinha <anisinha@redhat.com>
Signed-off-by: Ani Sinha <anisinha@redhat.com>
Signed-off-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Reviewed-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Tested-by: Ani Sinha <anisinha@redhat.com>
Reviewed-by: Ani Sinha <anisinha@redhat.com>
Link: https://lore.kernel.org/r/1711115162-11629-1-git-send-email-shradhagupta@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1711115162-11629-1-git-send-email-shradhagupta@linux.microsoft.com>
tools/hv/hv_kvp_daemon.c