Skip to contentSkip to conversation

flow_classify: remove library

PATCH Superseded Stephen Hemminger 2 participants 2 messages Jul 31, 2023 – Aug 1, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 flow_classify: remove library

The flow_classify library was marked for removal last year because there was no maintainer and the functionality is limited.

---
 MAINTAINERS                                   |   7 -
 app/test/meson.build                          |   4 -
 app/test/test_flow_classify.c                 | 895 ------------------
 doc/api/doxy-api-index.md                     |   1 -
 doc/api/doxy-api.conf.in                      |   1 -
 doc/guides/freebsd_gsg/build_sample_apps.rst  |   2 +-
 doc/guides/freebsd_gsg/install_from_ports.rst |   2 +-
 doc/guides/prog_guide/flow_classify_lib.rst   | 424 ---------
 doc/guides/prog_guide/index.rst               |   1 -
 doc/guides/rel_notes/deprecation.rst          |   8 +-
 doc/guides/rel_notes/release_23_11.rst        |   3 +
 doc/guides/sample_app_ug/flow_classify.rst    | 242 -----
 doc/guides/sample_app_ug/index.rst            |   1 -
 examples/flow_classify/Makefile               |  51 -
 examples/flow_classify/flow_classify.c        | 878 -----------------
 examples/flow_classify/ipv4_rules_file.txt    |  14 -
 examples/flow_classify/meson.build            |  13 -
 examples/meson.build                          |   1 -
 lib/flow_classify/meson.build                 |  12 -
 lib/flow_classify/rte_flow_classify.c         | 670 -------------
 lib/flow_classify/rte_flow_classify.h         | 284 ------
 lib/flow_classify/rte_flow_classify_parse.c   | 532 -----------
 lib/flow_classify/rte_flow_classify_parse.h   |  58 --
 lib/flow_classify/version.map                 |  13 -
 lib/meson.build                               |   3 -
 meson_options.txt                             |   2 +-
 26 files changed, 7 insertions(+), 4115 deletions(-)
 delete mode 100644 app/test/test_flow_classify.c
 delete mode 100644 doc/guides/prog_guide/flow_classify_lib.rst
 delete mode 100644 doc/guides/sample_app_ug/flow_classify.rst
 delete mode 100644 examples/flow_classify/Makefile
 delete mode 100644 examples/flow_classify/flow_classify.c
 delete mode 100644 examples/flow_classify/ipv4_rules_file.txt
 delete mode 100644 examples/flow_classify/meson.build
 delete mode 100644 lib/flow_classify/meson.build
 delete mode 100644 lib/flow_classify/rte_flow_classify.c
 delete mode 100644 lib/flow_classify/rte_flow_classify.h
 delete mode 100644 lib/flow_classify/rte_flow_classify_parse.c
 delete mode 100644 lib/flow_classify/rte_flow_classify_parse.h
 delete mode 100644 lib/flow_classify/version.map
MAINTAINERS +0 -7
index 18bc05fccd0d..dbb25211c367 100644
@@ -1511,13 +1511,6 @@ F: lib/pdcp/
 F: doc/guides/prog_guide/pdcp_lib.rst
 F: app/test/test_pdcp*
 
-Flow Classify - EXPERIMENTAL - UNMAINTAINED
-F: lib/flow_classify/
-F: app/test/test_flow_classify*
-F: doc/guides/prog_guide/flow_classify_lib.rst
-F: examples/flow_classify/
-F: doc/guides/sample_app_ug/flow_classify.rst
-
 Distributor
 M: David Hunt <[email protected]>
 F: lib/distributor/
app/test/meson.build +0 -4
index b89cf0368fb5..90a2e350c7ae 100644
@@ -359,10 +359,6 @@ if dpdk_conf.has('RTE_EVENT_SKELETON')
     test_deps += 'event_skeleton'
 endif
 
-if dpdk_conf.has('RTE_LIB_FLOW_CLASSIFY')
-    test_sources += 'test_flow_classify.c'
-    fast_tests += [['flow_classify_autotest', false, true]]
-endif
 if dpdk_conf.has('RTE_LIB_GRAPH')
     test_sources += 'test_graph.c'
     fast_tests += [['graph_autotest', true, true]]
app/test/test_flow_classify.c deleted +0 -895

895 lines not on this page · raw message

doc/api/doxy-api-index.md +0 -1
index 3bc8778981f6..5cd8c9de8105 100644
@@ -160,7 +160,6 @@ The public API headers are grouped by topics:
   [EFD](@ref rte_efd.h),
   [ACL](@ref rte_acl.h),
   [member](@ref rte_member.h),
-  [flow classify](@ref rte_flow_classify.h),
   [BPF](@ref rte_bpf.h)
 
 - **containers**:
doc/api/doxy-api.conf.in +0 -1
index 1a4210b948a8..9a9c52e5569c 100644
@@ -40,7 +40,6 @@ INPUT                   = @TOPDIR@/doc/api/doxy-api-index.md \
                           @TOPDIR@/lib/ethdev \
                           @TOPDIR@/lib/eventdev \
                           @TOPDIR@/lib/fib \
-                          @TOPDIR@/lib/flow_classify \
                           @TOPDIR@/lib/gpudev \
                           @TOPDIR@/lib/graph \
                           @TOPDIR@/lib/gro \
doc/guides/freebsd_gsg/build_sample_apps.rst +1 -1
index b1ab7545b1ce..7bdd88e56d32 100644
@@ -31,7 +31,7 @@ the installation of DPDK using `meson install` as described previously::
         $ gmake
         cc -O3 -I/usr/local/include -include rte_config.h -march=native
         -D__BSD_VISIBLE  main.c -o build/helloworld-shared
-        -L/usr/local/lib -lrte_telemetry -lrte_bpf -lrte_flow_classify
+        -L/usr/local/lib -lrte_telemetry -lrte_bpf
         -lrte_pipeline -lrte_table -lrte_port -lrte_fib -lrte_ipsec
         -lrte_stack -lrte_security -lrte_sched -lrte_reorder -lrte_rib
         -lrte_rcu -lrte_rawdev -lrte_pdump -lrte_member -lrte_lpm
doc/guides/freebsd_gsg/install_from_ports.rst +1 -1
index d946f3f3b2eb..3c98c46b298f 100644
@@ -84,7 +84,7 @@ via the contigmem module, and 4 NIC ports bound to the nic_uio module::
     cd helloworld/
 
     gmake
-    cc -O3 -I/usr/local/include -include rte_config.h -march=corei7 -D__BSD_VISIBLE  main.c -o build/helloworld-shared  -L/usr/local/lib -lrte_bpf -lrte_flow_classify -lrte_pipeline -lrte_table -lrte_port -lrte_fib -lrte_ipsec -lrte_stack -lrte_security -lrte_sched -lrte_reorder -lrte_rib -lrte_rcu -lrte_rawdev -lrte_pdump -lrte_member -lrte_lpm -lrte_latencystats -lrte_jobstats -lrte_ip_frag -lrte_gso -lrte_gro -lrte_eventdev -lrte_efd -lrte_distributor -lrte_cryptodev -lrte_compressdev -lrte_cfgfile -lrte_bitratestats -lrte_bbdev -lrte_acl -lrte_timer -lrte_hash -lrte_metrics -lrte_cmdline -lrte_pci -lrte_ethdev -lrte_meter -lrte_net -lrte_mbuf -lrte_mempool -lrte_ring -lrte_eal -lrte_kvargs
+    cc -O3 -I/usr/local/include -include rte_config.h -march=corei7 -D__BSD_VISIBLE  main.c -o build/helloworld-shared  -L/usr/local/lib -lrte_bpf -lrte_pipeline -lrte_table -lrte_port -lrte_fib -lrte_ipsec -lrte_stack -lrte_security -lrte_sched -lrte_reorder -lrte_rib -lrte_rcu -lrte_rawdev -lrte_pdump -lrte_member -lrte_lpm -lrte_latencystats -lrte_jobstats -lrte_ip_frag -lrte_gso -lrte_gro -lrte_eventdev -lrte_efd -lrte_distributor -lrte_cryptodev -lrte_compressdev -lrte_cfgfile -lrte_bitratestats -lrte_bbdev -lrte_acl -lrte_timer -lrte_hash -lrte_metrics -lrte_cmdline -lrte_pci -lrte_ethdev -lrte_meter -lrte_net -lrte_mbuf -lrte_mempool -lrte_ring -lrte_eal -lrte_kvargs
     ln -sf helloworld-shared build/helloworld
 
     sudo ./build/helloworld -l 0-3
doc/guides/prog_guide/flow_classify_lib.rst deleted +0 -424

424 lines not on this page · raw message

doc/guides/prog_guide/index.rst +0 -1
index d89cd3edb63c..c04847bfa148 100644
@@ -43,7 +43,6 @@ Programmer's Guide
     lpm6_lib
     fib_lib
     rib_lib
-    flow_classify_lib
     packet_distrib_lib
     reorder_lib
     ip_fragment_reassembly_lib
doc/guides/rel_notes/deprecation.rst +1 -7
index 494b401cda4b..ce5a8f0361cb 100644
@@ -35,7 +35,7 @@ Deprecation Notices
     which also added support for standard atomics
     (Ref: https://releases.llvm.org/3.6.0/tools/clang/docs/ReleaseNotes.html)
 
-* build: Enabling deprecated libraries (``flow_classify``, ``kni``)
+* build: Enabling deprecated libraries (``kni``)
   won't be possible anymore through the use of the ``disable_libs`` build option.
   A new build option for deprecated libraries will be introduced instead.
 
@@ -200,12 +200,6 @@ Deprecation Notices
   Since these functions are not called directly by the application,
   the API remains unaffected.
 
-* flow_classify: The flow_classify library and example have no maintainer.
-  The library is experimental and, as such, it could be removed from DPDK.
-  Its removal has been postponed to let potential users report interest
-  in maintaining it.
-  In the absence of such interest, this library will be removed in DPDK 23.11.
-
 * pipeline: The pipeline library legacy API (functions rte_pipeline_*)
   will be deprecated and subsequently removed in DPDK 24.11 release.
   Before this, the new pipeline library API (functions rte_swx_pipeline_*)
doc/guides/rel_notes/release_23_11.rst +3 -0
index 6b4dd21fd0e1..f4c1e5ef4a7a 100644
@@ -68,6 +68,9 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* flow_classify: library has been removed as planned.
+  The library was experimental there was no maintainer or user interest.
+
 
 API Changes
 -----------
doc/guides/sample_app_ug/flow_classify.rst deleted +0 -242

242 lines not on this page · raw message

doc/guides/sample_app_ug/index.rst +0 -1
index 6e1e83d7d7c8..19485556c765 100644
@@ -15,7 +15,6 @@ Sample Applications User Guides
     hello_world
     skeleton
     rxtx_callbacks
-    flow_classify
     flow_filtering
     ip_frag
     ipv4_multicast
examples/flow_classify/Makefile deleted +0 -51

51 lines not on this page · raw message

examples/flow_classify/flow_classify.c deleted +0 -878

878 lines not on this page · raw message

examples/flow_classify/ipv4_rules_file.txt deleted +0 -14
deleted file mode 100644
index cd5215736aaf..000000000000
@@ -1,14 +0,0 @@
-#file format:
-#src_ip/masklen dst_ip/masklen src_port : mask dst_port : mask proto/mask priority
-#
-2.2.2.3/24 2.2.2.7/24 32 : 0xffff 33 : 0xffff 17/0xff 0
-9.9.9.3/24 9.9.9.7/24 32 : 0xffff 33 : 0xffff 17/0xff 1
-9.9.9.3/24 9.9.9.7/24 32 : 0xffff 33 : 0xffff 6/0xff 2
-9.9.8.3/24 9.9.8.7/24 32 : 0xffff 33 : 0xffff 6/0xff 3
-6.7.8.9/24 2.3.4.5/24 32 : 0x0000 33 : 0x0000 132/0xff 4
-6.7.8.9/32 192.168.0.36/32 10 : 0xffff 11 : 0xffff 6/0xfe 5
-6.7.8.9/24 192.168.0.36/24 10 : 0xffff 11 : 0xffff 6/0xfe 6
-6.7.8.9/16 192.168.0.36/16 10 : 0xffff 11 : 0xffff 6/0xfe 7
-6.7.8.9/8 192.168.0.36/8 10 : 0xffff 11 : 0xffff 6/0xfe 8
-#error rules
-#9.8.7.6/8 192.168.0.36/8 10 : 0xffff 11 : 0xffff 6/0xfe 9
examples/flow_classify/meson.build deleted +0 -13
deleted file mode 100644
index 1be1bf037427..000000000000
@@ -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 += 'flow_classify'
-allow_experimental_apis = true
-sources = files(
-        'flow_classify.c',
-)
examples/meson.build +0 -1
index 55ba8847a053..65c8303a9d23 100644
@@ -16,7 +16,6 @@ all_examples = [
         'ethtool',
         'eventdev_pipeline',
         'fips_validation',
-        'flow_classify',
         'flow_filtering',
         'helloworld',
         'ip_fragmentation',
lib/flow_classify/meson.build deleted +0 -12
deleted file mode 100644
index 3bb861c68fb5..000000000000
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2017 Intel Corporation
-
-if is_windows
-    build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
-sources = files('rte_flow_classify.c', 'rte_flow_classify_parse.c')
-headers = files('rte_flow_classify.h')
-deps += ['net', 'table']
lib/flow_classify/rte_flow_classify.c deleted +0 -670

368 lines not on this page · raw message

lib/flow_classify/rte_flow_classify.h deleted +0 -284

284 lines not on this page · raw message

lib/flow_classify/rte_flow_classify_parse.c deleted +0 -532

532 lines not on this page · raw message

lib/flow_classify/rte_flow_classify_parse.h deleted +0 -58

58 lines not on this page · raw message

lib/flow_classify/version.map deleted +0 -13
deleted file mode 100644
index 49bc25c6a087..000000000000

Lines of this file are not shown. View the raw message.

lib/meson.build +0 -3
index fac2f52cad4f..ecac701161c8 100644

Lines of this file are not shown. View the raw message.

meson_options.txt +1 -1
index 82c8297065f0..95e22e0ce70c 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.39.2

Part of the diff is not shown here. View the raw message.

#1 lore raw

Hello,

Quoted 10 lines · Stephen Hemminger

The flow_classify library was marked for removal last year because there was no maintainer and the functionality is limited.

---
 MAINTAINERS                                   |   7 -
 app/test/meson.build                          |   4 -
 app/test/test_flow_classify.c                 | 895 ------------------

app/test/test_flow_classify.h can be removed too.

Quoted 38 lines
 doc/api/doxy-api-index.md                     |   1 -
 doc/api/doxy-api.conf.in                      |   1 -
 doc/guides/freebsd_gsg/build_sample_apps.rst  |   2 +-
 doc/guides/freebsd_gsg/install_from_ports.rst |   2 +-
 doc/guides/prog_guide/flow_classify_lib.rst   | 424 ---------
 doc/guides/prog_guide/index.rst               |   1 -
 doc/guides/rel_notes/deprecation.rst          |   8 +-
 doc/guides/rel_notes/release_23_11.rst        |   3 +
 doc/guides/sample_app_ug/flow_classify.rst    | 242 -----
 doc/guides/sample_app_ug/index.rst            |   1 -
 examples/flow_classify/Makefile               |  51 -
 examples/flow_classify/flow_classify.c        | 878 -----------------
 examples/flow_classify/ipv4_rules_file.txt    |  14 -
 examples/flow_classify/meson.build            |  13 -
 examples/meson.build                          |   1 -
 lib/flow_classify/meson.build                 |  12 -
 lib/flow_classify/rte_flow_classify.c         | 670 -------------
 lib/flow_classify/rte_flow_classify.h         | 284 ------
 lib/flow_classify/rte_flow_classify_parse.c   | 532 -----------
 lib/flow_classify/rte_flow_classify_parse.h   |  58 --
 lib/flow_classify/version.map                 |  13 -
 lib/meson.build                               |   3 -
 meson_options.txt                             |   2 +-
 26 files changed, 7 insertions(+), 4115 deletions(-)
 delete mode 100644 app/test/test_flow_classify.c
 delete mode 100644 doc/guides/prog_guide/flow_classify_lib.rst
 delete mode 100644 doc/guides/sample_app_ug/flow_classify.rst
 delete mode 100644 examples/flow_classify/Makefile
 delete mode 100644 examples/flow_classify/flow_classify.c
 delete mode 100644 examples/flow_classify/ipv4_rules_file.txt
 delete mode 100644 examples/flow_classify/meson.build
 delete mode 100644 lib/flow_classify/meson.build
 delete mode 100644 lib/flow_classify/rte_flow_classify.c
 delete mode 100644 lib/flow_classify/rte_flow_classify.h
 delete mode 100644 lib/flow_classify/rte_flow_classify_parse.c
 delete mode 100644 lib/flow_classify/rte_flow_classify_parse.h
 delete mode 100644 lib/flow_classify/version.map

[snip]

doc/guides/rel_notes/release_23_11.rst Removed Items · line 74

Quoted 12 lines
doc/guides/rel_notes/release_23_11.rst +3 -0
index 6b4dd21fd0e1..f4c1e5ef4a7a 100644
@@ -68,6 +68,9 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* flow_classify: library has been removed as planned.
+  The library was experimental there was no maintainer or user interest.
+
 

Please use a consistent wording, like for kni.

doc/guides/rel_notes/release_23_11.rst Removed Items · line 76

Quoted 2 lines
doc/guides/rel_notes/release_23_11.rst +0 -0
 API Changes
 -----------

Thanks.

Signature · 1 line
David Marchand