Skip to contentSkip to conversation

dev Digest, Vol 238, Issue 42

DISCUSSION 孙立明 1 participant 1 message Mar 13, 2019 1 message not in the archive

lore
Share & tools
lore

孙立明

author
#1 lore raw
In reply to a message not in the archive

help

------------------ Original ------------------

From:  "dev-request"<[email protected]>;
Date:  Wed, Mar 13, 2019 04:51 AM
To:  "dev"<[email protected]>; 

Subject: dev Digest, Vol 238, Issue 42

Send dev mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
https://mails.dpdk.org/listinfo/dev
or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific than "Re: Contents of dev digest..."

Today's Topics:

1. [PATCH v3 2/3] examples/eventdev: start ethdev after eth adapter setup (Pavan Nikhilesh Bhagavatula)
2. [PATCH v3 3/3] doc: add notes about eventdev producer consumer dependency (Pavan Nikhilesh Bhagavatula)
3. Re: DPDK short term stable maintenance (Luca Boccassi)
4. Re: DPDK short term stable maintenance (Thomas Monjalon)

----------------------------------------------------------------------

Message: 1
Date: Tue, 12 Mar 2019 20:41:09 +0000
From: Pavan Nikhilesh Bhagavatula <[email protected]>
To: Jerin Jacob Kollanukkaran <[email protected]>,
"[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>, Pavan Nikhilesh Bhagavatula
<[email protected]>
Subject: [dpdk-dev] [PATCH v3 2/3] examples/eventdev: start ethdev
after eth adapter setup
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

From: Pavan Nikhilesh <[email protected]>

Start ethdev after the Rx/Tx adapter setup is complete as in some architectures it might lead to undefined behaviour or events being dropped.

---
v3 Changes:
- add the same changes in examples/eventdev_pipeline

 examples/eventdev_pipeline/main.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
examples/eventdev_pipeline/main.c +9 -5
index 92e08bc0c..22ea75e7b 100644
@@ -316,11 +316,6 @@ port_init(uint8_t port, struct rte_mempool *mbuf_pool)
 			return retval;
 	}
 
-	/* Start the Ethernet port. */
-	retval = rte_eth_dev_start(port);
-	if (retval < 0)
-		return retval;
-
 	/* Display the port MAC address. */
 	struct ether_addr addr;
 	rte_eth_macaddr_get(port, &addr);
@@ -440,6 +435,7 @@ main(int argc, char **argv)
 {
 	struct worker_data *worker_data;
 	uint16_t num_ports;
+	uint16_t portid;
 	int lcore_id;
 	int err;
 
@@ -507,6 +503,14 @@ main(int argc, char **argv)
 	init_ports(num_ports);
 	fdata->cap.adptr_setup(num_ports);
 
+	/* Start the Ethernet port. */
+	RTE_ETH_FOREACH_DEV(portid) {
+		err = rte_eth_dev_start(portid);
+		if (err < 0)
+			rte_exit(EXIT_FAILURE, "Error starting ethdev %d\n",
+					portid);
+	}
+
 	int worker_idx = 0;
 	RTE_LCORE_FOREACH_SLAVE(lcore_id) {
 		if (lcore_id >= MAX_NUM_CORE)

--
2.21.0

------------------------------

Message: 2
Date: Tue, 12 Mar 2019 20:41:13 +0000
From: Pavan Nikhilesh Bhagavatula <[email protected]>
To: Jerin Jacob Kollanukkaran <[email protected]>,
"[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>, Pavan Nikhilesh Bhagavatula
<[email protected]>
Subject: [dpdk-dev] [PATCH v3 3/3] doc: add notes about eventdev
producer consumer dependency
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

From: Pavan Nikhilesh <[email protected]>

EventDev i.e consumer needs to be started before starting the event producers.
Update documentation of EventDev and EventDev adapters.

---
v2 Changes: Add Notes to doxygen API.

 doc/guides/prog_guide/event_crypto_adapter.rst      | 5 +++++
 doc/guides/prog_guide/event_ethernet_rx_adapter.rst | 5 +++++
 doc/guides/prog_guide/event_timer_adapter.rst       | 5 +++++
 doc/guides/prog_guide/eventdev.rst                  | 5 +++++
 lib/librte_eventdev/rte_event_crypto_adapter.h      | 4 ++++
 lib/librte_eventdev/rte_event_eth_rx_adapter.h      | 4 ++++
 lib/librte_eventdev/rte_event_timer_adapter.h       | 4 ++++
 7 files changed, 32 insertions(+)
doc/guides/prog_guide/event_crypto_adapter.rst +5 -0
index 9fe09c805..1e3eb7139 100644
@@ -286,6 +286,11 @@ service function if one exists.
 
         rte_event_crypto_adapter_start(id, mode);
 
+.. Note::
+
+         The eventdev to which the event_crypto_adapter is connected needs to
+         be started before calling rte_event_crypto_adapter_start().
+
 Get adapter statistics
 ~~~~~~~~~~~~~~~~~~~~~~
 
doc/guides/prog_guide/event_ethernet_rx_adapter.rst +5 -0
index 0166bb45d..e95529974 100644
@@ -135,6 +135,11 @@ This function calls the start callbacks of the eventdev PMDs for hardware based
 eventdev-ethdev connections and ``rte_service_run_state_set()`` to enable the
 service function if one exists.
 
+.. Note::
+
+         The eventdev to which the event_eth_rx_adapter is connected needs to
+         be started before calling rte_event_eth_rx_adapter_start().
+
 Getting Adapter Statistics
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
 
doc/guides/prog_guide/event_timer_adapter.rst +5 -0
index 3b4446ee9..eb195ebd4 100644
@@ -179,6 +179,11 @@ running the event timer adapter. This function calls the start entry points
 defined by eventdev PMDs for hardware implementations or puts a service
 component into the running state in the software implementation.
 
+.. Note::
+
+         The eventdev to which the event_timer_adapter is connected needs to
+         be started before calling rte_event_timer_adapter_start().
+
 Arming Event Timers
 ~~~~~~~~~~~~~~~~~~~
 
doc/guides/prog_guide/eventdev.rst +5 -0
index 8fcae5469..dcdfeb75e 100644
@@ -296,6 +296,11 @@ eventdev.
 
         int err = rte_event_dev_start(dev_id);
 
+.. Note::
+
+         EventDev needs to be started before starting the event producers such
+         as event_eth_rx_adapter, event_timer_adapter and event_crypto_adapter.
+
 Ingress of New Events
 ~~~~~~~~~~~~~~~~~~~~~
 
lib/librte_eventdev/rte_event_crypto_adapter.h +4 -0
index d367309cb..a7419e91c 100644
@@ -472,6 +472,10 @@ rte_event_crypto_adapter_queue_pair_del(uint8_t id, uint8_t cdev_id,
  * @return
  *  - 0: Success, adapter started successfully.
  *  - <0: Error code on failure.
+ *
+ * @note
+ *  The eventdev to which the event_crypto_adapter is connected needs to
+ *  be started before calling rte_event_crypto_adapter_start().
  */
 int __rte_experimental
 rte_event_crypto_adapter_start(uint8_t id);
lib/librte_eventdev/rte_event_eth_rx_adapter.h +4 -0
index 863b72a10..2314b93f6 100644
@@ -405,6 +405,10 @@ int rte_event_eth_rx_adapter_queue_del(uint8_t id, uint16_t eth_dev_id,
  * @return
  *  - 0: Success, Adapter started correctly.
  *  - <0: Error code on failure.
+ *
+ * @note
+ *  The eventdev to which the event_eth_rx_adapter is connected needs to
+ *  be started before calling rte_event_eth_rx_adapter_start().
  */
 int rte_event_eth_rx_adapter_start(uint8_t id);
 
lib/librte_eventdev/rte_event_timer_adapter.h +4 -0
index db98dec46..cc4518d41 100644
@@ -339,6 +339,10 @@ rte_event_timer_adapter_get_info(
  *   - -EINVAL if adapter identifier invalid
  *   - -ENOENT if software adapter but no service core mapped
  *   - -ENOTSUP if software adapter and more than one service core mapped
+ *
+ * @note
+ *  The eventdev to which the event_timer_adapter is connected needs to
+ *  be started before calling rte_event_timer_adapter_start().
  */
 int __rte_experimental
 rte_event_timer_adapter_start(

--
2.21.0

------------------------------

Message: 3
Date: Tue, 12 Mar 2019 20:46:45 +0000
From: Luca Boccassi <[email protected]>
To: Kevin Traynor <[email protected]>, "[email protected]" <[email protected]>
Cc: Yongseok Koh <[email protected]>, Thomas Monjalon
<[email protected]>, Ferruh Yigit <[email protected]>, John McNamara <[email protected]>, Aaron Conole <[email protected]>, "Walker, Benjamin" <[email protected]>, Jay Rolette <[email protected]>
Subject: Re: [dpdk-dev] DPDK short term stable maintenance Message-ID:

	<[email protected]>

Content-Type: text/plain; charset="UTF-8"

Quoted 42 lines · Kevin Traynor

Hi All,

This is about short term stable maintenance, ~3 months based on n.02/05/08 DPDK. It is **not** referring/impacting DPDK LTS, maintained
for ~2 years based on n.11 DPDK.

The effort and usefulness of short term stable maintenance was raised previously and in the last DPDK Release meeting [1], so sending mail to
kick off discussion here...

Currently DPDK 19.02 stable branch has no maintainer and it has been difficult to get the companies to validate DPDK 18.08.1 RC. There seems
to be a lack of appetite in the community for short term stables, or at
least for all of them, and hence giving resources for helping them.

It could be that users are either moving from latest bleeding edge master release to the next, or settling on DPDK LTS for an extended period of time - I'm just speculating, but IMHO that would not be a bad
thing.

So what to do with short term stables? Some choices could be:

- continue with short term stables for n.02/05/08
- ad-hoc support for short term stables where community have an interest
in a particular one
- have a maintainer to backport fixes on a public branch, but have no releases, or have unvalidated/best effort validated releases
- no short term stable branches/releases

Probably there's other ideas too. Obviously most of the above would need
resources from the community to proceed. One advantage of not having short term stables is that there might be more resources available for
maintenance/validation of master and LTS DPDK releases.

Quoted 6 lines

Thoughts?

thanks,
Kevin.

[1] https://mails.dpdk.org/archives/dev/2019-March/126006.html

Hi,

Thanks for starting the discussion.

My 2c is that, unless someone steps up not only for the maintainer role but also for the validation effort, we should cancel the short term releases.

Signature · 21 lines
Kind regards,
Luca Boccassi


------------------------------

Message: 4
Date: Tue, 12 Mar 2019 21:51:37 +0100
From: Thomas Monjalon <[email protected]>
To: Luca Boccassi <[email protected]>, Kevin Traynor
	<[email protected]>
Cc: "[email protected]" <[email protected]>, Yongseok Koh <[email protected]>,
	Ferruh Yigit <[email protected]>, John McNamara
	<[email protected]>, Aaron Conole <[email protected]>, "Walker,
	Benjamin" <[email protected]>, Jay Rolette
	<[email protected]>
Subject: Re: [dpdk-dev] DPDK short term stable maintenance
Message-ID: <4664304.LLR2pzfpgk@xps>
Content-Type: text/plain; charset="us-ascii"

12/03/2019 21:46, Luca Boccassi:
Quoted 17 lines · Kevin Traynor
Quoted 16 lines

So what to do with short term stables? Some choices could be:

- continue with short term stables for n.02/05/08
- ad-hoc support for short term stables where community have an interest
in a particular one
- have a maintainer to backport fixes on a public branch, but have no releases, or have unvalidated/best effort validated releases
- no short term stable branches/releases

Probably there's other ideas too. Obviously most of the above would need
resources from the community to proceed. One advantage of not having short term stables is that there might be more resources available for
maintenance/validation of master and LTS DPDK releases.

[...]

Quoted 4 lines

My 2c is that, unless someone steps up not only for the maintainer role but also for the validation effort, we should cancel the short term releases.

Yes it looks reasonnable.
So we must question the community at each major release
to know if it will maintained, how long, or not.
If there are volunteers, we must clearly state in the stable release notes which areas are validated.

End of dev Digest, Vol 238, Issue 42
************************************