[qca-nss-drv] Set the REUSABLE flag for NSS send API
By default all the NSS data/cmd APIs send the buffers
with no reuse flag set. The nss core send logic sets
the reuse flag based on the some default conditions.
The current patch flips the logic where it sends all the data/cmd
packets with reusable flag and nss-core send logic resets
the reusable flag if they fail to meet the conditions of reuse. This
provides the flexibility where a user can explicitly call the send
APIs witn/without the reusable flag.
Change-Id: I883ca9bf25fe2b79a2f03663be2e1166f4454bec
Signed-off-by: Aniruddha Paul <paulani@codeaurora.org>
diff --git a/nss_pvxlan.c b/nss_pvxlan.c
index 6958abc..bdb9177 100644
--- a/nss_pvxlan.c
+++ b/nss_pvxlan.c
@@ -290,7 +290,7 @@
{
BUG_ON(!nss_pvxlan_verify_if_num(if_num));
- return nss_core_send_packet(nss_ctx, buf, if_num, H2N_BIT_FLAG_VIRTUAL_BUFFER);
+ return nss_core_send_packet(nss_ctx, buf, if_num, H2N_BIT_FLAG_VIRTUAL_BUFFER | H2N_BIT_FLAG_BUFFER_REUSABLE);
}
EXPORT_SYMBOL(nss_pvxlan_tx_buf);