net: add compat headers without rte prefix net_rename2
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 26 Oct 2018 07:04:06 +0000 (09:04 +0200)
committerOlivier Matz <olivier.matz@6wind.com>
Fri, 26 Oct 2018 07:04:06 +0000 (09:04 +0200)
commitba1e8e4983060feb771294c6f29f20b931f7fccf
tree1b8767c9d08ee6c8a59fa41be2dc1749cd774649
parente79f69e17d237041a1e40a00207aafd33849feb0
net: add compat headers without rte prefix

Restore the unprefixed net structures, functions and defines, so
that external applications can compile using the old API.

This compatibility layer is enabled by default. It can be disabled by
defining RTE_NET_NO_COMPAT before including the net header files.

This compatibility layer will be removed in a future release.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
20 files changed:
lib/librte_net/Makefile
lib/librte_net/meson.build
lib/librte_net/rte_arp.h
lib/librte_net/rte_arp_compat.h [new file with mode: 0644]
lib/librte_net/rte_esp.h
lib/librte_net/rte_esp_compat.h [new file with mode: 0644]
lib/librte_net/rte_ether.h
lib/librte_net/rte_ether_compat.h [new file with mode: 0644]
lib/librte_net/rte_gre.h
lib/librte_net/rte_gre_compat.h [new file with mode: 0644]
lib/librte_net/rte_icmp.h
lib/librte_net/rte_icmp_compat.h [new file with mode: 0644]
lib/librte_net/rte_ip.h
lib/librte_net/rte_ip_compat.h [new file with mode: 0644]
lib/librte_net/rte_sctp.h
lib/librte_net/rte_sctp_compat.h [new file with mode: 0644]
lib/librte_net/rte_tcp.h
lib/librte_net/rte_tcp_compat.h [new file with mode: 0644]
lib/librte_net/rte_udp.h
lib/librte_net/rte_udp_compat.h [new file with mode: 0644]