nss-packages-qosmio/qca-nss-drv/patches-11.4/0025-fix-missing-macro-gre_tunnel.patch
Sean Khan 5e977b3eae nss-drv: [11.4] fix undefined GRE stats_ctx for non IPQ807x
When building NSS GRE feature for non IPQ807x targets, the GRE `stats_ctx`
was not being properly defined.

Signed-off-by: Sean Khan <datapronix@protonmail.com>
2025-04-08 03:10:22 -04:00

15 lines
546 B
Diff

--- a/exports/nss_gre_tunnel.h
+++ b/exports/nss_gre_tunnel.h
@@ -212,7 +212,11 @@ struct nss_gre_tunnel_stats {
* GRE tunnel transmission statistics structure.
*/
struct nss_gre_tunnel_stats_notification {
+#if defined(NSS_HAL_IPQ807x_SUPPORT)
uint64_t stats_ctx[NSS_GRE_TUNNEL_STATS_SESSION_MAX + NSS_CRYPTO_CMN_RESP_ERROR_MAX];
+#else
+ uint64_t stats_ctx[NSS_GRE_TUNNEL_STATS_SESSION_MAX];
+#endif
/**< Context transmission statistics. */
uint32_t core_id; /**< Core ID. */
uint32_t if_num; /**< Interface number. */