Commit 92272ec4 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Martin KaFai Lau

eth: add missing xdp.h includes in drivers

Handful of drivers currently expect to get xdp.h by virtue
of including netdevice.h. This will soon no longer be the case
so add explicit includes.
Reviewed-by: default avatarWei Fang <wei.fang@nxp.com>
Reviewed-by: default avatarGerhard Engleder <gerhard@engleder-embedded.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Acked-by: default avatarJesper Dangaard Brouer <hawk@kernel.org>
Link: https://lore.kernel.org/r/20230803010230.1755386-2-kuba@kernel.orgSigned-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
parent 87dc2bb3
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
#include <net/tls.h> #include <net/tls.h>
#endif #endif
#include <net/ip6_route.h> #include <net/ip6_route.h>
#include <net/xdp.h>
#include "bonding_priv.h" #include "bonding_priv.h"
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <net/xdp.h>
#include <uapi/linux/bpf.h> #include <uapi/linux/bpf.h>
#include "ena_com.h" #include "ena_com.h"
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/net_tstamp.h> #include <linux/net_tstamp.h>
#include <linux/ptp_clock_kernel.h> #include <linux/ptp_clock_kernel.h>
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <net/xdp.h>
#define TSNEP "tsnep" #define TSNEP "tsnep"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/fsl/mc.h> #include <linux/fsl/mc.h>
#include <linux/net_tstamp.h> #include <linux/net_tstamp.h>
#include <net/devlink.h> #include <net/devlink.h>
#include <net/xdp.h>
#include <soc/fsl/dpaa2-io.h> #include <soc/fsl/dpaa2-io.h>
#include <soc/fsl/dpaa2-fd.h> #include <soc/fsl/dpaa2-fd.h>
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <linux/if_vlan.h> #include <linux/if_vlan.h>
#include <linux/phylink.h> #include <linux/phylink.h>
#include <linux/dim.h> #include <linux/dim.h>
#include <net/xdp.h>
#include "enetc_hw.h" #include "enetc_hw.h"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/timecounter.h> #include <linux/timecounter.h>
#include <dt-bindings/firmware/imx/rsrc.h> #include <dt-bindings/firmware/imx/rsrc.h>
#include <linux/firmware/imx/sci.h> #include <linux/firmware/imx/sci.h>
#include <net/xdp.h>
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ #if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM) || \ defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM) || \
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/u64_stats_sync.h> #include <linux/u64_stats_sync.h>
#include <net/xdp.h>
/* Tx descriptor size */ /* Tx descriptor size */
#define FUNETH_SQE_SIZE 64U #define FUNETH_SQE_SIZE 64U
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/u64_stats_sync.h> #include <linux/u64_stats_sync.h>
#include <net/xdp.h>
#include "gve_desc.h" #include "gve_desc.h"
#include "gve_desc_dqo.h" #include "gve_desc_dqo.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/net_tstamp.h> #include <linux/net_tstamp.h>
#include <linux/bitfield.h> #include <linux/bitfield.h>
#include <linux/hrtimer.h> #include <linux/hrtimer.h>
#include <net/xdp.h>
#include "igc_hw.h" #include "igc_hw.h"
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <net/pkt_cls.h> #include <net/pkt_cls.h>
#include <net/pkt_sched.h> #include <net/pkt_sched.h>
#include <net/switchdev.h> #include <net/switchdev.h>
#include <net/xdp.h>
#include <vcap_api.h> #include <vcap_api.h>
#include <vcap_api_client.h> #include <vcap_api_client.h>
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <net/checksum.h> #include <net/checksum.h>
#include <net/ip6_checksum.h> #include <net/ip6_checksum.h>
#include <net/xdp.h>
#include <net/mana/mana.h> #include <net/mana/mana.h>
#include <net/mana/mana_auxiliary.h> #include <net/mana/mana_auxiliary.h>
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/net_tstamp.h> #include <linux/net_tstamp.h>
#include <linux/reset.h> #include <linux/reset.h>
#include <net/page_pool.h> #include <net/page_pool.h>
#include <net/xdp.h>
#include <uapi/linux/bpf.h> #include <uapi/linux/bpf.h>
struct stmmac_resources { struct stmmac_resources {
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#ifndef DRIVERS_NET_ETHERNET_TI_CPSW_PRIV_H_ #ifndef DRIVERS_NET_ETHERNET_TI_CPSW_PRIV_H_
#define DRIVERS_NET_ETHERNET_TI_CPSW_PRIV_H_ #define DRIVERS_NET_ETHERNET_TI_CPSW_PRIV_H_
#include <net/xdp.h>
#include <uapi/linux/bpf.h> #include <uapi/linux/bpf.h>
#include "davinci_cpdma.h" #include "davinci_cpdma.h"
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/hyperv.h> #include <linux/hyperv.h>
#include <linux/rndis.h> #include <linux/rndis.h>
#include <linux/jhash.h> #include <linux/jhash.h>
#include <net/xdp.h>
/* RSS related */ /* RSS related */
#define OID_GEN_RECEIVE_SCALE_CAPABILITIES 0x00010203 /* query only */ #define OID_GEN_RECEIVE_SCALE_CAPABILITIES 0x00010203 /* query only */
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <net/net_namespace.h> #include <net/net_namespace.h>
#include <net/rtnetlink.h> #include <net/rtnetlink.h>
#include <net/sock.h> #include <net/sock.h>
#include <net/xdp.h>
#include <linux/virtio_net.h> #include <linux/virtio_net.h>
#include <linux/skb_array.h> #include <linux/skb_array.h>
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
#ifndef _MANA_H #ifndef _MANA_H
#define _MANA_H #define _MANA_H
#include <net/xdp.h>
#include "gdma.h" #include "gdma.h"
#include "hw_channel.h" #include "hw_channel.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment