Skip to contentSkip to conversation

Fixed outdated documentation on the hello world doc, which incorrectly stated an easier way to launch the lcore_hello function. The example program uses the simpler version and the documentation stating it as an "equivalent and simpler" alternative is moot. It is now the default.

PATCH In review Arin Kharkar 2 participants 4 messages May 12 – Jun 9

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixed outdated documentation on the hello world doc, which incorrectly stated an easier way to launch the lcore_hello function. The example program uses the simpler version and the documentation stating it as an "equivalent and simpler" alternative is moot. It is now the default.

---
 doc/guides/sample_app_ug/hello_world.rst | 8 --------
 1 file changed, 8 deletions(-)
doc/guides/sample_app_ug/hello_world.rst +0 -8
index 5bfd4b3fda..b7167aa345 100644
@@ -70,12 +70,4 @@ The code that launches the function on each lcore is as follows:
     :end-before: >8 End of launching the function on each lcore.
     :dedent: 1
 
-The following code is equivalent and simpler:
-
-.. literalinclude:: ../../../examples/helloworld/main.c
-    :language: c
-    :start-after: Simpler equivalent. 8<
-    :end-before: >8 End of simpler equivalent.
-    :dedent: 2
-
 Refer to the *DPDK API Reference* for detailed information on the rte_eal_mp_remote_launch() function.
Signature · 1 line
2.43.0
#1 lore raw

Hello Arin,

Thanks for the patch.

On Tue, 12 May 2026 at 09:57, Arin Kharkar <[email protected]> wrote:

You'll have to add a title so that your commitlog does not end up as the title.

Quoted 24 lines
---
 doc/guides/sample_app_ug/hello_world.rst | 8 --------
 1 file changed, 8 deletions(-)
doc/guides/sample_app_ug/hello_world.rst +0 -9
index 5bfd4b3fda..b7167aa345 100644
@@ -70,12 +70,4 @@ The code that launches the function on each lcore is as follows:
     :end-before: >8 End of launching the function on each lcore.
     :dedent: 1
 
-The following code is equivalent and simpler:
-
-.. literalinclude:: ../../../examples/helloworld/main.c
-    :language: c
-    :start-after: Simpler equivalent. 8<
-    :end-before: >8 End of simpler equivalent.
-    :dedent: 2
-
 Refer to the *DPDK API Reference* for detailed information on the rte_eal_mp_remote_launch() function.
--
Quoted 2 lines

2.43.0

Please also drop the associated "Simpler equivalent. 8>" and ">8 End of simpler equivalent." comments from the example source code.

Signature · 1 line
David Marchand
#2 lore raw

PATCH 1/1 Remove redundant simpler equivalent section

Fixed outdated documentation on the hello world doc, which incorrectly stated an easier way to launch the lcore_hello function. The example program uses the simpler version and the documentation stating it as an "equivalent and simpler" alternative is moot. It is now the default.

---
 doc/guides/sample_app_ug/hello_world.rst | 8 --------
 examples/helloworld/main.c               | 4 +---
 2 files changed, 1 insertion(+), 11 deletions(-)
doc/guides/sample_app_ug/hello_world.rst +0 -8
index 5bfd4b3fda..b7167aa345 100644
@@ -70,12 +70,4 @@ The code that launches the function on each lcore is as follows:
     :end-before: >8 End of launching the function on each lcore.
     :dedent: 1
 
-The following code is equivalent and simpler:
-
-.. literalinclude:: ../../../examples/helloworld/main.c
-    :language: c
-    :start-after: Simpler equivalent. 8<
-    :end-before: >8 End of simpler equivalent.
-    :dedent: 2
-
 Refer to the *DPDK API Reference* for detailed information on the rte_eal_mp_remote_launch() function.
examples/helloworld/main.c +1 -3
index af509138da..8d1a959c58 100644
@@ -40,13 +40,11 @@ main(int argc, char **argv)
 
 	/* Launches the function on each lcore. 8< */
 	RTE_LCORE_FOREACH_WORKER(lcore_id) {
-		/* Simpler equivalent. 8< */
 		rte_eal_remote_launch(lcore_hello, NULL, lcore_id);
-		/* >8 End of simpler equivalent. */
 	}
 
 	/* call it on main lcore too */
-	lcore_hello(NULL);
+	 lcore_hello(NULL);
 	/* >8 End of launching the function on each lcore. */
 
 	rte_eal_mp_wait_lcore();
Signature · 1 line
2.43.0
#3 lore raw

Re: [PATCH] Remove redundant simpler equivalent section

Quoted 32 lines · Arin Kharkar

Fixed outdated documentation on the hello world doc, which incorrectly stated an easier way to launch the lcore_hello function. The example program uses the simpler version and the documentation stating it as an "equivalent and simpler" alternative is moot. It is now the default.

---
 doc/guides/sample_app_ug/hello_world.rst | 8 --------
 examples/helloworld/main.c               | 4 +---
 2 files changed, 1 insertion(+), 11 deletions(-)
doc/guides/sample_app_ug/hello_world.rst +0 -8
index 5bfd4b3fda..b7167aa345 100644
@@ -70,12 +70,4 @@ The code that launches the function on each lcore is as follows:
     :end-before: >8 End of launching the function on each lcore.
     :dedent: 1
 
-The following code is equivalent and simpler:
-
-.. literalinclude:: ../../../examples/helloworld/main.c
-    :language: c
-    :start-after: Simpler equivalent. 8<
-    :end-before: >8 End of simpler equivalent.
-    :dedent: 2
-
 Refer to the *DPDK API Reference* for detailed information on the rte_eal_mp_remote_launch() function.
examples/helloworld/main.c +0 -0
index af509138da..8d1a959c58 100644
@@ -40,13 +40,11 @@ main(int argc, char **argv)
 

examples/helloworld/main.c main(int argc, char **argv) · line 47

Quoted 10 lines
examples/helloworld/main.c +1 -3
        /* Launches the function on each lcore. 8< */
        RTE_LCORE_FOREACH_WORKER(lcore_id) {
-               /* Simpler equivalent. 8< */
                rte_eal_remote_launch(lcore_hello, NULL, lcore_id);
-               /* >8 End of simpler equivalent. */
        }
 
        /* call it on main lcore too */
-       lcore_hello(NULL);
+        lcore_hello(NULL);

Unneeded change, which I dropped when applying.

examples/helloworld/main.c main(int argc, char **argv) · line 50

Quoted 3 lines
examples/helloworld/main.c +0 -0
        /* >8 End of launching the function on each lcore. */
 
        rte_eal_mp_wait_lcore();

Applied, thanks.

Signature · 1 line
David Marchand