numam-dpdk/lib/librte_lpm
Ruifeng Wang e9b9739264 config: remap flags used for Arm platforms
RTE_ARCH_xx flags are used to distinguish platform architectures.
These flags can be used to pick different code paths for different
architectures at compile time.
For Arm platforms, there are 3 flags in use: RTE_ARCH_ARM,
RTE_ARCH_ARMv7 and RTE_ARCH_ARM64.
RTE_ARCH_ARM64 is for 64-bit aarch64 platforms,
and RTE_ARCH_ARM & RTE_ARCH_ARMv7 are for 32-bit platforms.
RTE_ARCH_ARMv7 is for ARMv7 platforms as its name suggested.

The issue is meaning of RTE_ARCH_ARM is not clear enough.
Because no info about platform word length is included in the name.
To make the flag names more clear, a naming scheme is proposed.

RTE_ARCH_ARM (all Arm platforms)
    |
    +----RTE_ARCH_32 (New. 32-bit platforms of all architectures)
    |        |
    |        +----RTE_ARCH_ARMv7 (ARMv7 platforms)
    |        |
    |        +----RTE_ARCH_ARMv8_AARCH32 (aarch32 state on aarch64 machine)
    |
    +----RTE_ARCH_64 (64-bit platforms of all architectures)
             |
             +----RTE_ARCH_ARM64 (64-bit Arm platforms)

RTE_ARCH_32 will be explicitly defined for 32-bit platforms.

To fit into the new naming scheme, current usage of RTE_ARCH_ARM in
project is mapped to (RTE_ARCH_ARM && RTE_ARCH_32).

Matching flags for other architectures are:
RTE_ARCH_X86
    |
    +----RTE_ARCH_32
    |        |
    |        +----RTE_ARCH_I686
    |        |
    |        +----RTE_ARCH_X86_X32
    |
    +----RTE_ARCH_64
             |
             +----RTE_ARCH_X86_64

RTE_ARCH_PPC_64 ---- RTE_ARCH_64

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
2020-10-13 16:35:48 +02:00
..
meson.build lpm: implement RCU rule reclamation 2020-07-10 13:41:29 +02:00
rte_lpm6.c lpm6: fix comments spelling 2020-04-24 19:29:02 +02:00
rte_lpm6.h lpm6: make IPv6 address immutable 2020-03-31 21:45:43 +02:00
rte_lpm_altivec.h replace license text with SPDX tag on PPC files 2019-08-05 17:17:09 +02:00
rte_lpm_neon.h lpm: replace license text with SPDX tag 2019-07-29 13:31:45 +02:00
rte_lpm_sse.h lpm: remove recursively included header file 2019-01-28 01:47:23 +01:00
rte_lpm_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00
rte_lpm.c lpm: report error when defer queue overflows 2020-07-21 20:48:40 +02:00
rte_lpm.h config: remap flags used for Arm platforms 2020-10-13 16:35:48 +02:00