From: Nipun Gupta <nipun.gupta@nxp.com>
To: <jerin.jacob@caviumnetworks.com>
Cc: <dev@dpdk.org>, <hemant.agrawal@nxp.com>,
Nipun Gupta <nipun.gupta@nxp.com>
Subject: [dpdk-dev] [PATCH 2/6 v3] bus/fslmc: introduce API to consume dqrr using index
Date: Wed, 17 Jan 2018 17:09:10 +0530 [thread overview]
Message-ID: <1516189154-28331-3-git-send-email-nipun.gupta@nxp.com> (raw)
In-Reply-To: <1516189154-28331-1-git-send-email-nipun.gupta@nxp.com>
A new API qbman_swp_dqrr_idx_consume is defined which takes
input as DQRR index to consume corresponding DQRR entry.
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 7 +++++++
drivers/bus/fslmc/qbman/qbman_portal.c | 7 +++++++
drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 +
3 files changed, 15 insertions(+)
diff --git a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h
index 019deae..10f38ca 100644
--- a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h
+++ b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h
@@ -389,6 +389,13 @@ void qbman_pull_desc_set_channel(struct qbman_pull_desc *d, uint32_t chid,
void qbman_swp_dqrr_consume(struct qbman_swp *s, const struct qbman_result *dq);
/**
+ * qbman_swp_dqrr_idx_consume() - Given the DQRR index consume the DQRR entry
+ * @s: the software portal object.
+ * @dqrr_index: the DQRR index entry to be consumed.
+ */
+void qbman_swp_dqrr_idx_consume(struct qbman_swp *s, uint8_t dqrr_index);
+
+/**
* qbman_get_dqrr_idx() - Get dqrr index from the given dqrr
* @dqrr: the given dqrr object.
*
diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c
index b5c8b50..b02dfa2 100644
--- a/drivers/bus/fslmc/qbman/qbman_portal.c
+++ b/drivers/bus/fslmc/qbman/qbman_portal.c
@@ -859,6 +859,13 @@ void qbman_swp_dqrr_consume(struct qbman_swp *s,
qbman_cinh_write(&s->sys, QBMAN_CINH_SWP_DCAP, QBMAN_IDX_FROM_DQRR(dq));
}
+/* Consume DQRR entries previously returned from qbman_swp_dqrr_next(). */
+void qbman_swp_dqrr_idx_consume(struct qbman_swp *s,
+ uint8_t dqrr_index)
+{
+ qbman_cinh_write(&s->sys, QBMAN_CINH_SWP_DCAP, dqrr_index);
+}
+
/*********************************/
/* Polling user-provided storage */
/*********************************/
diff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map
index 16b759d..b9dd063 100644
--- a/drivers/bus/fslmc/rte_bus_fslmc_version.map
+++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map
@@ -97,6 +97,7 @@ DPDK_18.02 {
dpaa2_virt_mode;
qbman_fq_query_state;
qbman_fq_state_frame_count;
+ qbman_swp_dqrr_idx_consume;
rte_fslmc_get_device_count;
} DPDK_17.11;
--
1.9.1
next prev parent reply other threads:[~2018-01-17 5:24 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-12 21:22 [dpdk-dev] [PATCH 0/6 v2] support atomic queues in dpaa2 ethernet with eventdev Nipun Gupta
2018-01-12 21:22 ` [dpdk-dev] [PATCH 1/6 v2] event/dpaa2: replace static with dynamic logging Nipun Gupta
2018-01-12 15:29 ` Hemant Agrawal
2018-01-17 3:50 ` Nipun Gupta
2018-01-18 6:37 ` Jerin Jacob
2018-01-12 21:22 ` [dpdk-dev] [PATCH 2/6 v2] bus/fslmc: introduce API to consume dqrr using index Nipun Gupta
2018-01-12 21:22 ` [dpdk-dev] [PATCH 3/6 v2] event/dpaa2: use dqrr index to cosume the DQRR entry Nipun Gupta
2018-01-12 21:22 ` [dpdk-dev] [PATCH 4/6 v2] event/dpaa2: have separate structure to hold dqrr entries Nipun Gupta
2018-01-12 21:23 ` [dpdk-dev] [PATCH 5/6 v2] bus/fslmc: add flag to configure DCA in QBMAN multi Tx Nipun Gupta
2018-01-12 21:23 ` [dpdk-dev] [PATCH 6/6 v2] net/dpaa2: support atomic queues Nipun Gupta
2018-01-17 11:39 ` [dpdk-dev] [PATCH 0/6 v3] support atomic queues in dpaa2 ethernet with eventdev Nipun Gupta
2018-01-17 11:39 ` [dpdk-dev] [PATCH 1/6 v3] event/dpaa2: replace static with dynamic logging Nipun Gupta
2018-01-17 11:39 ` Nipun Gupta [this message]
2018-01-17 11:39 ` [dpdk-dev] [PATCH 3/6 v3] event/dpaa2: use dqrr index to cosume the DQRR entry Nipun Gupta
2018-01-17 11:39 ` [dpdk-dev] [PATCH 4/6 v3] event/dpaa2: have separate structure to hold dqrr entries Nipun Gupta
2018-01-17 11:39 ` [dpdk-dev] [PATCH 5/6 v3] bus/fslmc: add flag to configure DCA in QBMAN multi Tx Nipun Gupta
2018-01-17 11:39 ` [dpdk-dev] [PATCH 6/6 v3] net/dpaa2: support atomic queues Nipun Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1516189154-28331-3-git-send-email-nipun.gupta@nxp.com \
--to=nipun.gupta@nxp.com \
--cc=dev@dpdk.org \
--cc=hemant.agrawal@nxp.com \
--cc=jerin.jacob@caviumnetworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).