[v2,00/11] Clean up NFP PMD

Message ID 20231028065315.1937188-1-chaoyong.he@corigine.com (mailing list archive)
Headers
Series Clean up NFP PMD |

Message

Chaoyong He Oct. 28, 2023, 6:53 a.m. UTC
  This patch series clean up the NFP PMD, by:
- Using the DPDK macro and API to replace the user defined ones.
- Remove the unneeded macro and logic.
- Remove the duplicated logic.

---
v2:
* Fix the compile error.
* Fix one check script warning.
---

Chaoyong He (11):
  net/nfp: use the suitable helper macro
  net/nfp: remove the unneeded call of underlying API
  net/nfp: remove the unneeded check of process type
  net/nfp: remove the unneeded data abstraction
  net/nfp: remove the redundancy macro
  net/nfp: remove redundancy logic of init control BAR
  net/nfp: use the DPDK defined function
  net/nfp: replace hard coded value
  net/nfp: unify the PMD name with macro
  net/nfp: extract a helper function
  net/nfp: remove the redundancy logic of representor port

 drivers/common/nfp/nfp_common_ctrl.h          |  17 --
 drivers/net/nfp/flower/nfp_flower.c           | 111 +-------
 drivers/net/nfp/flower/nfp_flower.h           |   4 +-
 drivers/net/nfp/flower/nfp_flower_cmsg.c      |   3 +-
 drivers/net/nfp/flower/nfp_flower_ctrl.c      |   6 +-
 .../net/nfp/flower/nfp_flower_representor.c   | 253 +-----------------
 drivers/net/nfp/nfd3/nfp_nfd3_dp.c            |   2 +-
 drivers/net/nfp/nfdk/nfp_nfdk_dp.c            |   2 +-
 drivers/net/nfp/nfp_ethdev.c                  |  88 +++---
 drivers/net/nfp/nfp_ethdev_vf.c               |  28 +-
 drivers/net/nfp/nfp_ipsec.c                   |  18 +-
 drivers/net/nfp/nfp_net_common.c              | 204 +++++++-------
 drivers/net/nfp/nfp_net_common.h              |  13 +-
 drivers/net/nfp/nfp_net_ctrl.c                |   2 +-
 drivers/net/nfp/nfp_rxtx.c                    |  11 +-
 drivers/net/nfp/nfp_rxtx.h                    |   6 -
 16 files changed, 203 insertions(+), 565 deletions(-)
  

Comments

Ferruh Yigit Nov. 1, 2023, 6:33 p.m. UTC | #1
On 10/28/2023 7:53 AM, Chaoyong He wrote:
> This patch series clean up the NFP PMD, by:
> - Using the DPDK macro and API to replace the user defined ones.
> - Remove the unneeded macro and logic.
> - Remove the duplicated logic.
> 
> ---
> v2:
> * Fix the compile error.
> * Fix one check script warning.
> ---
> 
> Chaoyong He (11):
>   net/nfp: use the suitable helper macro
>   net/nfp: remove the unneeded call of underlying API
>   net/nfp: remove the unneeded check of process type
>   net/nfp: remove the unneeded data abstraction
>   net/nfp: remove the redundancy macro
>   net/nfp: remove redundancy logic of init control BAR
>   net/nfp: use the DPDK defined function
>   net/nfp: replace hard coded value
>   net/nfp: unify the PMD name with macro
>   net/nfp: extract a helper function
>   net/nfp: remove the redundancy logic of representor port
> 


'struct nfp_net_adapter' removed in 4/11.

Series applied to dpdk-next-net/main, thanks.