[qca-nss-drv] Update PPE Stats to support FQG
Update the ppe stats to handle flow qos group.
Change-Id: Ia4f58f61d199edf2c29b477907fddfcdf11f519a
Signed-off-by: Thomas Wu <wthomas@codeaurora.org>
diff --git a/exports/nss_ppe.h b/exports/nss_ppe.h
index 2605649..b5eb1dc 100644
--- a/exports/nss_ppe.h
+++ b/exports/nss_ppe.h
@@ -1,6 +1,6 @@
/*
**************************************************************************
- * Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all copies.
@@ -64,7 +64,7 @@
uint32_t nss_ppe_fail_flow_command; /**< Create req fail due to PPE flow command failure */
uint32_t nss_ppe_fail_unknown_proto; /**< Create req fail due to unknown protocol */
uint32_t nss_ppe_fail_ppe_unresponsive; /**< Create req fail due to PPE not responding */
-
+ uint32_t nss_ppe_fail_fqg_full; /**< Create req fail due to flow qos group full */
};
/**
diff --git a/nss_core.h b/nss_core.h
index 738f36b..485782f 100644
--- a/nss_core.h
+++ b/nss_core.h
@@ -650,6 +650,7 @@
NSS_STATS_PPE_FAIL_FLOW_COMMAND, /* Create req fail due to PPE flow command failure */
NSS_STATS_PPE_FAIL_UNKNOWN_PROTO, /* Create req fail due to unknown protocol */
NSS_STATS_PPE_FAIL_PPE_UNRESPONSIVE, /* Create req fail due to PPE not responding */
+ NSS_STATS_PPE_FAIL_FQG_FULL, /* Create req fail due to flow qos group full */
NSS_STATS_PPE_CONN_MAX
};
diff --git a/nss_ppe.c b/nss_ppe.c
index 5c694cf..c553a76 100644
--- a/nss_ppe.c
+++ b/nss_ppe.c
@@ -1,6 +1,6 @@
/*
**************************************************************************
- * Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all copies.
@@ -55,6 +55,7 @@
nss_ppe_debug_stats.conn_stats[NSS_STATS_PPE_FAIL_FLOW_COMMAND] += stats_msg->nss_ppe_fail_flow_command;
nss_ppe_debug_stats.conn_stats[NSS_STATS_PPE_FAIL_UNKNOWN_PROTO] += stats_msg->nss_ppe_fail_unknown_proto;
nss_ppe_debug_stats.conn_stats[NSS_STATS_PPE_FAIL_PPE_UNRESPONSIVE] += stats_msg->nss_ppe_fail_ppe_unresponsive;
+ nss_ppe_debug_stats.conn_stats[NSS_STATS_PPE_FAIL_FQG_FULL] += stats_msg->nss_ppe_fail_fqg_full;
spin_unlock_bh(&nss_ppe_stats_lock);
}
diff --git a/nss_stats.c b/nss_stats.c
index 59c1ff2..b7f10d7 100644
--- a/nss_stats.c
+++ b/nss_stats.c
@@ -652,6 +652,7 @@
"conn fail - rw fifo full",
"conn fail - unknown proto",
"conn fail - ppe not responding",
+ "conn fail - fqg full"
};
/*