Centos-kernel-stream-9/include/linux/dsa/loop.h

43 lines
777 B
C
Raw Permalink Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef DSA_LOOP_H
#define DSA_LOOP_H
net: Don't include filter.h from net/sock.h Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2101792 Conflicts: drivers/infiniband/core/cache.c - adjusted context conflict due to missing b74525f21e33ab ("RDMA/core: Delete useless module.h include") drivers/infiniband/hw/mlx5/fs.c - missing upstream commit ffa501ef196312 ("RDMA/mlx5: Add steering support in optional flow counters") adding net/inet_ecn.h. Without inet_ecn.h missing declarations for ether_addr_copy() and is_multicast_ether_addr() We add net/inet_ecn.h include in this commit. drivers/net/amt.c - Unmerged because file missing in RHEL Upstream commit(s): commit b6459415b384cb829f0b2a4268f211c789f6cf0b Author: Jakub Kicinski <kuba@kernel.org> Date: Tue Dec 28 16:49:13 2021 -0800 net: Don't include filter.h from net/sock.h 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 Signed-off-by: Petr Oros <poros@redhat.com>
2022-07-12 10:07:24 +00:00
#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 */