drivers: add missing includes

These headers are used but not included explicitly, including them.

"arpa/inet.h" is included for 'htons' and friends.
"netinet/in.h" is included for 'IPPROTO_IP'.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
This commit is contained in:
Ferruh Yigit 2021-03-26 16:46:15 +00:00
parent 784b83495b
commit bd063651d5
12 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#endif
#include <rte_cycles.h>
#include <rte_dev.h>
#include <rte_ip.h>
#include <rte_kvargs.h>
#include <rte_malloc.h>
#include <rte_mbuf.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2017 Cavium, Inc
*/
#include <arpa/inet.h>
#include <rte_common.h>
#include <rte_branch_prediction.h>

View File

@ -23,6 +23,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <zlib.h>
#include <rte_bitops.h>

View File

@ -6,6 +6,7 @@
#define _IGC_ETHDEV_H_
#include <rte_ethdev.h>
#include <rte_flow.h>
#include "base/igc_osdep.h"
#include "base/igc_hw.h"

View File

@ -3,6 +3,7 @@
*/
#include <rte_config.h>
#include <rte_flow.h>
#include <rte_malloc.h>
#include <ethdev_driver.h>
#include <rte_net.h>

View File

@ -12,6 +12,7 @@
#include <dirent.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <rte_ethdev.h>

View File

@ -11,6 +11,7 @@
#include <nfb/ndp.h>
#include <rte_mbuf.h>
#include <rte_mbuf_dyn.h>
#include <rte_ethdev.h>
#define NFB_TIMESTAMP_FLAG (1 << 0)

View File

@ -24,6 +24,7 @@
#include <rte_kvargs.h>
#include <rte_malloc.h>
#include <rte_mbuf.h>
#include <rte_mbuf_dyn.h>
#include <rte_bus_vdev.h>
#include <rte_string_fns.h>

View File

@ -2,6 +2,8 @@
* Copyright 2018-2019 NXP
*/
#include <arpa/inet.h>
#include "pfe_logs.h"
#include "pfe_mod.h"

View File

@ -7,6 +7,7 @@
#include <sys/ioctl.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
#include <arpa/inet.h>
static int
pfe_hif_alloc_descr(struct pfe_hif *hif)

View File

@ -10,6 +10,8 @@
#ifndef _SFC_TSO_H
#define _SFC_TSO_H
#include <rte_udp.h>
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -6,6 +6,7 @@
#define _VMXNET3_ETHDEV_H_
#include <rte_io.h>
#include <rte_mbuf_dyn.h>
#define VMXNET3_MAX_MAC_ADDRS 1