From: Andrew Rybchenko <arybchenko@solarflare.com>
To: Yongseok Koh <yskoh@mellanox.com>, <olivier.matz@6wind.com>,
<thomas@monjalon.net>
Cc: <dev@dpdk.org>, <konstantin.ananyev@intel.com>,
<stephen@networkplumber.org>
Subject: Re: [dpdk-dev] [PATCH v2] doc: announce removal of indirect mbuf check macro
Date: Fri, 25 May 2018 09:34:13 +0300 [thread overview]
Message-ID: <b4d7dc50-f466-ef39-9e15-730d58a1bdbf@solarflare.com> (raw)
In-Reply-To: <20180525012006.29856-1-yskoh@mellanox.com>
On 05/25/2018 04:20 AM, Yongseok Koh wrote:
> Link: http://dpdk.org/ml/archives/dev/2018-April/099476.html
>
> Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
> ---
>
> v2:
> * modify removal deadline and add more comments in the deprecation note
> * mark deprecation on the comment of the macro in rte_mbuf.h
>
> doc/guides/rel_notes/deprecation.rst | 7 +++++++
> lib/librte_mbuf/rte_mbuf.h | 3 ++-
> 2 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
> index 1e2443c76..e1630c2cf 100644
> --- a/doc/guides/rel_notes/deprecation.rst
> +++ b/doc/guides/rel_notes/deprecation.rst
> @@ -42,6 +42,13 @@ Deprecation Notices
> is defined in librte_sched in a non-generic way. The new generic format
> will contain: queue ID, traffic class, color. Field size will not change.
>
> +* mbuf: the macro ``RTE_MBUF_INDIRECT()`` will be removed in v18.08 or later and
> + replaced with ``RTE_MBUF_CLONED()`` which is already added in v18.05. As
> + ``EXT_ATTACHED_MBUF`` is newly introduced in v18.05, ``RTE_MBUF_INDIRECT()``
> + can no longer be mutually exclusive with ``RTE_MBUF_DIRECT()`` if the new
> + experimental API ``rte_pktmbuf_attach_extbuf()`` is used. Removal of the macro
> + is to fix this semantic inconsistency.
> +
> * ethdev: a new Tx and Rx offload API was introduced on 17.11.
> In the new API, offloads are divided into per-port and per-queue offloads.
> Offloads are disabled by default and enabled per application request.
> diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
> index e136d12b7..8e6b4d292 100644
> --- a/lib/librte_mbuf/rte_mbuf.h
> +++ b/lib/librte_mbuf/rte_mbuf.h
> @@ -738,7 +738,8 @@ rte_mbuf_to_baddr(struct rte_mbuf *md)
> #define RTE_MBUF_CLONED(mb) ((mb)->ol_flags & IND_ATTACHED_MBUF)
>
> /**
> - * Returns TRUE if given mbuf is indirect, or FALSE otherwise.
> + * Deprecated.
> + * Use RTE_MBUF_CLONED().
> */
> #define RTE_MBUF_INDIRECT(mb) RTE_MBUF_CLONED(mb)
>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
next prev parent reply other threads:[~2018-05-25 6:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-25 0:53 [dpdk-dev] [PATCH] " Yongseok Koh
2018-05-25 1:20 ` [dpdk-dev] [PATCH v2] " Yongseok Koh
2018-05-25 6:34 ` Andrew Rybchenko [this message]
2018-05-25 7:20 ` Olivier Matz
2018-05-28 0:54 ` Thomas Monjalon
2018-05-27 4:36 ` Shahaf Shuler
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=b4d7dc50-f466-ef39-9e15-730d58a1bdbf@solarflare.com \
--to=arybchenko@solarflare.com \
--cc=dev@dpdk.org \
--cc=konstantin.ananyev@intel.com \
--cc=olivier.matz@6wind.com \
--cc=stephen@networkplumber.org \
--cc=thomas@monjalon.net \
--cc=yskoh@mellanox.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).