[qca-nss-sfe] Change timer to delay work
make the sync process running cpu configurable.
Change-Id: Ie15140f71208f071e06f69130a940368a8b86d9e
Signed-off-by: Ken Zhu <quic_guigenz@quicinc.com>
diff --git a/sfe_ipv6.h b/sfe_ipv6.h
index 562c749..1526f5b 100644
--- a/sfe_ipv6.h
+++ b/sfe_ipv6.h
@@ -270,7 +270,9 @@
struct sfe_ipv6_connection *all_connections_tail;
/* Tail of the list of all connections */
unsigned int num_connections; /* Number of connections */
- struct timer_list timer; /* Timer used for periodic sync ops */
+ struct delayed_work sync_dwork; /* Work to sync the statistics */
+ unsigned int work_cpu; /* The core to run stats sync on */
+
sfe_sync_rule_callback_t __rcu sync_rule_callback;
/* Callback function registered by a connection manager for stats syncing */
struct sfe_ipv6_connection *conn_hash[SFE_IPV6_CONNECTION_HASH_SIZE];