net: provide IP-related API on any OS
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Sat, 10 Apr 2021 22:47:32 +0000 (01:47 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Apr 2021 23:56:43 +0000 (01:56 +0200)
commit89813a522e68076e6f50ec18b075fa57cc5ae937
treee21ea2c1c0299c7fe971a14f158f02fd8a4a6738
parent6c068dbd9fea4dc12f96101b86758a6170aa2d64
net: provide IP-related API on any OS

Users of <rte_ip.h> relied on it to provide IP-related defines,
like IPPROTO_* constants, but still had to include POSIX headers
for inet_pton() and other standard IP-related facilities.

Extend <rte_ip.h> so that it is a single header to gain access
to IP-related facilities on any OS. Use it to replace POSIX includes
in components enabled on Windows. Move missing constants from Windows
networking shim to OS shim header and include it where needed.

Remove Windows networking shim that is no longer needed.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
25 files changed:
drivers/net/i40e/i40e_fdir.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_mac.c
examples/cmdline/commands.c
examples/cmdline/parse_obj_list.c
examples/flow_filtering/main.c
examples/l2fwd/main.c
examples/link_status_interrupt/main.c
examples/service_cores/main.c
lib/librte_cmdline/cmdline.c
lib/librte_cmdline/cmdline_parse.c
lib/librte_cmdline/cmdline_parse_etheraddr.c
lib/librte_cmdline/cmdline_parse_ipaddr.c
lib/librte_cmdline/cmdline_parse_ipaddr.h
lib/librte_eal/windows/include/arpa/inet.h [deleted file]
lib/librte_eal/windows/include/netinet/in.h [deleted file]
lib/librte_eal/windows/include/netinet/ip.h [deleted file]
lib/librte_eal/windows/include/rte_os_shim.h
lib/librte_eal/windows/include/sys/socket.h [deleted file]
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev_core.h
lib/librte_net/rte_ip.h
lib/librte_net/rte_net.c