From 709ddc324a701fb60fdfa49aa6f72ccfa85171cf Mon Sep 17 00:00:00 2001 From: Sean Khan Date: Fri, 25 Apr 2025 16:20:19 -0400 Subject: [PATCH] nss-ecm: fix compilation undefined dev when tunipip6 is enabled Resolves the following error ``` 'dev' undeclared (first use in this function) ``` Signed-off-by: Sean Khan --- .../00222-fix-undefined-dev-for-tunipip6.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 qca-nss-ecm/patches/00222-fix-undefined-dev-for-tunipip6.patch diff --git a/qca-nss-ecm/patches/00222-fix-undefined-dev-for-tunipip6.patch b/qca-nss-ecm/patches/00222-fix-undefined-dev-for-tunipip6.patch new file mode 100644 index 0000000..fd9cb12 --- /dev/null +++ b/qca-nss-ecm/patches/00222-fix-undefined-dev-for-tunipip6.patch @@ -0,0 +1,11 @@ +--- a/frontends/nss/ecm_nss_non_ported_ipv6.c ++++ b/frontends/nss/ecm_nss_non_ported_ipv6.c +@@ -342,7 +342,7 @@ static void ecm_nss_non_ported_ipv6_conn + ip_addr_t src_ip; + ip_addr_t dest_ip; + ecm_front_end_acceleration_mode_t result_mode; +-#if defined(ECM_INTERFACE_GRE_TAP_ENABLE) || defined(ECM_INTERFACE_GRE_TUN_ENABLE) ++#if defined(ECM_INTERFACE_GRE_TAP_ENABLE) || defined(ECM_INTERFACE_GRE_TUN_ENABLE) || defined(ECM_INTERFACE_TUNIPIP6_ENABLE) + struct net_device *dev; + #endif +