[qca-nss-drv] Adds priority based RPS

Allow users to map packets with certain priority to specified core.

Change-Id: I9439e957412d98e105696804c61b7f94fcf8bf1c
Signed-off-by: Cemil Coskun <ccoskun@codeaurora.org>
diff --git a/nss_init.c b/nss_init.c
index 1536741..870990d 100644
--- a/nss_init.c
+++ b/nss_init.c
@@ -100,7 +100,7 @@
 
 /*
  * nss_probe()
- * 	HLOS device probe callback
+ *	HLOS device probe callback
  */
 static inline int nss_probe(struct platform_device *nss_dev)
 {
@@ -109,7 +109,7 @@
 
 /*
  * nss_remove()
- * 	HLOS device remove callback
+ *	HLOS device remove callback
  */
 static inline int nss_remove(struct platform_device *nss_dev)
 {
@@ -469,7 +469,7 @@
 		.data                   = &nss_ctl_redirect,
 		.maxlen                 = sizeof(int),
 		.mode                   = 0644,
-		.proc_handler   	= proc_dointvec,
+		.proc_handler		= proc_dointvec,
 	},
 #if (NSS_FW_DBG_SUPPORT == 1)
 	{
@@ -477,7 +477,7 @@
 		.data                   = &nss_ctl_debug,
 		.maxlen                 = sizeof(int),
 		.mode                   = 0644,
-		.proc_handler   	= &nss_debug_handler,
+		.proc_handler		= &nss_debug_handler,
 	},
 #endif
 	{
@@ -485,14 +485,14 @@
 		.data                   = &nss_cmd_buf.coredump,
 		.maxlen                 = sizeof(int),
 		.mode                   = 0644,
-		.proc_handler   	= &nss_coredump_handler,
+		.proc_handler		= &nss_coredump_handler,
 	},
 	{
 		.procname               = "logbuf",
 		.data                   = &nss_ctl_logbuf,
 		.maxlen                 = sizeof(int),
 		.mode                   = 0644,
-		.proc_handler   	= &nss_logbuffer_handler,
+		.proc_handler		= &nss_logbuffer_handler,
 	},
 	{
 		.procname               = "jumbo_mru",
@@ -641,6 +641,11 @@
 	nss_n2h_register_sysctl();
 
 	/*
+	 * Registering sysctl for rps specific config.
+	 */
+	nss_rps_register_sysctl();
+
+	/*
 	 * Register sysctl for project config
 	 */
 	nss_project_register_sysctl();
@@ -726,6 +731,11 @@
 	nss_n2h_unregister_sysctl();
 
 	/*
+	 * Unregister rps specific sysctl
+	 */
+	nss_rps_unregister_sysctl();
+
+	/*
 	 * Unregister ipv4/6 specific sysctl
 	 */
 	nss_ipv4_unregister_sysctl();