numam-dpdk/drivers/common/cnxk
David Marchand 1094dd940e cleanup compat header inclusions
With symbols going though experimental/stable stages, we accumulated
a lot of discrepancies about inclusion of the rte_compat.h header.

Some headers are including it where unneeded, while others rely on
implicit inclusion.

Fix unneeded inclusions:
$ git grep -l include..rte_compat.h |
  xargs grep -LE '__rte_(internal|experimental)' |
  xargs sed -i -e '/#include..rte_compat.h/d'

Fix missing inclusion, by inserting rte_compat.h before the first
inclusion of a DPDK header:
$ git grep -lE '__rte_(internal|experimental)' |
  xargs grep -L include..rte_compat.h |
  xargs sed -i -e \
    '0,/#include..\(rte_\|.*pmd.h.$\)/{
      s/\(#include..\(rte_\|.*pmd.h.$\)\)/#include <rte_compat.h>\n\1/
    }'

Fix missing inclusion, by inserting rte_compat.h after the last
inclusion of a non DPDK header:
$ for file in $(git grep -lE '__rte_(internal|experimental)' |
  xargs grep -L include..rte_compat.h); do
    tac $file > $file.$$
    sed -i -e \
      '0,/#include../{
        s/\(#include..*$\)/#include <rte_compat.h>\n\n\1/
      }' $file.$$
    tac $file.$$ > $file
    rm $file.$$
  done

Fix missing inclusion, by inserting rte_compat.h after the header guard:
$ git grep -lE '__rte_(internal|experimental)' |
  xargs grep -L include..rte_compat.h |
  xargs sed -i -e \
    '0,/#define/{
      s/\(#define .*$\)/\1\n\n#include <rte_compat.h>/
    }'

And finally, exclude rte_compat.h itself.
$ git checkout lib/eal/include/rte_compat.h

At the end of all this, we have a clean tree:
$ git grep -lE '__rte_(internal|experimental)' |
  xargs grep -L include..rte_compat.h
buildtools/check-symbols.sh
devtools/checkpatches.sh
doc/guides/contributing/abi_policy.rst
doc/guides/rel_notes/release_20_11.rst
lib/eal/include/rte_compat.h

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2022-11-15 08:39:14 +01:00
..
hw common/cnxk: support 103XX CPT 2022-10-29 13:01:40 +02:00
cnxk_security_ar.h crypto/cnxk: support ESN and anti-replay 2022-02-12 10:26:38 +01:00
cnxk_security.c common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +02:00
cnxk_security.h crypto/cnxk: move IPsec SA creation to common 2022-06-21 20:04:50 +02:00
cnxk_telemetry_bphy.c raw/cnxk_bphy: support telemetry 2021-10-29 17:59:35 +02:00
cnxk_telemetry_nix.c eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
cnxk_telemetry_npa.c eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
cnxk_telemetry_sso.c common/cnxk: add telemetry endpoints to SSO 2022-01-24 09:58:04 +01:00
cnxk_telemetry.h common/cnxk: support telemetry for network pool allocator 2021-10-19 18:36:27 +02:00
cnxk_utils.c common/cnxk: support TM error type get 2021-09-28 12:06:39 +02:00
cnxk_utils.h common/cnxk: support TM error type get 2021-09-28 12:06:39 +02:00
meson.build drivers: mark cnxk to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
roc_ae_fpm_tables.c common/cnxk: add FPM tables for asymmetric crypto 2021-07-07 21:15:08 +02:00
roc_ae_fpm_tables.h common/cnxk: add FPM tables for asymmetric crypto 2021-07-07 21:15:08 +02:00
roc_ae.c common/cnxk: add constants to EC groups 2021-07-30 20:57:23 +02:00
roc_ae.h crypto/cnxk: support fixed point multiplication 2022-10-07 19:46:11 +02:00
roc_aes.c common/cnxk: support AES-XCBC key derivation 2022-01-21 09:40:00 +01:00
roc_aes.h common/cnxk: support AES-XCBC key derivation 2022-01-21 09:40:00 +01:00
roc_api.h common/cnxk: add ROC errata list 2022-05-02 20:31:15 +02:00
roc_bitfield.h common/cnxk: add build infrastructre and HW definition 2021-04-09 08:32:24 +02:00
roc_bits.h common/cnxk: add build infrastructre and HW definition 2021-04-09 08:32:24 +02:00
roc_bphy_cgx_priv.h common/cnxk: sync eth mode change command with firmware 2022-06-22 08:20:58 +02:00
roc_bphy_cgx.c common/cnxk: allow changing PTP mode on CN10K 2022-07-05 18:51:59 +02:00
roc_bphy_cgx.h common/cnxk: support switching CPRI/ETH back and forth 2022-06-22 09:02:14 +02:00
roc_bphy_irq.c common/cnxk: do not switch affinity back and forth 2022-06-22 08:18:57 +02:00
roc_bphy_irq.h raw/cnxk_bphy: use ROC calls for max IRQ get 2021-10-07 13:02:48 +02:00
roc_bphy.c common/cnxk: support reading NPA/SSO PF function 2021-09-28 15:16:13 +02:00
roc_bphy.h common/cnxk: support reading NPA/SSO PF function 2021-09-28 15:16:13 +02:00
roc_constants.h net/cnxk: use NIX Tx offset for CN10KB 2022-10-18 12:36:54 +02:00
roc_cpt_debug.c common/cnxk: enhance CPT parsing header dump 2022-06-20 19:15:20 +02:00
roc_cpt_priv.h common/cnxk: dump CPT LF registers on error interrupt 2021-10-02 15:44:38 +02:00
roc_cpt.c common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +02:00
roc_cpt.h common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +02:00
roc_dev_priv.h common/cnxk: send link status event to VF 2021-09-16 16:28:51 +02:00
roc_dev.c common/cnxk: support same TC value across multiple queues 2022-06-20 19:15:19 +02:00
roc_dpi_priv.h dma/cnxk: support CN10K DMA engine 2022-10-03 19:22:30 +02:00
roc_dpi.c common/cnxk: reserve AURA zero on CN10KA NPA 2022-09-22 10:44:04 +02:00
roc_dpi.h common/cnxk: add DPI DMA support 2021-11-07 23:29:58 +01:00
roc_errata.h common/cnxk: set MTU size on SDP based on SoC type 2022-10-18 12:35:51 +02:00
roc_hash.c common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +02:00
roc_hash.h common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +02:00
roc_idev_priv.h common/cnxk: support zero AURA for inline inbound meta 2022-09-22 10:44:08 +02:00
roc_idev.c common/cnxk: support zero AURA for inline inbound meta 2022-09-22 10:44:08 +02:00
roc_idev.h common/cnxk: support zero AURA for inline inbound meta 2022-09-22 10:44:08 +02:00
roc_ie_on.h common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +02:00
roc_ie_ot.c common/cnxk: enable L3 header write back in SA 2022-02-23 17:35:04 +01:00
roc_ie_ot.h common/cnxk: set in-place bit of lookaside IPsec 2022-10-29 13:01:40 +02:00
roc_ie.h common/cnxk: make IPsec defines common 2021-09-06 21:46:34 +02:00
roc_io_generic.h net/cnxk: avoid command copy from Tx queue 2022-02-11 11:28:30 +01:00
roc_io.h net/cnxk: enable PTP for event Rx adapter 2022-09-22 10:43:53 +02:00
roc_irq.c common/cnxk: add missing checks of return values 2022-02-18 05:09:16 +01:00
roc_mbox_priv.h common/cnxk: add mailbox base infrastructure 2021-04-09 08:32:24 +02:00
roc_mbox.c common/cnxk: add mailbox base infrastructure 2021-04-09 08:32:24 +02:00
roc_mbox.h crypto/cnxk: update capabilities as per firmware 2022-10-29 13:01:40 +02:00
roc_model.c common/cnxk: add 98xx A1 platform 2022-09-22 10:44:20 +02:00
roc_model.h common/cnxk: set MTU size on SDP based on SoC type 2022-10-18 12:35:51 +02:00
roc_nix_bpf.c common/cnxk: update meter algorithm in band profile 2022-01-20 09:41:22 +01:00
roc_nix_debug.c common/cnxk: dump device basic information to file 2022-09-22 10:44:36 +02:00
roc_nix_fc.c common/cnxk: fix RQ mask config for CN10KB chip 2022-10-18 12:37:35 +02:00
roc_nix_inl_dev_irq.c common/cnxk: dump device basic information to file 2022-09-22 10:44:36 +02:00
roc_nix_inl_dev.c common/cnxk: add soft expiry poll frequency argument 2022-10-18 12:36:21 +02:00
roc_nix_inl_priv.h common/cnxk: support zero AURA for inline inbound meta 2022-09-22 10:44:08 +02:00
roc_nix_inl.c common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +02:00
roc_nix_inl.h common/cnxk: add soft expiry poll frequency argument 2022-10-18 12:36:21 +02:00
roc_nix_irq.c common/cnxk: dump device basic information to file 2022-09-22 10:44:36 +02:00
roc_nix_mac.c common/cnxk: send link status event to VF 2021-09-16 16:28:51 +02:00
roc_nix_mcast.c common/cnxk: add NIX specific NPC operations 2021-04-09 08:32:24 +02:00
roc_nix_npc.c net/cnxk: fix promiscuous mode in multicast enable flow 2022-01-13 05:04:26 +01:00
roc_nix_ops.c net/cnxk: support pre L2 switch header type 2022-01-22 15:05:28 +01:00
roc_nix_priv.h common/cnxk: dump device basic information to file 2022-09-22 10:44:36 +02:00
roc_nix_ptp.c common/cnxk: fix mbuf data offset for VF 2022-03-03 18:35:40 +01:00
roc_nix_queue.c common/cnxk: set hysteresis bit to one 2022-10-18 12:59:55 +02:00
roc_nix_rss.c common/cnxk: support locking NIX RQ contexts 2021-06-29 20:12:25 +02:00
roc_nix_stats.c common/cnxk: enable aging on CN10K platform 2022-09-22 10:44:17 +02:00
roc_nix_tm_mark.c common/cnxk: fix SQ flush sequence 2022-05-10 16:26:49 +02:00
roc_nix_tm_ops.c common/cnxk: fix schedule weight update 2022-10-18 12:59:24 +02:00
roc_nix_tm_utils.c common/cnxk: sync NIX HW info mbox structure with kernel 2022-10-18 12:59:55 +02:00
roc_nix_tm.c common/cnxk: sync NIX HW info mbox structure with kernel 2022-10-18 12:59:55 +02:00
roc_nix_vlan.c common/cnxk: suport VLAN filter 2021-04-09 08:32:24 +02:00
roc_nix_xstats.h common/cnxk: update extra stats for inline device 2022-06-16 13:49:52 +02:00
roc_nix.c common/cnxk: sync NIX HW info mbox structure with kernel 2022-10-18 12:59:55 +02:00
roc_nix.h common/cnxk: fix channel to BPID mapping 2022-10-18 12:59:55 +02:00
roc_npa_debug.c common/cnxk: update NIX and NPA dump functions 2022-01-23 14:17:31 +01:00
roc_npa_irq.c common/cnxk: support NPA debug 2021-04-09 08:32:24 +02:00
roc_npa_priv.h common/cnxk: support setting NPA buffer type 2022-09-22 10:44:06 +02:00
roc_npa_type.c common/cnxk: support setting NPA buffer type 2022-09-22 10:44:06 +02:00
roc_npa.c common/cnxk: support setting NPA buffer type 2022-09-22 10:44:06 +02:00
roc_npa.h common/cnxk: support setting NPA buffer type 2022-09-22 10:44:06 +02:00
roc_npc_mcam_dump.c common/cnxk: print counters along with flow dump 2022-09-22 10:44:44 +02:00
roc_npc_mcam.c common/cnxk: update base rule merging mechanism 2022-09-30 09:10:39 +02:00
roc_npc_parse.c common/cnxk: fix GRE tunnel parsing 2022-07-04 14:46:46 +02:00
roc_npc_priv.h common/cnxk: update MKEX capability flags 2022-09-22 10:44:46 +02:00
roc_npc_utils.c common/cnxk: fix log level during MCAM allocation 2022-09-22 10:43:47 +02:00
roc_npc.c common/cnxk: add ROC API to free MCAM entry 2022-06-17 14:52:42 +02:00
roc_npc.h common/cnxk: add ROC API to free MCAM entry 2022-06-17 14:52:42 +02:00
roc_platform.c common/cnxk: handle ROC model init failure 2022-06-15 19:55:42 +02:00
roc_platform.h cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
roc_priv.h common/cnxk: support REE 2022-01-12 15:33:43 +01:00
roc_ree_priv.h common/cnxk: support REE 2022-01-12 15:33:43 +01:00
roc_ree.c common/cnxk: support REE 2022-01-12 15:33:43 +01:00
roc_ree.h common/cnxk: support REE 2022-01-12 15:33:43 +01:00
roc_se.c crypto/cnxk: support DOCSIS 2022-09-27 17:18:45 +02:00
roc_se.h common/cnxk: support 103XX CPT 2022-10-29 13:01:40 +02:00
roc_sso_debug.c common/cnxk: support SSO debug 2021-04-09 08:32:24 +02:00
roc_sso_irq.c common/cnxk: support SSO IRQ 2021-04-09 08:32:24 +02:00
roc_sso_priv.h common/cnxk: lock when accessing mbox of SSO 2022-05-17 16:43:52 +02:00
roc_sso.c event/cnxk: remove option to limit XAQ 2022-09-27 12:55:39 +02:00
roc_sso.h event/cnxk: remove option to limit XAQ 2022-09-27 12:55:39 +02:00
roc_tim_irq.c common/cnxk: support TIM IRQ 2021-04-09 08:32:24 +02:00
roc_tim_priv.h common/cnxk: support TIM IRQ 2021-04-09 08:32:24 +02:00
roc_tim.c common/cnxk: lock when accessing mbox of SSO 2022-05-17 16:43:52 +02:00
roc_tim.h event/cnxk: update minimum interval calculation 2022-01-20 14:27:06 +01:00
roc_util_priv.h common/cnxk: add model init and IO handling API 2021-04-09 08:32:24 +02:00
roc_utils.c common/cnxk: add telemetry endpoints to SSO 2022-01-24 09:58:04 +01:00
roc_utils.h common/cnxk: add mailbox base infrastructure 2021-04-09 08:32:24 +02:00
version.map common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +02:00