numam-dpdk/drivers/net/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
..
rx net/cnxk: support IP reassembly 2022-02-24 21:33:33 +01:00
tx net/cnxk: add cn10k segregated Tx functions 2022-01-23 12:49:51 +01:00
cn9k_ethdev_sec.c common/cnxk: generate MD5 ipad opad 2022-10-29 13:01:40 +02:00
cn9k_ethdev.c drivers: mark cnxk to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
cn9k_ethdev.h net/cnxk: use full context IPsec structures 2022-09-22 10:44:13 +02:00
cn9k_flow.c net/cnxk: add Rx metadata negotiate operation 2022-02-23 17:36:24 +01:00
cn9k_flow.h net/cnxk: unify file names 2022-02-18 08:44:50 +01:00
cn9k_rx_select.c net/cnxk: fix Rx/Tx function update 2022-02-17 09:51:23 +01:00
cn9k_rx.h net/cnxk: use full context IPsec structures 2022-09-22 10:44:13 +02:00
cn9k_tx_select.c net/cnxk: enable packet marking callbacks 2022-02-25 08:47:53 +01:00
cn9k_tx.h drivers: mark cnxk to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
cn10k_ethdev_sec.c net/cnxk: handle SA hard expiry events 2022-10-18 12:59:55 +02:00
cn10k_ethdev.c net/cnxk: use NIX Tx offset for CN10KB 2022-10-18 12:36:54 +02:00
cn10k_ethdev.h net/cnxk: use NIX Tx offset for CN10KB 2022-10-18 12:36:54 +02:00
cn10k_flow.c net/cnxk: add Rx metadata negotiate operation 2022-02-23 17:36:24 +01:00
cn10k_flow.h net/cnxk: unify file names 2022-02-18 08:44:50 +01:00
cn10k_rx_select.c net/cnxk: support IP reassembly 2022-02-24 21:33:33 +01:00
cn10k_rx.h event/cnxk: fix mbuf offset calculation 2022-11-07 12:50:51 +01:00
cn10k_tx_select.c net/cnxk: enable packet marking callbacks 2022-02-25 08:47:53 +01:00
cn10k_tx.h net/cnxk: remove unnecessary DPTR update 2022-10-18 12:59:55 +02:00
cnxk_ethdev_cman.c net/cnxk: support congestion management operations 2022-10-12 08:41:58 +02:00
cnxk_ethdev_devargs.c net/cnxk: limit port-specific SA table size 2022-09-22 10:44:31 +02:00
cnxk_ethdev_mtr.c ethdev: add protocol parameter to color table update 2022-10-03 13:43:53 +02:00
cnxk_ethdev_ops.c net/cnxk: support mulitiple mbuf pools per Rx queue 2022-10-08 22:37:45 +02:00
cnxk_ethdev_sec_telemetry.c net/cnxk: use full context IPsec structures 2022-09-22 10:44:13 +02:00
cnxk_ethdev_sec.c common/cnxk: add soft expiry poll frequency argument 2022-10-18 12:36:21 +02:00
cnxk_ethdev_telemetry.c net/cnxk: fix possible null dereference in telemetry 2022-05-20 16:45:53 +02:00
cnxk_ethdev.c net/cnxk: fix later skip to include mbuf private data 2022-10-18 12:36:45 +02:00
cnxk_ethdev.h cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
cnxk_flow.c net/cnxk: support represented port flow action 2022-09-27 10:26:51 +02:00
cnxk_flow.h net/cnxk: unify file names 2022-02-18 08:44:50 +01:00
cnxk_link.c net/cnxk: add SDP link status 2022-06-20 19:15:40 +02:00
cnxk_lookup.c net/cnxk: add devargs for min-max SPI 2022-02-23 17:38:20 +01:00
cnxk_ptp.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
cnxk_stats.c net/cnxk: fix extended statistics 2022-07-04 14:47:03 +02:00
cnxk_tm.c ethdev: increase queue rate parameter from 16b to 32b 2022-10-04 13:52:05 +02:00
cnxk_tm.h net/cnxk: add TM shaper and node operations 2021-09-28 12:09:14 +02:00
meson.build net/cnxk: support congestion management operations 2022-10-12 08:41:58 +02:00
rte_pmd_cnxk.h net/cnxk: support custom SA index 2022-05-07 11:45:01 +02:00
version.map version: 22.11-rc0 2022-07-21 12:13:48 +02:00