Skip to content

ethdev: minor cleanup

Bruce Richardson dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 20 repliesIn review
  2. v24 patches 3 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

* Rebased to latest DPDK codebase
* Fixed checkpatch issues in patches 2 and 3.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ethdev: rename macros to have RTE_ETH prefixlib/librte_ether/rte_ethdev.c+270 -2700 replies
2/4ethdev: move error checking macros to headerlib/librte_ether/rte_ethdev.c lib/librte_ether/rte_ethdev.h+54 -3818 replies
3/4ethdev: remove duplicated debug functionslib/librte_ether/rte_ethdev.c lib/librte_ether/rte_ethdev.h+29 -940 replies
4/4ethdev: check driver support for functionslib/librte_ether/rte_ethdev.h+8 -52 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] ethdev: minor cleanup

This patchset performs two cleanups:
1. Four functions in ethdev.c which were enabled for debug only have been merged into their inlined header-file counterparts. This change required that a number of macros be renamed and moved to the header file too. The macro changes are in patches 1 & 2, and the elimination of the separate debug fns are in patch 3.
2. Checks for valid function pointers are added to the API calls for reading the descriptor ring count, and checking for a valid descriptor. This is because these functions are not implemented by most drivers, and so it's far safer to have the check.

---

V3 Changes:
* Rebased to latest DPDK codebase
* Fixed checkpatch issues in patches 2 and 3.

V2 Changes:
* Rebased to latest DPDK codebase
* Changed type from uint32_t to int for the count function, on the basis of feedback received.

Bruce Richardson (4):
ethdev: rename macros to have RTE_ETH prefix
ethdev: move error checking macros to header
ethdev: remove duplicated debug functions
ethdev: check driver support for functions

 lib/librte_ether/rte_ethdev.c | 602 ++++++++++++++++++------------------------
 lib/librte_ether/rte_ethdev.h | 120 ++++++---
 2 files changed, 338 insertions(+), 384 deletions(-)
Signature · 1 line
2.4.3