From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Alfredo Cardigliano <cardigliano@ntop.org>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v3 09/17] net/ionic: add notifyq support
Date: Tue, 10 Dec 2019 18:53:20 +0000 [thread overview]
Message-ID: <8bb0ef38-3597-b0f1-db49-ad5ad8b04df2@intel.com> (raw)
In-Reply-To: <20191209214656.27347-10-cardigliano@ntop.org>
On 12/9/2019 9:46 PM, Alfredo Cardigliano wrote:
> Add support for the notify queue, which is used for events
> published by the NIC.
>
> Signed-off-by: Alfredo Cardigliano <cardigliano@ntop.org>
> Reviewed-by: Shannon Nelson <snelson@pensando.io>
<...>
> +static int
> +ionic_lif_notifyq_init(struct ionic_lif *lif)
> +{
> + struct ionic_dev *idev = &lif->adapter->idev;
> + struct ionic_qcq *qcq = lif->notifyqcq;
> + struct ionic_queue *q = &qcq->q;
> + int err;
> +
> + struct ionic_admin_ctx ctx = {
> + .pending_work = true,
> + .cmd.q_init = {
> + .opcode = IONIC_CMD_Q_INIT,
> + .lif_index = lif->index,
> + .type = q->type,
> + .index = q->index,
> + .flags = (IONIC_QINIT_F_IRQ | IONIC_QINIT_F_ENA),
> + .intr_index = qcq->intr.index,
> + .pid = q->pid,
> + .ring_size = ilog2(q->num_descs),
> + .ring_base = q->base_pa,
> + }
> + };
> +
> + IONIC_PRINT(DEBUG, "notifyq_init.pid %d", ctx.cmd.q_init.pid);
> + IONIC_PRINT(DEBUG, "notifyq_init.index %d",
> + ctx.cmd.q_init.index);
> + IONIC_PRINT(DEBUG, "notifyq_init.ring_base 0x%lx",
> + ctx.cmd.q_init.ring_base);
> + IONIC_PRINT(DEBUG, "notifyq_init.ring_size %d",
> + ctx.cmd.q_init.ring_size);
Can you plesae use PRIx64 etc format identifiers to have correct type? The build
is failing in 32 bits just because of log format identifiers.
There are a few cases this is needed, building for i686 should highlight them.
next prev parent reply other threads:[~2019-12-10 18:53 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-09 21:46 [dpdk-dev] [PATCH v3 00/17] Introduces net/ionic PMD Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 01/17] net/ionic: add skeleton Alfredo Cardigliano
2019-12-10 18:48 ` Ferruh Yigit
2019-12-12 12:01 ` Alfredo Cardigliano
2019-12-12 12:39 ` Ferruh Yigit
2019-12-12 14:09 ` Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 02/17] net/ionic: add hardware structures definitions Alfredo Cardigliano
2019-12-10 18:48 ` Ferruh Yigit
2019-12-13 10:25 ` Hemant Agrawal
2019-12-17 19:46 ` Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 03/17] net/ionic: add log Alfredo Cardigliano
2019-12-10 18:49 ` Ferruh Yigit
2019-12-13 10:22 ` Hemant Agrawal
2019-12-10 18:49 ` Ferruh Yigit
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 04/17] net/ionic: register and initialize the adapter Alfredo Cardigliano
2019-12-10 18:50 ` Ferruh Yigit
2019-12-12 12:04 ` Alfredo Cardigliano
2019-12-12 12:42 ` Ferruh Yigit
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 05/17] net/ionic: add port management commands Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 06/17] net/ionic: add basic lif support Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 07/17] net/ionic: add doorbells Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 08/17] net/ionic: add adminq support Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 09/17] net/ionic: add notifyq support Alfredo Cardigliano
2019-12-10 18:53 ` Ferruh Yigit [this message]
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 10/17] net/ionic: add basic port operations Alfredo Cardigliano
2019-12-10 18:50 ` Ferruh Yigit
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 11/17] net/ionic: add RX filters support Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 12/17] net/ionic: add Flow Control support Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 13/17] net/ionic: add RX and TX handling Alfredo Cardigliano
2019-12-10 18:51 ` Ferruh Yigit
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 14/17] net/ionic: add RSS support Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 15/17] net/ionic: add stats Alfredo Cardigliano
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 16/17] net/ionic: add TX checksum support Alfredo Cardigliano
2019-12-10 18:52 ` Ferruh Yigit
2019-12-09 21:46 ` [dpdk-dev] [PATCH v3 17/17] net/ionic: read fw version Alfredo Cardigliano
2019-12-10 18:57 ` [dpdk-dev] [PATCH v3 00/17] Introduces net/ionic PMD Ferruh Yigit
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=8bb0ef38-3597-b0f1-db49-ad5ad8b04df2@intel.com \
--to=ferruh.yigit@intel.com \
--cc=cardigliano@ntop.org \
--cc=dev@dpdk.org \
/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).