.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * include/linux/if_team.h - Network team device driver header |
---|
3 | 4 | * Copyright (c) 2011 Jiri Pirko <jpirko@redhat.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License as published by |
---|
7 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
8 | | - * (at your option) any later version. |
---|
9 | 5 | */ |
---|
10 | 6 | #ifndef _LINUX_IF_TEAM_H_ |
---|
11 | 7 | #define _LINUX_IF_TEAM_H_ |
---|
.. | .. |
---|
71 | 67 | u16 queue_id; |
---|
72 | 68 | struct list_head qom_list; /* node in queue override mapping list */ |
---|
73 | 69 | struct rcu_head rcu; |
---|
74 | | - long mode_priv[0]; |
---|
| 70 | + long mode_priv[]; |
---|
75 | 71 | }; |
---|
76 | 72 | |
---|
77 | 73 | static inline struct team_port *team_port_get_rcu(const struct net_device *dev) |
---|
.. | .. |
---|
106 | 102 | static inline void team_netpoll_send_skb(struct team_port *port, |
---|
107 | 103 | struct sk_buff *skb) |
---|
108 | 104 | { |
---|
109 | | - struct netpoll *np = port->np; |
---|
110 | | - |
---|
111 | | - if (np) |
---|
112 | | - netpoll_send_skb(np, skb); |
---|
| 105 | + netpoll_send_skb(port->np, skb); |
---|
113 | 106 | } |
---|
114 | 107 | #else |
---|
115 | 108 | static inline void team_netpoll_send_skb(struct team_port *port, |
---|
.. | .. |
---|
196 | 189 | struct net_device *dev; /* associated netdevice */ |
---|
197 | 190 | struct team_pcpu_stats __percpu *pcpu_stats; |
---|
198 | 191 | |
---|
| 192 | + const struct header_ops *header_ops_cache; |
---|
| 193 | + |
---|
199 | 194 | struct mutex lock; /* used for overall locking, e.g. port lists write */ |
---|
200 | 195 | |
---|
201 | 196 | /* |
---|
.. | .. |
---|
215 | 210 | bool queue_override_enabled; |
---|
216 | 211 | struct list_head *qom_lists; /* array of queue override mapping lists */ |
---|
217 | 212 | bool port_mtu_change_allowed; |
---|
| 213 | + bool notifier_ctx; |
---|
218 | 214 | struct { |
---|
219 | 215 | unsigned int count; |
---|
220 | 216 | unsigned int interval; /* in ms */ |
---|
.. | .. |
---|
227 | 223 | atomic_t count_pending; |
---|
228 | 224 | struct delayed_work dw; |
---|
229 | 225 | } mcast_rejoin; |
---|
| 226 | + struct lock_class_key team_lock_key; |
---|
230 | 227 | long mode_priv[TEAM_MODE_PRIV_LONGS]; |
---|
231 | 228 | }; |
---|
232 | 229 | |
---|