ethdev: deprecate flow object copy function

No users left for this function, time to deprecate it.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
This commit is contained in:
Adrien Mazarguil 2018-08-31 11:01:13 +02:00 committed by Ferruh Yigit
parent c2beb1d469
commit 5ca8203907
2 changed files with 6 additions and 8 deletions
doc/guides/rel_notes
lib/librte_ethdev

@ -67,10 +67,3 @@ Deprecation Notices
- ``rte_pdump_set_socket_dir`` will be removed; - ``rte_pdump_set_socket_dir`` will be removed;
- The parameter, ``path``, of ``rte_pdump_init`` will be removed; - The parameter, ``path``, of ``rte_pdump_init`` will be removed;
- The enum ``rte_pdump_socktype`` will be removed. - The enum ``rte_pdump_socktype`` will be removed.
* ethdev: flow API function ``rte_flow_copy()`` will be deprecated in v18.11
in favor of ``rte_flow_conv()`` (which will appear in that version) and
subsequently removed for v19.02.
This is due to a lack of flexibility and reliance on a type unusable with
C++ programs (struct rte_flow_desc).

@ -2332,6 +2332,7 @@ rte_flow_error_set(struct rte_flow_error *error,
const char *message); const char *message);
/** /**
* @deprecated
* @see rte_flow_copy() * @see rte_flow_copy()
*/ */
struct rte_flow_desc { struct rte_flow_desc {
@ -2343,10 +2344,13 @@ struct rte_flow_desc {
}; };
/** /**
* @deprecated
* Copy an rte_flow rule description. * Copy an rte_flow rule description.
* *
* This interface is kept for compatibility with older applications but is * This interface is kept for compatibility with older applications but is
* implemented as a wrapper to rte_flow_conv(). * implemented as a wrapper to rte_flow_conv(). It is deprecated due to its
* lack of flexibility and reliance on a type unusable with C++ programs
* (struct rte_flow_desc).
* *
* @param[in] fd * @param[in] fd
* Flow rule description. * Flow rule description.
@ -2365,6 +2369,7 @@ struct rte_flow_desc {
* If len is lower than the size of the flow, the number of bytes that would * If len is lower than the size of the flow, the number of bytes that would
* have been written to desc had it been sufficient. Nothing is written. * have been written to desc had it been sufficient. Nothing is written.
*/ */
__rte_deprecated
size_t size_t
rte_flow_copy(struct rte_flow_desc *fd, size_t len, rte_flow_copy(struct rte_flow_desc *fd, size_t len,
const struct rte_flow_attr *attr, const struct rte_flow_attr *attr,