numam-dpdk/drivers/net
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
..
af_packet drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
af_xdp drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
ark drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
atlantic eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
avp drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
axgbe drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
bnx2x drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
bnxt net/bnxt: support proactive error handling mode 2022-10-17 08:34:05 +02:00
bonding cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
cnxk cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
cxgbe drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
dpaa cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
dpaa2 cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
e1000 drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
ena drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
enetc drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
enetfec drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
enic drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
failsafe drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
fm10k drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
gve drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
hinic drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
hns3 drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
i40e net/i40e: fix jumbo frame Rx with X722 2022-11-10 18:57:43 +01:00
iavf cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
ice cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
idpf net/idpf: fix memory leak in Tx queue release 2022-11-09 16:34:43 +01:00
igc drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
ionic drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
ipn3ke bus/vdev: make driver-only headers private 2022-09-23 16:14:34 +02:00
ixgbe net/ixgbe: fix drop queue index 2022-11-11 18:06:10 +01:00
kni drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
liquidio drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
mana drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
memif drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
mlx4 drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
mlx5 cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
mvneta drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
mvpp2 drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
netvsc drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
nfb drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
nfp drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
ngbe drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
null drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
octeon_ep drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
octeontx ethdev: remove deprecated Flow Director configuration 2022-08-31 15:24:23 +02:00
pcap drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
pfe drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
qede drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
ring drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
sfc drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
softnic net/softnic: fix file descriptor leak 2022-10-04 01:08:39 +02:00
tap drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
thunderx drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
txgbe cleanup compat header inclusions 2022-11-15 08:39:14 +01:00
vdev_netvsc drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
vhost bus/vdev: make driver-only headers private 2022-09-23 16:14:34 +02:00
virtio drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
vmxnet3 drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
meson.build net/idpf: support device initialization 2022-10-31 14:29:55 +01:00