mbox

[RFC,19.11,v2,0/3] Hide DPDK internal struct from public API

Message ID 20190906131813.1343-1-marcinx.a.zapolski@intel.com (mailing list archive)
Headers

Message

Marcin Zapolski Sept. 6, 2019, 1:18 p.m. UTC
  Several DPDK internal structures are exposed to direct access by user
applications. This patch removes them from public API, and makes core DPDK
functions that use them non-inline.

v2:
This patch set no longer makes internal DPDK functions non-inline. Instead
it splits the rte_eth_dev structure to private and public part and modifies
function arguments of rx and tx functions. This should bring less performance
impact, but at the cost of needing to modify every PMD to use new rx and tx
functions.
For testing purposes, the ixgbe and i40e drivers are modified to acommodate for
the changes.

Marcin Zapolski (3):
  ethdev: hide key ethdev structures from public API
  i40e: make driver compatible with changes in ethdev
  ixgbe: make driver compatible with changes in ethdev

 drivers/net/i40e/i40e_ethdev.c                |  10 +-
 drivers/net/i40e/i40e_ethdev.h                |   1 +
 drivers/net/i40e/i40e_ethdev_vf.c             |   8 +-
 drivers/net/i40e/i40e_rxtx.c                  | 119 ++--
 drivers/net/i40e/i40e_rxtx.h                  |  33 +-
 drivers/net/i40e/i40e_rxtx_vec_altivec.c      |  23 +-
 drivers/net/i40e/i40e_rxtx_vec_avx2.c         |  45 +-
 drivers/net/i40e/i40e_rxtx_vec_neon.c         |  23 +-
 drivers/net/i40e/i40e_rxtx_vec_sse.c          |  23 +-
 drivers/net/i40e/i40e_vf_representor.c        |  12 +-
 drivers/net/ixgbe/ixgbe_ethdev.c              |  30 +-
 drivers/net/ixgbe/ixgbe_ethdev.h              |  23 +-
 drivers/net/ixgbe/ixgbe_rxtx.c                | 111 ++--
 drivers/net/ixgbe/ixgbe_rxtx.h                |   9 +-
 drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c       |  22 +-
 drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c        |  23 +-
 drivers/net/ixgbe/ixgbe_vf_representor.c      |  10 +-
 lib/librte_bitratestats/rte_bitrate.c         |   2 +-
 lib/librte_bpf/bpf_pkt.c                      |   2 +-
 lib/librte_ethdev/ethdev_private.c            |   1 +
 lib/librte_ethdev/ethdev_profile.h            |   1 +
 lib/librte_ethdev/rte_ethdev.c                | 122 +++-
 lib/librte_ethdev/rte_ethdev.h                | 222 +++++---
 lib/librte_ethdev/rte_ethdev_core.h           | 531 +-----------------
 lib/librte_ethdev/rte_ethdev_driver.h         | 482 ++++++++++++++++
 lib/librte_ethdev/rte_ethdev_version.map      |  11 +
 lib/librte_ethdev/rte_flow.c                  |   2 +-
 lib/librte_ethdev/rte_mtr.c                   |   2 +-
 lib/librte_ethdev/rte_tm.c                    |   2 +-
 lib/librte_ethdev/rte_tm_driver.h             |   1 +
 .../rte_event_eth_rx_adapter.c                |   2 +-
 .../rte_event_eth_tx_adapter.c                |   2 +-
 lib/librte_eventdev/rte_eventdev.c            |   2 +-
 lib/librte_flow_classify/rte_flow_classify.h  |   2 +-
 .../rte_flow_classify_parse.h                 |   2 +-
 lib/librte_gro/gro_tcp4.c                     |   2 +-
 lib/librte_gro/gro_vxlan_tcp4.c               |   2 +-
 lib/librte_gro/rte_gro.c                      |   2 +-
 lib/librte_gso/rte_gso.c                      |   2 +-
 lib/librte_kni/rte_kni.c                      |   2 +-
 lib/librte_latencystats/rte_latencystats.c    |   2 +-
 lib/librte_pdump/rte_pdump.c                  |   2 +-
 lib/librte_port/rte_port_ethdev.c             |   2 +-
 lib/librte_telemetry/rte_telemetry.c          |   2 +-
 lib/librte_telemetry/rte_telemetry_parser.c   |   2 +-
 lib/librte_vhost/vhost.c                      |   2 +-
 46 files changed, 1053 insertions(+), 885 deletions(-)