[qca-nss-drv] Provision ipv4 and ipv6 to send back create rule responses
ECM currently ignores ACK/NACK for create rule requests. This might
become an issue with create requests fail. This change will enable
ECM to receive the create responses.
Change-Id: I4e6f91ce3119db1737eca4378b02a542b4e51b04
Signed-off-by: Sakthi Vignesh Radhakrishnan <sradhakr@codeaurora.org>
diff --git a/nss_ipv6.c b/nss_ipv6.c
index d8a96e5..0143faf 100644
--- a/nss_ipv6.c
+++ b/nss_ipv6.c
@@ -22,6 +22,7 @@
#include "nss_tx_rx_common.h"
extern void nss_rx_metadata_ipv6_rule_establish(struct nss_ctx_instance *nss_ctx, struct nss_ipv6_rule_establish *nire);
+extern void nss_rx_metadata_ipv6_create_response(struct nss_ctx_instance *nss_ctx, struct nss_ipv6_msg *nim);
extern void nss_rx_ipv6_sync(struct nss_ctx_instance *nss_ctx, struct nss_ipv6_conn_sync *nirs);
/*
@@ -152,6 +153,10 @@
nss_ipv6_driver_conn_sync_update(nss_ctx, &nim->msg.conn_stats);
return nss_rx_ipv6_sync(nss_ctx, &nim->msg.conn_stats);
break;
+
+ case NSS_IPV6_TX_CREATE_RULE_MSG:
+ nss_rx_metadata_ipv6_create_response(nss_ctx, nim);
+ break;
}
/*