DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 1/3] eventdev: add rte prefix to function declaration
@ 2022-09-29  9:57 pbhagavatula
  2022-09-29  9:57 ` [PATCH 2/3] eventdev: replace *u64s with u64s in event vector pbhagavatula
  2022-09-29  9:57 ` [PATCH 3/3] doc: remove deprecation notices for " pbhagavatula
  0 siblings, 2 replies; 4+ messages in thread
From: pbhagavatula @ 2022-09-29  9:57 UTC (permalink / raw)
  To: jerinj, Ray Kinsella; +Cc: dev, Pavan Nikhilesh

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

Add `rte` prefix to stop flush callback function pointer
declaration to avoid conflicts with application functions,
``eventdev_stop_flush_t`` is renamed to
``rte_eventdev_stop_flush_t``.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 doc/guides/rel_notes/deprecation.rst | 3 ---
 lib/eventdev/eventdev_pmd.h          | 2 ++
 lib/eventdev/rte_eventdev.c          | 3 ++-
 lib/eventdev/rte_eventdev.h          | 9 ++++-----
 4 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index e3d609fd88..2826a38f03 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -173,9 +173,6 @@ Deprecation Notices
   Event will be one of the configuration fields,
   together with additional vector parameters.

-* eventdev: The function pointer declaration ``eventdev_stop_flush_t``
-  will be renamed to ``rte_eventdev_stop_flush_t`` in DPDK 22.11.
-
 * eventdev: The element ``*u64s`` in the structure ``rte_event_vector``
   is deprecated and will be replaced with ``u64s`` in DPDK 22.11.

diff --git a/lib/eventdev/eventdev_pmd.h b/lib/eventdev/eventdev_pmd.h
index ca9e3f1875..066104b572 100644
--- a/lib/eventdev/eventdev_pmd.h
+++ b/lib/eventdev/eventdev_pmd.h
@@ -1315,6 +1315,8 @@ typedef int (*eventdev_eth_tx_adapter_queue_start)
 typedef int (*eventdev_eth_tx_adapter_queue_stop)
 	(uint8_t id, uint16_t eth_dev_id, uint16_t tx_queue_id);

+#define eventdev_stop_flush_t rte_eventdev_stop_flush_t
+
 /** Event device operations function pointer table */
 struct eventdev_ops {
 	eventdev_info_get_t dev_infos_get;	/**< Get device info. */
diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
index f6b7d0a139..db372a3d8c 100644
--- a/lib/eventdev/rte_eventdev.c
+++ b/lib/eventdev/rte_eventdev.c
@@ -1325,7 +1325,8 @@ rte_event_dev_start(uint8_t dev_id)

 int
 rte_event_dev_stop_flush_callback_register(uint8_t dev_id,
-		eventdev_stop_flush_t callback, void *userdata)
+					   rte_eventdev_stop_flush_t callback,
+					   void *userdata)
 {
 	struct rte_eventdev *dev;

diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h
index cd307643c1..86d656a08b 100644
--- a/lib/eventdev/rte_eventdev.h
+++ b/lib/eventdev/rte_eventdev.h
@@ -1023,8 +1023,8 @@ rte_event_dev_start(uint8_t dev_id);
 void
 rte_event_dev_stop(uint8_t dev_id);

-typedef void (*eventdev_stop_flush_t)(uint8_t dev_id, struct rte_event event,
-		void *arg);
+typedef void (*rte_eventdev_stop_flush_t)(uint8_t dev_id,
+					  struct rte_event event, void *arg);
 /**< Callback function called during rte_event_dev_stop(), invoked once per
  * flushed event.
  */
@@ -1053,9 +1053,8 @@ typedef void (*eventdev_stop_flush_t)(uint8_t dev_id, struct rte_event event,
  *
  * @see rte_event_dev_stop()
  */
-int
-rte_event_dev_stop_flush_callback_register(uint8_t dev_id,
-		eventdev_stop_flush_t callback, void *userdata);
+int rte_event_dev_stop_flush_callback_register(
+	uint8_t dev_id, rte_eventdev_stop_flush_t callback, void *userdata);

 /**
  * Close an event device. The device cannot be restarted!
--
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/3] eventdev: replace *u64s with u64s in event vector
  2022-09-29  9:57 [PATCH 1/3] eventdev: add rte prefix to function declaration pbhagavatula
@ 2022-09-29  9:57 ` pbhagavatula
  2022-09-29  9:57 ` [PATCH 3/3] doc: remove deprecation notices for " pbhagavatula
  1 sibling, 0 replies; 4+ messages in thread
From: pbhagavatula @ 2022-09-29  9:57 UTC (permalink / raw)
  To: jerinj, Ray Kinsella; +Cc: dev, Pavan Nikhilesh

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

Replace *u64s with u64s in rte_event_vector structure as
the *ptrs already serves the purpose of holding pointers
and the intention of u64s is to hold array of uint64_t
values.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 doc/guides/rel_notes/deprecation.rst | 3 ---
 lib/eventdev/rte_eventdev.h          | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index 2826a38f03..bb44b1f9ff 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -173,9 +173,6 @@ Deprecation Notices
   Event will be one of the configuration fields,
   together with additional vector parameters.
 
-* eventdev: The element ``*u64s`` in the structure ``rte_event_vector``
-  is deprecated and will be replaced with ``u64s`` in DPDK 22.11.
-
 * eventdev: The structure ``rte_event_vector`` will be modified to include
   ``elem_offset:12`` bits taken from ``rsvd:15``. The ``elem_offset`` defines
   the offset into the vector array from which valid elements are present.
diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h
index 86d656a08b..1cbeb6bddc 100644
--- a/lib/eventdev/rte_eventdev.h
+++ b/lib/eventdev/rte_eventdev.h
@@ -1117,7 +1117,7 @@ struct rte_event_vector {
 #endif
 		struct rte_mbuf *mbufs[0];
 		void *ptrs[0];
-		uint64_t *u64s[0];
+		uint64_t u64s[0];
 #ifndef __cplusplus
 	} __rte_aligned(16);
 #endif
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 3/3] doc: remove deprecation notices for event vector
  2022-09-29  9:57 [PATCH 1/3] eventdev: add rte prefix to function declaration pbhagavatula
  2022-09-29  9:57 ` [PATCH 2/3] eventdev: replace *u64s with u64s in event vector pbhagavatula
@ 2022-09-29  9:57 ` pbhagavatula
  2022-09-30 10:16   ` Jerin Jacob
  1 sibling, 1 reply; 4+ messages in thread
From: pbhagavatula @ 2022-09-29  9:57 UTC (permalink / raw)
  To: jerinj, Ray Kinsella; +Cc: dev, Pavan Nikhilesh

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

Deprecation notice targeted for v22.11 of event vector has been
merged in the following commits, remove deprecation notices.

Fixes: 7b12f13ce3ee ("eventdev: add element offset to event vector")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 doc/guides/rel_notes/deprecation.rst | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index bb44b1f9ff..9679615f95 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -173,13 +173,6 @@ Deprecation Notices
   Event will be one of the configuration fields,
   together with additional vector parameters.

-* eventdev: The structure ``rte_event_vector`` will be modified to include
-  ``elem_offset:12`` bits taken from ``rsvd:15``. The ``elem_offset`` defines
-  the offset into the vector array from which valid elements are present.
-  The difference between ``rte_event_vector::nb_elem`` and
-  ``rte_event_vector::elem_offset`` gives the number of valid elements left
-  to process from the ``rte_event_vector::elem_offset``.
-
 * metrics: The function ``rte_metrics_init`` will have a non-void return
   in order to notify errors instead of calling ``rte_exit``.

--
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/3] doc: remove deprecation notices for event vector
  2022-09-29  9:57 ` [PATCH 3/3] doc: remove deprecation notices for " pbhagavatula
@ 2022-09-30 10:16   ` Jerin Jacob
  0 siblings, 0 replies; 4+ messages in thread
From: Jerin Jacob @ 2022-09-30 10:16 UTC (permalink / raw)
  To: pbhagavatula; +Cc: jerinj, Ray Kinsella, dev

On Thu, Sep 29, 2022 at 3:30 PM <pbhagavatula@marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavatula@marvell.com>
>
> Deprecation notice targeted for v22.11 of event vector has been
> merged in the following commits, remove deprecation notices.
>
> Fixes: 7b12f13ce3ee ("eventdev: add element offset to event vector")
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>

Series-Acked-by: Jerin Jacob <jerinj@marvell.com>

Series applied to dpdk-next-eventdev/for-main. Thanks.


> ---
>  doc/guides/rel_notes/deprecation.rst | 7 -------
>  1 file changed, 7 deletions(-)
>
> diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
> index bb44b1f9ff..9679615f95 100644
> --- a/doc/guides/rel_notes/deprecation.rst
> +++ b/doc/guides/rel_notes/deprecation.rst
> @@ -173,13 +173,6 @@ Deprecation Notices
>    Event will be one of the configuration fields,
>    together with additional vector parameters.
>
> -* eventdev: The structure ``rte_event_vector`` will be modified to include
> -  ``elem_offset:12`` bits taken from ``rsvd:15``. The ``elem_offset`` defines
> -  the offset into the vector array from which valid elements are present.
> -  The difference between ``rte_event_vector::nb_elem`` and
> -  ``rte_event_vector::elem_offset`` gives the number of valid elements left
> -  to process from the ``rte_event_vector::elem_offset``.
> -
>  * metrics: The function ``rte_metrics_init`` will have a non-void return
>    in order to notify errors instead of calling ``rte_exit``.
>
> --
> 2.25.1
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-30 10:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-29  9:57 [PATCH 1/3] eventdev: add rte prefix to function declaration pbhagavatula
2022-09-29  9:57 ` [PATCH 2/3] eventdev: replace *u64s with u64s in event vector pbhagavatula
2022-09-29  9:57 ` [PATCH 3/3] doc: remove deprecation notices for " pbhagavatula
2022-09-30 10:16   ` Jerin Jacob

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).