Skip to contentSkip to conversation

examples/kni: remove deprecated kni example

PATCH Superseded Bruce Richardson 3 participants 6 messages Sep 20, 2022 – Oct 3, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples/kni: remove deprecated kni example

As part of the agreed process for deprecating KNI in DPDK, the example app is scheduled for removal as part of the 22.11 release.

---
 doc/guides/rel_notes/deprecation.rst          |    1 -
 doc/guides/sample_app_ug/index.rst            |    1 -
 .../sample_app_ug/kernel_nic_interface.rst    |  318 -----
 examples/kni/Makefile                         |   52 -
 examples/kni/main.c                           | 1140 -----------------
 examples/kni/meson.build                      |   13 -
 examples/meson.build                          |    1 -
 7 files changed, 1526 deletions(-)
 delete mode 100644 doc/guides/sample_app_ug/kernel_nic_interface.rst
 delete mode 100644 examples/kni/Makefile
 delete mode 100644 examples/kni/main.c
 delete mode 100644 examples/kni/meson.build
doc/guides/rel_notes/deprecation.rst +0 -1
index c1975d6c3e..2ded2d69d1 100644
@@ -70,7 +70,6 @@ Deprecation Notices
   and `refinement <http://mails.dpdk.org/archives/dev/2022-June/243596.html>`_:
 
   * Some deprecation warnings will be added in DPDK 22.11.
-  * The KNI example application will be removed from DPDK 22.11.
   * The KNI kernel module, library and PMD will be removed from the DPDK 23.11.
 
 * lib: will fix extending some enum/define breaking the ABI. There are multiple
doc/guides/sample_app_ug/index.rst +0 -1
index cc9fae1e8c..6e1e83d7d7 100644
@@ -20,7 +20,6 @@ Sample Applications User Guides
     ip_frag
     ipv4_multicast
     ip_reassembly
-    kernel_nic_interface
     keep_alive
     dma
     l2_forward_crypto
doc/guides/sample_app_ug/kernel_nic_interface.rst deleted +0 -318

318 lines not on this page · raw message

examples/kni/Makefile deleted +0 -52

52 lines not on this page · raw message

examples/kni/main.c deleted +0 -1140

1,140 lines not on this page · raw message

examples/kni/meson.build deleted +0 -13
deleted file mode 100644
index 6bd4eb50e6..0000000000
@@ -1,13 +0,0 @@
-# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2017 Intel Corporation
-
-# meson file, for building this example as part of a main DPDK build.
-#
-# To build this example as a standalone application with an already-installed
-# DPDK instance, use 'make'
-
-deps += ['kni', 'bus_pci']
-sources = files(
-        'main.c',
-)
-allow_experimental_apis = true
examples/meson.build +0 -1
index 81e93799f2..6968c09252 100644
@@ -24,7 +24,6 @@ all_examples = [
         'ip_reassembly',
         'ipsec-secgw',
         'ipv4_multicast',
-        'kni',
         'l2fwd',
         'l2fwd-cat',
         'l2fwd-crypto',
Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 1/1 examples/kni: remove deprecated kni example

In reply to Bruce Richardson

As part of the agreed process for deprecating KNI in DPDK, the example app is scheduled for removal as part of the 22.11 release.

---
V2: Correct old release note links to KNI guide by referencing older doc

---
 doc/guides/rel_notes/deprecation.rst          |    1 -
 doc/guides/rel_notes/release_18_11.rst        |    4 +-
 doc/guides/sample_app_ug/index.rst            |    1 -
 .../sample_app_ug/kernel_nic_interface.rst    |  318 -----
 examples/kni/Makefile                         |   52 -
 examples/kni/main.c                           | 1140 -----------------
 examples/kni/meson.build                      |   13 -
 examples/meson.build                          |    1 -
 8 files changed, 2 insertions(+), 1528 deletions(-)
 delete mode 100644 doc/guides/sample_app_ug/kernel_nic_interface.rst
 delete mode 100644 examples/kni/Makefile
 delete mode 100644 examples/kni/main.c
 delete mode 100644 examples/kni/meson.build
doc/guides/rel_notes/deprecation.rst +0 -1
index c1975d6c3e..2ded2d69d1 100644
@@ -70,7 +70,6 @@ Deprecation Notices
   and `refinement <http://mails.dpdk.org/archives/dev/2022-June/243596.html>`_:
 
   * Some deprecation warnings will be added in DPDK 22.11.
-  * The KNI example application will be removed from DPDK 22.11.
   * The KNI kernel module, library and PMD will be removed from the DPDK 23.11.
 
 * lib: will fix extending some enum/define breaking the ABI. There are multiple
doc/guides/rel_notes/release_18_11.rst +2 -2
index be52bf0803..708bc9d4dd 100644
@@ -265,7 +265,7 @@ New Features
   carrier state is set to ``on`` via ``rte_kni_update_link`` or
   by writing ``1`` to ``/sys/devices/virtual/net/<iface>/carrier``.
   In previous versions the default carrier state was left undefined.
-  See :doc:`../prog_guide/kernel_nic_interface` for more information.
+  See `Kernel NIC Interface <https://doc.dpdk.org/guides-18.11/sample_app_ug/kernel_nic_interface.html>`_ for more information.
 
   Also added the new API function ``rte_kni_update_link()`` to allow the user
   to set the carrier state of the KNI kernel network interface.
@@ -273,7 +273,7 @@ New Features
   Also added a new command line flag ``-m`` to the KNI sample application to
   monitor and automatically reflect the physical NIC carrier state to the
   KNI kernel network interface with the new ``rte_kni_update_link()`` API.
-  See :doc:`../sample_app_ug/kernel_nic_interface` for more information.
+  See `Kernel NIC Interface <https://doc.dpdk.org/guides-18.11/sample_app_ug/kernel_nic_interface.html>`_ for more information.
 
 * **Added ability to switch queue deferred start flag on testpmd app.**
 
doc/guides/sample_app_ug/index.rst +0 -1
index cc9fae1e8c..6e1e83d7d7 100644
@@ -20,7 +20,6 @@ Sample Applications User Guides
     ip_frag
     ipv4_multicast
     ip_reassembly
-    kernel_nic_interface
     keep_alive
     dma
     l2_forward_crypto
doc/guides/sample_app_ug/kernel_nic_interface.rst deleted +0 -318

318 lines not on this page · raw message

examples/kni/Makefile deleted +0 -52

52 lines not on this page · raw message

examples/kni/main.c deleted +0 -1140

1,140 lines not on this page · raw message

examples/kni/meson.build deleted +0 -13
deleted file mode 100644
index 6bd4eb50e6..0000000000
@@ -1,13 +0,0 @@
-# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2017 Intel Corporation
-
-# meson file, for building this example as part of a main DPDK build.
-#
-# To build this example as a standalone application with an already-installed
-# DPDK instance, use 'make'
-
-deps += ['kni', 'bus_pci']
-sources = files(
-        'main.c',
-)
-allow_experimental_apis = true
examples/meson.build +0 -1
index 81e93799f2..6968c09252 100644
@@ -24,7 +24,6 @@ all_examples = [
         'ip_reassembly',
         'ipsec-secgw',
         'ipv4_multicast',
-        'kni',
         'l2fwd',
         'l2fwd-cat',
         'l2fwd-crypto',

--
2.34.1

Acked-by Stephen Hemminger Acked-by on v2 1/1 Applied
#3 lore raw

20/09/2022 17:51, Bruce Richardson:

Quoted 6 lines

As part of the agreed process for deprecating KNI in DPDK, the example app is scheduled for removal as part of the 22.11 release.

---
V2: Correct old release note links to KNI guide by referencing older doc

Applied, thanks.

#4 lore raw
Quoted 4 lines · On Mon, 03 Oct 2022 18:11:08 +0200 Thomas Monjalon <[email protected]> wrote:

20/09/2022 17:51, Bruce Richardson:

Quoted 3 lines

As part of the agreed process for deprecating KNI in DPDK, the example app is scheduled for removal as part of the 22.11 release.

Quoted 8 lines
Quoted 3 lines

---
V2: Correct old release note links to KNI guide by referencing older doc

Applied, thanks.

What about many of the other places that refer or use KNI? The packet framework, port library and ip_pipeline all have kni hooks.

#5 lore raw

03/10/2022 18:47, Stephen Hemminger:

Quoted 11 lines
Quoted 8 lines · On Mon, 03 Oct 2022 18:11:08 +0200 Thomas Monjalon <[email protected]> wrote:

20/09/2022 17:51, Bruce Richardson:

Quoted 6 lines

As part of the agreed process for deprecating KNI in DPDK, the example app is scheduled for removal as part of the 22.11 release.

---
V2: Correct old release note links to KNI guide by referencing older doc

Quoted 7 lines
Quoted 4 lines

Applied, thanks.

What about many of the other places that refer or use KNI? The packet framework, port library and ip_pipeline all have kni hooks.

This was only removing the example.
Someone needs to work on the other parts.
And we should add some warning at build time and runtime for KNI in this release 22.11, as announced in the deprecation page.

Volunteer?