[qca-nss-drv] Pick the correct registrant for Interface bounce.
For interface shaper bounce packets, the registrants should
be from interface bounce array rather than bridge bounce array.
Change-Id: Icc221f0af991071df7f55ac3be5934a3620a3e30
Signed-off-by: Manish Verma <maniverm@codeaurora.org>
diff --git a/nss_core.c b/nss_core.c
index 8c0ff7a..c2021e9 100644
--- a/nss_core.c
+++ b/nss_core.c
@@ -879,6 +879,10 @@
break;
case N2H_BUFFER_SHAPER_BOUNCED_INTERFACE:
+ reg = &nss_ctx->nss_top->bounce_interface_registrants[interface_num];
+ nss_core_handle_bounced_pkt(nss_ctx, reg, nbuf);
+ break;
+
case N2H_BUFFER_SHAPER_BOUNCED_BRIDGE:
reg = &nss_ctx->nss_top->bounce_bridge_registrants[interface_num];
nss_core_handle_bounced_pkt(nss_ctx, reg, nbuf);