aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index bcbde799ec69..1899c74a7127 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -60,6 +60,7 @@ struct phy_device;
60struct wireless_dev; 60struct wireless_dev;
61/* 802.15.4 specific */ 61/* 802.15.4 specific */
62struct wpan_dev; 62struct wpan_dev;
63struct mpls_dev;
63 64
64void netdev_set_default_ethtool_ops(struct net_device *dev, 65void netdev_set_default_ethtool_ops(struct net_device *dev,
65 const struct ethtool_ops *ops); 66 const struct ethtool_ops *ops);
@@ -976,7 +977,8 @@ typedef u16 (*select_queue_fallback_t)(struct net_device *dev,
976 * int (*ndo_bridge_setlink)(struct net_device *dev, struct nlmsghdr *nlh, 977 * int (*ndo_bridge_setlink)(struct net_device *dev, struct nlmsghdr *nlh,
977 * u16 flags) 978 * u16 flags)
978 * int (*ndo_bridge_getlink)(struct sk_buff *skb, u32 pid, u32 seq, 979 * int (*ndo_bridge_getlink)(struct sk_buff *skb, u32 pid, u32 seq,
979 * struct net_device *dev, u32 filter_mask) 980 * struct net_device *dev, u32 filter_mask,
981 * int nlflags)
980 * int (*ndo_bridge_dellink)(struct net_device *dev, struct nlmsghdr *nlh, 982 * int (*ndo_bridge_dellink)(struct net_device *dev, struct nlmsghdr *nlh,
981 * u16 flags); 983 * u16 flags);
982 * 984 *
@@ -1172,7 +1174,8 @@ struct net_device_ops {
1172 int (*ndo_bridge_getlink)(struct sk_buff *skb, 1174 int (*ndo_bridge_getlink)(struct sk_buff *skb,
1173 u32 pid, u32 seq, 1175 u32 pid, u32 seq,
1174 struct net_device *dev, 1176 struct net_device *dev,
1175 u32 filter_mask); 1177 u32 filter_mask,
1178 int nlflags);
1176 int (*ndo_bridge_dellink)(struct net_device *dev, 1179 int (*ndo_bridge_dellink)(struct net_device *dev,
1177 struct nlmsghdr *nlh, 1180 struct nlmsghdr *nlh,
1178 u16 flags); 1181 u16 flags);
@@ -1627,6 +1630,9 @@ struct net_device {
1627 void *ax25_ptr; 1630 void *ax25_ptr;
1628 struct wireless_dev *ieee80211_ptr; 1631 struct wireless_dev *ieee80211_ptr;
1629 struct wpan_dev *ieee802154_ptr; 1632 struct wpan_dev *ieee802154_ptr;
1633#if IS_ENABLED(CONFIG_MPLS_ROUTING)
1634 struct mpls_dev __rcu *mpls_ptr;
1635#endif
1630 1636
1631/* 1637/*
1632 * Cache lines mostly used on receive path (including eth_type_trans()) 1638 * Cache lines mostly used on receive path (including eth_type_trans())
@@ -2021,10 +2027,10 @@ struct pcpu_sw_netstats {
2021({ \ 2027({ \
2022 typeof(type) __percpu *pcpu_stats = alloc_percpu(type); \ 2028 typeof(type) __percpu *pcpu_stats = alloc_percpu(type); \
2023 if (pcpu_stats) { \ 2029 if (pcpu_stats) { \
2024 int i; \ 2030 int __cpu; \
2025 for_each_possible_cpu(i) { \ 2031 for_each_possible_cpu(__cpu) { \
2026 typeof(type) *stat; \ 2032 typeof(type) *stat; \
2027 stat = per_cpu_ptr(pcpu_stats, i); \ 2033 stat = per_cpu_ptr(pcpu_stats, __cpu); \
2028 u64_stats_init(&stat->syncp); \ 2034 u64_stats_init(&stat->syncp); \
2029 } \ 2035 } \
2030 } \ 2036 } \