ClatdController - populate ebpf ingress clat map on start and stop
and also attach/detach tc clsact egress qdisc and filter.
Test: atest netd_unit_test netd_integration_test
Bug: 65674744
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I865403ae320b95cec59659b34a69a4f304e1f082
diff --git a/server/Controllers.cpp b/server/Controllers.cpp
index fb5509c..5cf4e06 100644
--- a/server/Controllers.cpp
+++ b/server/Controllers.cpp
@@ -275,6 +275,10 @@
void Controllers::init() {
initIptablesRules();
Stopwatch s;
+
+ clatdCtrl.Init();
+ gLog.info("Initializing ClatdController: %.1fms", s.getTimeAndReset());
+
netdutils::Status tcStatus = trafficCtrl.start();
if (!isOk(tcStatus)) {
gLog.error("Failed to start trafficcontroller: (%s)", toString(tcStatus).c_str());