From: Mike Stolarchuk <mike.stolarchuk@bigswitch.com>
To: dev@dpdk.org
Subject: [dpdk-dev] Meaning of ETH_TXQ_FLAGS_NOREFCOUNT
Date: Mon, 7 Dec 2015 12:37:18 -0500 [thread overview]
Message-ID: <CA+Qp4Xz-N9VckZ_3AjVedEZFZ1r9sO4C32Km+Aop-B4on+pXkw@mail.gmail.com> (raw)
Hello,
I would have thought that ETH_TXQ_FLAGS_NOREFCOUNT,
when enabled, would mean to ignore ref counts, as commented
in rte_ethdev.h:
#define ETH_TXQ_FLAGS_NOREFCOUNT 0x0002 /**< refcnt can be ignored */
But it seems to be used differently:
if (!(txq->txq_flags & (uint32_t)ETH_TXQ_FLAGS_NOREFCOUNT)) {
for (i = 0; i < txq->tx_rs_thresh; ++i, ++txep) {
rte_mempool_put(txep->mbuf->pool, txep->mbuf);
txep->mbuf = NULL;
}
So that if its -not- set, then rte_mempool_put() is called, and if it
is set then rte_pktmbuf_free_seg() is called.
Also, it seems to be used the same way in both the i40e driver
and the ixgbe driver: when its set it decr's the refcount, when
its unset it ignores the refcnt, but these are the only two drivers
which seem to honor the flag.
Any chance of getting a little more information the intent here?
regards,
mts.
reply other threads:[~2015-12-07 17:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CA+Qp4Xz-N9VckZ_3AjVedEZFZ1r9sO4C32Km+Aop-B4on+pXkw@mail.gmail.com \
--to=mike.stolarchuk@bigswitch.com \
--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).