[00/11] Unify the PMD coding style

Message ID 20231007023339.1546659-1-chaoyong.he@corigine.com (mailing list archive)
Headers
Series Unify the PMD coding style |

Message

Chaoyong He Oct. 7, 2023, 2:33 a.m. UTC
  This patch series aims to unify the coding style of NFP PMD, make the
logics following the same rules, to make it easier to understand and
extend.

Chaoyong He (11):
  net/nfp: explicitly compare to null and 0
  net/nfp: unify the indent coding style
  net/nfp: unify the type of integer variable
  net/nfp: standard the local variable coding style
  net/nfp: adjust the log statement
  net/nfp: standard the comment style
  net/nfp: standard the blank character
  net/nfp: unify the guide line of header file
  net/nfp: rename some parameter and variable
  net/nfp: adjust logic to make it more readable
  net/nfp: refact the meson build file

 drivers/net/nfp/flower/nfp_flower.c           |  15 +-
 drivers/net/nfp/flower/nfp_flower.h           |  34 +-
 drivers/net/nfp/flower/nfp_flower_cmsg.c      |  18 +-
 drivers/net/nfp/flower/nfp_flower_cmsg.h      |  62 +-
 drivers/net/nfp/flower/nfp_flower_ctrl.c      |  36 +-
 drivers/net/nfp/flower/nfp_flower_ctrl.h      |   6 +-
 .../net/nfp/flower/nfp_flower_representor.c   |  36 +-
 .../net/nfp/flower/nfp_flower_representor.h   |   8 +-
 drivers/net/nfp/meson.build                   |  23 +-
 drivers/net/nfp/nfd3/nfp_nfd3.h               |  39 +-
 drivers/net/nfp/nfd3/nfp_nfd3_dp.c            |  26 +-
 drivers/net/nfp/nfdk/nfp_nfdk.h               |  43 +-
 drivers/net/nfp/nfdk/nfp_nfdk_dp.c            |  12 +-
 drivers/net/nfp/nfp_common.c                  | 763 +++++++++---------
 drivers/net/nfp/nfp_common.h                  | 167 ++--
 drivers/net/nfp/nfp_cpp_bridge.c              | 135 ++--
 drivers/net/nfp/nfp_cpp_bridge.h              |   8 +-
 drivers/net/nfp/nfp_ctrl.h                    |  34 +-
 drivers/net/nfp/nfp_ethdev.c                  | 307 ++++---
 drivers/net/nfp/nfp_ethdev_vf.c               | 191 ++---
 drivers/net/nfp/nfp_flow.c                    | 229 +++---
 drivers/net/nfp/nfp_flow.h                    |  23 +-
 drivers/net/nfp/nfp_logs.h                    |   7 +-
 drivers/net/nfp/nfp_rxtx.c                    | 287 +++----
 drivers/net/nfp/nfp_rxtx.h                    |  36 +-
 25 files changed, 1235 insertions(+), 1310 deletions(-)