Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package powerpc-utils for openSUSE:Factory 
checked in at 2026-11-27 19:40:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/powerpc-utils (Old)
 and      /work/SRC/openSUSE:Factory/.powerpc-utils.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "powerpc-utils"

Fri Nov 27 19:40:37 2026 rev:162 rq:1400542 version:1.3.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/powerpc-utils/powerpc-utils.changes      
2026-08-29 17:41:26.063082798 +0200
+++ /work/SRC/openSUSE:Factory/.powerpc-utils.new.1340718/powerpc-utils.changes 
2026-11-27 19:41:24.220720147 +0100
@@ -1,0 +2,6 @@
+Wed Nov 25 11:00:10 UTC 2026 - Michal Suchanek <[email protected]>
+
+- hcnmgr: load bonding only when HNV is configured (bsc#1246862 ltc#214374)
+  * hcnmgr-load-bonding-only-when-HNV-is-configured.patch
+
+-------------------------------------------------------------------

New:
----
  _scmsync.obsinfo
  build.specials.obscpio
  hcnmgr-load-bonding-only-when-HNV-is-configured.patch

----------(New B)----------
  New:- hcnmgr: load bonding only when HNV is configured (bsc#1246862 
ltc#214374)
  * hcnmgr-load-bonding-only-when-HNV-is-configured.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ powerpc-utils.spec ++++++
--- /var/tmp/diff_new_pack.KG0GpT/_old  2026-11-27 19:41:26.985835178 +0100
+++ /var/tmp/diff_new_pack.KG0GpT/_new  2026-11-27 19:41:26.992835469 +0100
@@ -40,6 +40,7 @@
 Patch13:        ppc64_cpu-bring-power-mode-reporting-inline-with-PAP.patch
 Patch14:        drmgr-Use-30-secs-timeout-for-each-LMB-removal-kerne.patch
 Patch15:        lparstat-report-virtual-cpus-as-vcpu-in-non-legacy-m.patch
+Patch16:        hcnmgr-load-bonding-only-when-HNV-is-configured.patch
 Patch42:        ofpathname_powernv.patch
 Patch43:        fix_kexec_service_name_for_suse.patch
 Patch44:        libvirt-service-dep.patch

++++++ _scmsync.obsinfo ++++++
mtime: 1795604546
commit: a12cb7cb3bc70b5841c717799b5ea0d9001e9c4ed9abf9ef3a4e7933284b9911
url: https://src.opensuse.org/hardware/powerpc-utils
revision: main

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-11-25 12:02:26.000000000 +0100
@@ -0,0 +1,4 @@
+*.obscpio
+*.osc
+_build.*
+.pbuild

++++++ hcnmgr-load-bonding-only-when-HNV-is-configured.patch ++++++
>From 526c2eaf369beb9086d20ccd69f5c6fca5ba43a8 Mon Sep 17 00:00:00 2001
From: Ranjani Suraj <[email protected]>
Date: Wed, 18 Nov 2026 11:36:58 -0600
Subject: [PATCH] hcnmgr: load bonding only when HNV is configured

When HNV is not configured, unconditionally loading the bonding module
at startup is unneeded, and if the bonding module is unavailable,
modprobe will fail and hcnmgr will throw an error.

We drop the unconditional modprobe and load the module when we have
ensured that HNV is configured, using a load_bonding() helper function
* in do_config_vdevice() before configuring a device
* in scanhcn_wicked() after at least one HCN device is found

Note: do_config_vdevice() is reached from cfghcn (NetworkManager and
wicked), and from scanhcn_nm(), so scanhcn_nm() does not need its own
load_bonding() call. However, scanhcn_wicked() configures bonds in a
batch and as such does not call do_config_vdevice(), so it has a
load_bonding() call.

Signed-off-by: Ranjani Suraj <[email protected]>
Reviewed-by: Mingming Cao <[email protected]>
---
 scripts/hcnmgr | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/scripts/hcnmgr b/scripts/hcnmgr
index 6a15795..8ae9b94 100644
--- a/scripts/hcnmgr
+++ b/scripts/hcnmgr
@@ -346,6 +346,17 @@ check_transfer_ip_to_bond_nm() {
        return 0
 }
 
+#
+# function load_bonding
+#      load the bonding module (only called once HNV is known to be configured)
+#
+load_bonding() {
+       hcnlog DEBUG "HCNMGR: Loading bonding module if not already present"
+       if ! modprobe bonding $BOND_MODPROBE_OPTS; then
+               err $E_NOMODULE
+       fi
+}
+
 #
 # function do_config_vdevice_nm
 #      configure or create HCN (active-backup bonding)
@@ -535,6 +546,7 @@ do_config_vdevice_wicked() {
 }
 
 do_config_vdevice() {
+       load_bonding
        hcnid_state_create "$HCNID"
        case $SERVICE in
                NetworkManager.service)
@@ -1016,6 +1028,11 @@ scanhcn_wicked() {
                fi
        done
 
+       # Load the bonding module only if HNV is configured
+       if [ ${#hcnids[@]} -gt 0 ]; then
+               load_bonding
+       fi
+
        # Cleanup (and shutdown) obsolete bondings or unenslave obsolete slaves
        # This can happen when the LPAR has been shut down and reconfigured at
        # next boot (or as attempt to fix via manual rescan when something went
@@ -1206,12 +1223,6 @@ fi
 #Init the distribution and the network service
 check_network_service
 
-#Validate bonding module is loaded
-hcnlog DEBUG "HCNMGR: Loading bonding module if not already present"
-if ! modprobe bonding $BOND_MODPROBE_OPTS; then
-       err $E_NOMODULE
-fi
-
 #Parse the DRC_INDEX and HCN_ID from the arguments
 for param in "$@"; do
        if [[ $param =~ ^DRC_INDEX=(.+)$ ]]; then
-- 
2.56.1

Reply via email to