Skip to contentSkip to conversation

examples/multi_process: remove l2fwd fork example

PATCH Superseded Gage Eads 3 participants 5 messages Jul 27, 2018 – Aug 5, 2018

lore
Share & tools
lore

Gage Eads

author
#0 lore raw

PATCH 1/1 examples/multi_process: remove l2fwd fork example

l2fwd_fork relies on a multiprocess model that that DPDK does not support (calling rte_eal_init() before fork()), in particular in light of recent EAL changes like the multiproess communication channel.

This example can mislead users into thinking this is a supported multiprocess model; hence, this commit removes this example and the corresponding user guide documentation as well.

---
 doc/guides/sample_app_ug/img/master_slave_proc.png |  Bin 195232 -> 0 bytes
 doc/guides/sample_app_ug/img/slave_proc_recov.png  |  Bin 85287 -> 0 bytes
 doc/guides/sample_app_ug/index.rst                 |    4 -
 doc/guides/sample_app_ug/multi_process.rst         |  406 -------
 examples/multi_process/Makefile                    |    1 -
 examples/multi_process/l2fwd_fork/Makefile         |   22 -
 examples/multi_process/l2fwd_fork/flib.c           |  280 -----
 examples/multi_process/l2fwd_fork/flib.h           |  120 --
 examples/multi_process/l2fwd_fork/main.c           | 1258 --------------------
 9 files changed, 2091 deletions(-)
 delete mode 100644 doc/guides/sample_app_ug/img/master_slave_proc.png
 delete mode 100644 doc/guides/sample_app_ug/img/slave_proc_recov.png
 delete mode 100644 examples/multi_process/l2fwd_fork/Makefile
 delete mode 100644 examples/multi_process/l2fwd_fork/flib.c
 delete mode 100644 examples/multi_process/l2fwd_fork/flib.h
 delete mode 100644 examples/multi_process/l2fwd_fork/main.c
doc/guides/sample_app_ug/img/master_slave_proc.png deleted binary +0 -0
deleted file mode 100644
index a0065e855e34e7695c57d596265fedbf7401caec..0000000000000000000000000000000000000000
GIT binary patch
doc/guides/sample_app_ug/img/slave_proc_recov.png deleted binary +0 -0
deleted file mode 100644
index 62f1f088ca5d3e1b6130ab973183bfc531e8ece2..0000000000000000000000000000000000000000
GIT binary patch
doc/guides/sample_app_ug/index.rst +0 -4
index 57e8354d4..5bedf4f6f 100644
@@ -83,10 +83,6 @@ Sample Applications User Guides
 
 :numref:`figure_client_svr_sym_multi_proc_app` :ref:`figure_client_svr_sym_multi_proc_app`
 
-:numref:`figure_master_slave_proc` :ref:`figure_master_slave_proc`
-
-:numref:`figure_slave_proc_recov` :ref:`figure_slave_proc_recov`
-
 :numref:`figure_qos_sched_app_arch` :ref:`figure_qos_sched_app_arch`
 
 :numref:`figure_pipeline_overview` :ref:`figure_pipeline_overview`
doc/guides/sample_app_ug/multi_process.rst +0 -406

409 lines not on this page · raw message

examples/multi_process/Makefile +0 -1
index 5961d281e..a6708b7e4 100644
@@ -13,6 +13,5 @@ include $(RTE_SDK)/mk/rte.vars.mk
 DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += client_server_mp
 DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += simple_mp
 DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += symmetric_mp
-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += l2fwd_fork
 
 include $(RTE_SDK)/mk/rte.extsubdir.mk
examples/multi_process/l2fwd_fork/Makefile deleted +0 -22
deleted file mode 100644
index b65582ef1..000000000
@@ -1,22 +0,0 @@
-# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2010-2014 Intel Corporation
-
-# binary name
-APP = l2fwd-fork
-
-# all source are stored in SRCS-y
-SRCS-y := main.c flib.c
-
-ifeq ($(RTE_SDK),)
-$(error "Please define RTE_SDK environment variable")
-endif
-
-# Default target, can be overridden by command line or environment
-RTE_TARGET ?= x86_64-native-linuxapp-gcc
-
-include $(RTE_SDK)/mk/rte.vars.mk
-
-CFLAGS += -O3
-CFLAGS += $(WERROR_FLAGS)
-
-include $(RTE_SDK)/mk/rte.extapp.mk
examples/multi_process/l2fwd_fork/flib.c deleted +0 -280

280 lines not on this page · raw message

examples/multi_process/l2fwd_fork/flib.h deleted +0 -120

120 lines not on this page · raw message

examples/multi_process/l2fwd_fork/main.c deleted +0 -1258

1,258 lines not on this page · raw message

Signature · 1 line
2.13.6
#1 lore raw
Quoted 10 lines · Gage Eads

l2fwd_fork relies on a multiprocess model that that DPDK does not support (calling rte_eal_init() before fork()), in particular in light of recent EAL changes like the multiproess communication channel.

This example can mislead users into thinking this is a supported multiprocess model; hence, this commit removes this example and the corresponding user guide documentation as well.

---

Hi Gage,

Maybe the commit message should reference the earlier discussion on the mailing list.

Signature · 2 lines
Thanks,
Anatoly
author
#2 lore raw
Quoted 17 lines

-----Original Message-----
From: Burakov, Anatoly
Sent: Monday, July 30, 2018 3:53 AM
To: Eads, Gage <[email protected]>; [email protected]
Subject: Re: [PATCH] examples/multi_process: remove l2fwd fork example

Quoted 8 lines · Gage Eads

l2fwd_fork relies on a multiprocess model that that DPDK does not support (calling rte_eal_init() before fork()), in particular in light of recent EAL changes like the multiproess communication channel.

This example can mislead users into thinking this is a supported multiprocess model; hence, this commit removes this example and the corresponding user guide documentation as well.

Quoted 7 lines
Quoted 2 lines

---

Hi Gage,

Maybe the commit message should reference the earlier discussion on the mailing list.

Certainly, will do.

Thanks,
Gage

Quoted 4 lines

--
Thanks,
Anatoly

author
#3 lore raw

PATCH v2 1/1 examples/multi_process: remove l2fwd fork example

In reply to Gage Eads

l2fwd_fork relies on a multiprocess model that that DPDK does not support (calling rte_eal_init() before fork()), in particular in light of recent EAL changes like the multiproess communication channel.

This example can mislead users into thinking this is a supported multiprocess model; hence, this commit removes this example and the corresponding user guide documentation as well.

This patch was made following this mailing list discussion:
http://mails.dpdk.org/archives/dev/2018-July/108106.html

---
v2: Added reference to mailing list discussion

 doc/guides/sample_app_ug/img/master_slave_proc.png |  Bin 195232 -> 0 bytes
 doc/guides/sample_app_ug/img/slave_proc_recov.png  |  Bin 85287 -> 0 bytes
 doc/guides/sample_app_ug/index.rst                 |    4 -
 doc/guides/sample_app_ug/multi_process.rst         |  406 -------
 examples/multi_process/Makefile                    |    1 -
 examples/multi_process/l2fwd_fork/Makefile         |   22 -
 examples/multi_process/l2fwd_fork/flib.c           |  280 -----
 examples/multi_process/l2fwd_fork/flib.h           |  120 --
 examples/multi_process/l2fwd_fork/main.c           | 1258 --------------------
 9 files changed, 2091 deletions(-)
 delete mode 100644 doc/guides/sample_app_ug/img/master_slave_proc.png
 delete mode 100644 doc/guides/sample_app_ug/img/slave_proc_recov.png
 delete mode 100644 examples/multi_process/l2fwd_fork/Makefile
 delete mode 100644 examples/multi_process/l2fwd_fork/flib.c
 delete mode 100644 examples/multi_process/l2fwd_fork/flib.h
 delete mode 100644 examples/multi_process/l2fwd_fork/main.c
doc/guides/sample_app_ug/img/master_slave_proc.png deleted binary +0 -0
deleted file mode 100644
index a0065e855e34e7695c57d596265fedbf7401caec..0000000000000000000000000000000000000000
GIT binary patch
doc/guides/sample_app_ug/img/slave_proc_recov.png deleted binary +0 -0
deleted file mode 100644
index 62f1f088ca5d3e1b6130ab973183bfc531e8ece2..0000000000000000000000000000000000000000
GIT binary patch
doc/guides/sample_app_ug/index.rst +0 -4
index 57e8354d4..5bedf4f6f 100644
@@ -83,10 +83,6 @@ Sample Applications User Guides
 
 :numref:`figure_client_svr_sym_multi_proc_app` :ref:`figure_client_svr_sym_multi_proc_app`
 
-:numref:`figure_master_slave_proc` :ref:`figure_master_slave_proc`
-
-:numref:`figure_slave_proc_recov` :ref:`figure_slave_proc_recov`
-
 :numref:`figure_qos_sched_app_arch` :ref:`figure_qos_sched_app_arch`
 
 :numref:`figure_pipeline_overview` :ref:`figure_pipeline_overview`
doc/guides/sample_app_ug/multi_process.rst +0 -406

409 lines not on this page · raw message

examples/multi_process/Makefile +0 -1
index 5961d281e..a6708b7e4 100644
@@ -13,6 +13,5 @@ include $(RTE_SDK)/mk/rte.vars.mk
 DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += client_server_mp
 DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += simple_mp
 DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += symmetric_mp
-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += l2fwd_fork
 
 include $(RTE_SDK)/mk/rte.extsubdir.mk
examples/multi_process/l2fwd_fork/Makefile deleted +0 -22
deleted file mode 100644
index b65582ef1..000000000
@@ -1,22 +0,0 @@
-# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2010-2014 Intel Corporation
-
-# binary name
-APP = l2fwd-fork
-
-# all source are stored in SRCS-y
-SRCS-y := main.c flib.c
-
-ifeq ($(RTE_SDK),)
-$(error "Please define RTE_SDK environment variable")
-endif
-
-# Default target, can be overridden by command line or environment
-RTE_TARGET ?= x86_64-native-linuxapp-gcc
-
-include $(RTE_SDK)/mk/rte.vars.mk
-
-CFLAGS += -O3
-CFLAGS += $(WERROR_FLAGS)
-
-include $(RTE_SDK)/mk/rte.extapp.mk
examples/multi_process/l2fwd_fork/flib.c deleted +0 -280

280 lines not on this page · raw message

examples/multi_process/l2fwd_fork/flib.h deleted +0 -120

120 lines not on this page · raw message

examples/multi_process/l2fwd_fork/main.c deleted +0 -1258

1,258 lines not on this page · raw message

Signature · 1 line
2.13.6
#4 lore raw

30/07/2018 17:10, Gage Eads:

Quoted 4 lines

l2fwd_fork relies on a multiprocess model that that DPDK does not support (calling rte_eal_init() before fork()), in particular in light of recent EAL changes like the multiproess communication channel.

Quoted 8 lines

This example can mislead users into thinking this is a supported multiprocess model; hence, this commit removes this example and the corresponding user guide documentation as well.

This patch was made following this mailing list discussion:
http://mails.dpdk.org/archives/dev/2018-July/108106.html

Applied, thanks