The CMM restart on interface reassignment moves to the MVC assignment API, which replaced interfaces_assign.php in 26.7. The mirror patch is unchanged but for the plist, where upstream's trusted key changed. Both apply to core 26.7.9 with git am. caddy-custom's plugins are pinned at their versions of 2026-11-11, when 26.7.9 was tagged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.6 KiB
Diff
31 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tomaz Zaman <tomaz@mono.si>
|
|
Date: Fri, 3 Apr 2026 16:54:29 +0200
|
|
Subject: [PATCH 1/2] interfaces: restart CMM on interface reassignment
|
|
|
|
When interfaces are reassigned, CDX hardware flow tables retain stale
|
|
entries from the old interface mapping. CMM catches address changes via
|
|
route socket events, but reassignment can happen without IP changes.
|
|
Trigger a CMM restart via configd after saving interface assignments
|
|
to flush stale offload state and re-discover interfaces.
|
|
|
|
26.7: interface assignments are applied by the MVC assignment API
|
|
(Interfaces\Api\AssignmentController::reconfigureAction) instead of
|
|
interfaces_assign.php.
|
|
---
|
|
.../OPNsense/Interfaces/Api/AssignmentController.php | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Interfaces/Api/AssignmentController.php b/src/opnsense/mvc/app/controllers/OPNsense/Interfaces/Api/AssignmentController.php
|
|
index 61193fc..4b1188f 100644
|
|
--- a/src/opnsense/mvc/app/controllers/OPNsense/Interfaces/Api/AssignmentController.php
|
|
+++ b/src/opnsense/mvc/app/controllers/OPNsense/Interfaces/Api/AssignmentController.php
|
|
@@ -186,6 +186,8 @@ class AssignmentController extends ApiMutableModelControllerBase
|
|
$this->getModel()->flush_todo();
|
|
/* exec filter reload after doing accounting */
|
|
$backend->configdRun('filter reload skip_alias', true);
|
|
+ /* flush stale hardware offload state (Mono Gateway CMM/CDX) */
|
|
+ $backend->configdRun('cmm restart', true);
|
|
return ["status" => "ok"];
|
|
}
|
|
}
|