Skip to content

ether: refine debug build option

Qi Zhang dpdk-dev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest8 patches 6 repliesIn review
  2. v58 patches 9 repliesSuperseded
  3. v48 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v39 patches3 repliesSuperseded
v28 patches7 repliesSuperseded
v18 patches1 replySuperseded

Changes in v6 from the cover letter

- fix build issue for -Dc_args="-DRTE_LIBRTE_ETHDEV_DEBUG=1"
- s/compile/build/

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ether: refine debug build optiondoc/guides/nics/build_and_test.rst lib/librte_ethdev/rte_ethdev.h+30 -85 replies
2/8net/fm10k: refine debug build optiondrivers/net/fm10k/fm10k_ethdev.c drivers/net/fm10k/fm10k_logs.h drivers/net/fm10k/fm10k_rxtx.c+8 -200 replies
3/8net/e1000: refine debug build optiondrivers/net/e1000/e1000_logs.c drivers/net/e1000/e1000_logs.h drivers/net/e1000/em_rxtx.c +1 more+26 -440 replies
4/8net/i40e: refine debug build optiondrivers/net/i40e/i40e_ethdev.c drivers/net/i40e/i40e_logs.h drivers/net/i40e/i40e_rxtx.c+12 -240 replies
5/8net/iavf: refine debug build optiondrivers/net/iavf/iavf_ethdev.c drivers/net/iavf/iavf_log.h drivers/net/iavf/iavf_rxtx.c+8 -200 replies
6/8net/ice: refine debug build optiondrivers/net/ice/ice_ethdev.c drivers/net/ice/ice_logs.h drivers/net/ice/ice_rxtx.c+14 -260 replies
7/8net/ixgbe: refine debug build optiondrivers/net/ixgbe/ixgbe_ethdev.c drivers/net/ixgbe/ixgbe_logs.h drivers/net/ixgbe/ixgbe_rxtx.c+36 -480 replies
8/8net/igc: refine debug build optiondrivers/net/e1000/e1000_logs.c drivers/net/igc/igc_logs.h drivers/net/igc/igc_txrx.c+4 -30 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFerruh Yigit
SeriesR-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [dpdk-dev] [PATCH v6 0/8] ether: refine debug build option

PMDs use RTE_LIBRTE_<PMD_NAME>_DEBUG_RX|TX as build option to wrap data path debug code. As .config has been removed since the meson build, It is not friendly for new DPDK users to notice those debug options.

Patch 1/8: introduces new compile options for data path debug in ether layer, PMD can choose to reuse them to avoid maintain their own.

- RTE_ETHDEV_DEBUG_RX
- RTE_ETHDEV_DEBUG_TX

The undocumented RTE_LIBRTE_ETHDEV_DEBUG will a alias to both RTE_ETHDEV_DEBUG_RX and RTE_ETHDEV_DEBUG_TX for backward compatibility.

Patch 2/8 - 8/8: refine the build option for Intel PMDs by using the new build options

v6:
- fix build issue for -Dc_args="-DRTE_LIBRTE_ETHDEV_DEBUG=1"
- s/compile/build/

v5:
- Remove RTE_ETHDEV_DEBUG
- Alias RTE_LIBRTE_ETHDEV_DEBUG to RTE_ETHDEV_DEBUG_RX|TX for backward compatibility.

v4:
- Alias RTE_LIBRTE_ETHDEV_DEBUG to RTE_ETHDEV_DEBUG in ethdev library for backward compatibility.
- Not replace RTE_LIBRTE_ETHDEV_DEBUG in all PMDs.

v3:
- rename "RTE_LIBRTE_ETHDEV_xxx" to "RTE_ETHDEV_xxx"
- move document from "overview.rst" page to "build_and_test.rst"
- fix grammar issues.

v2:
- fix some coding style issues.

Qi Zhang (8):
ether: refine debug build option
net/fm10k: refine debug build option
net/e1000: refine debug build option
net/i40e: refine debug build option
net/iavf: refine debug build option
net/ice: refine debug build option
net/ixgbe: refine debug build option
net/igc: refine debug build option

 doc/guides/nics/build_and_test.rst | 16 ++++++++
 drivers/net/e1000/e1000_logs.c     | 18 +++------
 drivers/net/e1000/e1000_logs.h     | 13 +-----
 drivers/net/e1000/em_rxtx.c        | 38 +++++++++---------
 drivers/net/e1000/igb_rxtx.c       |  2 +-
 drivers/net/fm10k/fm10k_ethdev.c   |  7 +---
 drivers/net/fm10k/fm10k_logs.h     | 13 +-----
 drivers/net/fm10k/fm10k_rxtx.c     |  8 ++--
 drivers/net/i40e/i40e_ethdev.c     |  7 +---
 drivers/net/i40e/i40e_logs.h       | 13 +-----
 drivers/net/i40e/i40e_rxtx.c       | 16 ++++----
 drivers/net/iavf/iavf_ethdev.c     |  7 +---
 drivers/net/iavf/iavf_log.h        | 13 +-----
 drivers/net/iavf/iavf_rxtx.c       |  8 ++--
 drivers/net/ice/ice_ethdev.c       |  7 +---
 drivers/net/ice/ice_logs.h         | 13 +-----
 drivers/net/ice/ice_rxtx.c         | 20 +++++-----
 drivers/net/igc/igc_logs.h         |  4 +-
 drivers/net/igc/igc_txrx.c         |  2 +-
 drivers/net/ixgbe/ixgbe_ethdev.c   |  7 +---
 drivers/net/ixgbe/ixgbe_logs.h     | 13 +-----
 drivers/net/ixgbe/ixgbe_rxtx.c     | 64 +++++++++++++++---------------
 lib/librte_ethdev/rte_ethdev.h     | 22 ++++++----
 23 files changed, 138 insertions(+), 193 deletions(-)
Signature · 1 line
2.26.2