mgmt: tables.cs_policy config option
refs #3148
Change-Id: Icf30bbe508c1c491949d9fcb433fdfa16842d312
diff --git a/daemon/table/cs.cpp b/daemon/table/cs.cpp
index 0dd5ca2..dd72214 100644
--- a/daemon/table/cs.cpp
+++ b/daemon/table/cs.cpp
@@ -51,9 +51,9 @@
return Policy::create(DEFAULT_POLICY);
}
-Cs::Cs(size_t nMaxPackets, unique_ptr<Policy> policy)
+Cs::Cs(size_t nMaxPackets)
{
- this->setPolicyImpl(std::move(policy));
+ this->setPolicyImpl(makeDefaultPolicy());
m_policy->setLimit(nMaxPackets);
}