mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 04:06:26 +00:00
b6459415b3
sock.h is pretty heavily used (5k objects rebuilt on x86 after it's touched). We can drop the include of filter.h from it and add a forward declaration of struct sk_filter instead. This decreases the number of rebuilt objects when bpf.h is touched from ~5k to ~1k. There's a lot of missing includes this was masking. Primarily in networking tho, this time. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com> Acked-by: Stefano Garzarella <sgarzare@redhat.com> Link: https://lore.kernel.org/bpf/20211229004913.513372-1-kuba@kernel.org
43 lines
777 B
C
43 lines
777 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef DSA_LOOP_H
|
|
#define DSA_LOOP_H
|
|
|
|
#include <linux/if_vlan.h>
|
|
#include <linux/types.h>
|
|
#include <linux/ethtool.h>
|
|
#include <net/dsa.h>
|
|
|
|
struct dsa_loop_vlan {
|
|
u16 members;
|
|
u16 untagged;
|
|
};
|
|
|
|
struct dsa_loop_mib_entry {
|
|
char name[ETH_GSTRING_LEN];
|
|
unsigned long val;
|
|
};
|
|
|
|
enum dsa_loop_mib_counters {
|
|
DSA_LOOP_PHY_READ_OK,
|
|
DSA_LOOP_PHY_READ_ERR,
|
|
DSA_LOOP_PHY_WRITE_OK,
|
|
DSA_LOOP_PHY_WRITE_ERR,
|
|
__DSA_LOOP_CNT_MAX,
|
|
};
|
|
|
|
struct dsa_loop_port {
|
|
struct dsa_loop_mib_entry mib[__DSA_LOOP_CNT_MAX];
|
|
u16 pvid;
|
|
int mtu;
|
|
};
|
|
|
|
struct dsa_loop_priv {
|
|
struct mii_bus *bus;
|
|
unsigned int port_base;
|
|
struct dsa_loop_vlan vlans[VLAN_N_VID];
|
|
struct net_device *netdev;
|
|
struct dsa_loop_port ports[DSA_MAX_PORTS];
|
|
};
|
|
|
|
#endif /* DSA_LOOP_H */
|