Skip to content

Convert static log types in libraries to dynamic types

Stephen Hemminger dpdk-dev 11 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest21 patches 1 replyIn review
  2. v1222 patches 2 repliesSuperseded
  3. v1122 patches 3 repliesSuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v1022 patches3 repliesSuperseded
v922 patches4 repliesSuperseded
v822 patches5 repliesSuperseded
v722 patches3 repliesSuperseded
v622 patches2 repliesSuperseded
v522 patches0 repliesSuperseded
v419 patches0 repliesSuperseded
v316 patches5 repliesSuperseded

Patches in v13 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21gso: don't log message on non TCP/UDPlib/gso/rte_gso.c lib/gso/rte_gso.h+2 -30 replies
2/21eal: drop no longer used GSO logtypelib/log/log.c lib/log/rte_log.h+1 -20 replies
3/21log: drop unused RTE_LOGTYPE_TIMERlib/log/log.c lib/log/rte_log.h+1 -20 replies
4/21efd: convert RTE_LOGTYPE_EFD to dynamic typelib/efd/rte_efd.c lib/log/log.c lib/log/rte_log.h+5 -20 replies
5/21mbuf: convert RTE_LOGTYPE_MBUF to dynamic typelib/log/log.c lib/log/rte_log.h lib/mbuf/mbuf_log.h +3 more+13 -20 replies
6/21acl: convert RTE_LOGTYPE_ACL to dynamic typeapp/test/test_acl.c lib/acl/acl.h lib/acl/acl_bld.c +6 more+19 -60 replies
7/21examples/power: replace use of RTE_LOGTYPE_POWERexamples/distributor/main.c+1 -10 replies
8/21examples/l3fwd-power: replace use of RTE_LOGTYPE_POWERexamples/l3fwd-power/main.c+9 -80 replies
9/21power: convert RTE_LOGTYPE_POWER to dynamic typelib/log/log.c lib/log/rte_log.h lib/power/guest_channel.c +4 more+9 -30 replies
10/21ring: convert RTE_LOGTYPE_RING to dynamic typelib/log/log.c lib/log/rte_log.h lib/ring/rte_ring.c+4 -20 replies
11/21mempool: convert RTE_LOGTYPE_MEMPOOL to dynamic typelib/log/log.c lib/log/rte_log.h lib/mempool/rte_mempool.c +2 more+14 -20 replies
12/21lpm: convert RTE_LOGTYPE_LPM to dynamic typeslib/fib/fib_log.h lib/fib/rte_fib.c lib/fib/rte_fib6.c +8 more+28 -20 replies
13/21sched: convert RTE_LOGTYPE_SCHED to dynamic typelib/log/log.c lib/log/rte_log.h lib/sched/rte_pie.c +2 more+12 -40 replies
14/21examples/ipsec-secgw: replace RTE_LOGTYPE_PORTexamples/ipsec-secgw/sa.c+3 -30 replies
15/21port: convert RTE_LOGTYPE_PORT to dynamic typelib/log/log.c lib/log/rte_log.h lib/port/rte_port_ethdev.c +8 more+29 -20 replies
16/21hash: move rte_thash_gfni stubs out of header filelib/hash/meson.build lib/hash/rte_thash_gfni.c lib/hash/rte_thash_gfni.h +1 more+67 -220 replies
17/21hash: move rte_hash_set_alg out headerlib/hash/meson.build lib/hash/rte_crc_arm64.h lib/hash/rte_crc_x86.h +3 more+88 -540 replies
18/21hash: convert RTE_LOGTYPE_HASH to dynamic typelib/hash/rte_cuckoo_hash.c lib/hash/rte_fbk_hash.c lib/hash/rte_thash.c +3 more+17 -20 replies
19/21table: convert RTE_LOGTYPE_TABLE to dynamic typelib/log/log.c lib/log/rte_log.h lib/table/meson.build +2 more+14 -20 replies
20/21app/test: remove use of RTE_LOGTYPE_PIPELINEapp/test/test_table_acl.c app/test/test_table_pipeline.c+43 -470 replies
21/21pipeline: convert RTE_LOGTYPE_PIPELINE to dynamic typelib/log/log.c lib/log/rte_log.h lib/pipeline/rte_pipeline.c +1 more+8 -20 replies

Reviews trailers per patch

6 of 21 patches have a Reviewed-by or Acked-by.

PatchJiayu HuDavid HuntAkhil GoyalRuifeng Wang
1/21R-b
2/21
3/21
4/21
5/21
6/21
7/21A-b
8/21A-b
9/21A-b
10/21
11/21
12/21
13/21
14/21A-b
15/21
16/21
17/21A-b
18/21
19/21
20/21
21/21

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v13 thread

Cover letter [PATCH v13 00/21] Convert static log types in libraries to dynamic types

This patchset removes most of the uses of static LOGTYPE's in DPDK libraries. It starts with the easy one and goes on to the more complex ones.

There are several options on how to treat the old static types:
leave them there, mark as deprecated, or remove them. This version removes them since there is no guarantee in current DPDK policies that says they can't be removed.

Note: there is one patch in this series that will get flagged incorrectly as an ABI change.

v13 - rebase because log now moved.

v12 - rebase and add table and pipeline libraries

v11 - fix include check on arm cross build

v10 - add necessary rte_compat.h in thash_gfni stub for arm

v9 - fix handling of crc32 alg in lib/hash.
make it an internal global variable.
fix gfni stubs for case where they are not used.

Stephen Hemminger (21):
gso: don't log message on non TCP/UDP
eal: drop no longer used GSO logtype
log: drop unused RTE_LOGTYPE_TIMER
efd: convert RTE_LOGTYPE_EFD to dynamic type
mbuf: convert RTE_LOGTYPE_MBUF to dynamic type
acl: convert RTE_LOGTYPE_ACL to dynamic type examples/power: replace use of RTE_LOGTYPE_POWER examples/l3fwd-power: replace use of RTE_LOGTYPE_POWER
power: convert RTE_LOGTYPE_POWER to dynamic type
ring: convert RTE_LOGTYPE_RING to dynamic type
mempool: convert RTE_LOGTYPE_MEMPOOL to dynamic type
lpm: convert RTE_LOGTYPE_LPM to dynamic types
sched: convert RTE_LOGTYPE_SCHED to dynamic type examples/ipsec-secgw: replace RTE_LOGTYPE_PORT
port: convert RTE_LOGTYPE_PORT to dynamic type
hash: move rte_thash_gfni stubs out of header file
hash: move rte_hash_set_alg out header
hash: convert RTE_LOGTYPE_HASH to dynamic type
table: convert RTE_LOGTYPE_TABLE to dynamic type app/test: remove use of RTE_LOGTYPE_PIPELINE
pipeline: convert RTE_LOGTYPE_PIPELINE to dynamic type

 app/test/test_acl.c             |  2 +-
 app/test/test_table_acl.c       | 50 +++++++++++-------------
 app/test/test_table_pipeline.c  | 40 +++++++++----------
 examples/distributor/main.c     |  2 +-
 examples/ipsec-secgw/sa.c       |  6 +--
 examples/l3fwd-power/main.c     | 17 +++++----
 lib/acl/acl.h                   |  1 +
 lib/acl/acl_bld.c               |  3 ++
 lib/acl/acl_gen.c               |  1 +
 lib/acl/acl_log.h               |  6 +++
 lib/acl/rte_acl.c               |  3 ++
 lib/acl/tb_mem.c                |  3 +-
 lib/efd/rte_efd.c               |  4 ++
 lib/fib/fib_log.h               |  4 ++
 lib/fib/rte_fib.c               |  3 ++
 lib/fib/rte_fib6.c              |  2 +
 lib/gso/rte_gso.c               |  4 +-
 lib/gso/rte_gso.h               |  1 +
 lib/hash/meson.build            |  9 ++++-
 lib/hash/rte_crc_arm64.h        |  8 ++--
 lib/hash/rte_crc_x86.h          | 10 ++---
 lib/hash/rte_cuckoo_hash.c      |  5 +++
 lib/hash/rte_fbk_hash.c         |  5 +++
 lib/hash/rte_hash_crc.c         | 68 +++++++++++++++++++++++++++++++++
 lib/hash/rte_hash_crc.h         | 48 ++---------------------
 lib/hash/rte_thash.c            |  3 ++
 lib/hash/rte_thash_gfni.c       | 50 ++++++++++++++++++++++++
 lib/hash/rte_thash_gfni.h       | 30 +++++----------
 lib/hash/version.map            | 11 ++++++
 lib/log/log.c                   | 16 --------
 lib/log/rte_log.h               | 32 ++++++++--------
 lib/lpm/lpm_log.h               |  4 ++
 lib/lpm/rte_lpm.c               |  3 ++
 lib/lpm/rte_lpm6.c              |  1 +
 lib/mbuf/mbuf_log.h             |  4 ++
 lib/mbuf/rte_mbuf.c             |  4 ++
 lib/mbuf/rte_mbuf_dyn.c         |  2 +
 lib/mbuf/rte_mbuf_pool_ops.c    |  2 +
 lib/mempool/rte_mempool.c       |  2 +
 lib/mempool/rte_mempool.h       |  8 ++++
 lib/mempool/version.map         |  3 ++
 lib/pipeline/rte_pipeline.c     |  2 +
 lib/pipeline/rte_pipeline.h     |  5 +++
 lib/port/rte_port_ethdev.c      |  3 ++
 lib/port/rte_port_eventdev.c    |  4 ++
 lib/port/rte_port_fd.c          |  3 ++
 lib/port/rte_port_frag.c        |  3 ++
 lib/port/rte_port_ras.c         |  3 ++
 lib/port/rte_port_ring.c        |  3 ++
 lib/port/rte_port_sched.c       |  3 ++
 lib/port/rte_port_source_sink.c |  3 ++
 lib/port/rte_port_sym_crypto.c  |  3 ++
 lib/power/guest_channel.c       |  3 +-
 lib/power/power_common.c        |  2 +
 lib/power/power_common.h        |  2 +
 lib/power/power_kvm_vm.c        |  1 +
 lib/power/rte_power.c           |  1 +
 lib/rib/rib_log.h               |  4 ++
 lib/rib/rte_rib.c               |  3 ++
 lib/rib/rte_rib6.c              |  3 ++
 lib/ring/rte_ring.c             |  3 ++
 lib/sched/rte_pie.c             |  1 +
 lib/sched/rte_sched.c           |  5 +++
 lib/sched/rte_sched_log.h       |  4 ++
 lib/table/meson.build           |  1 +
 lib/table/rte_table.c           |  8 ++++
 lib/table/rte_table.h           |  4 ++
 67 files changed, 387 insertions(+), 173 deletions(-)
 create mode 100644 lib/acl/acl_log.h
 create mode 100644 lib/fib/fib_log.h
 create mode 100644 lib/hash/rte_hash_crc.c
 create mode 100644 lib/hash/rte_thash_gfni.c
 create mode 100644 lib/lpm/lpm_log.h
 create mode 100644 lib/mbuf/mbuf_log.h
 create mode 100644 lib/rib/rib_log.h
 create mode 100644 lib/sched/rte_sched_log.h
 create mode 100644 lib/table/rte_table.c
Signature · 1 line
2.39.2