mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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 <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Marc Kleine-Budde <[email protected]> Acked-by: Florian Fainelli <[email protected]> Acked-by: Nikolay Aleksandrov <[email protected]> Acked-by: Stefano Garzarella <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
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 */
|