.. | .. |
---|
| 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, |
---|
.. | .. |
---|
227 | 220 | atomic_t count_pending; |
---|
228 | 221 | struct delayed_work dw; |
---|
229 | 222 | } mcast_rejoin; |
---|
| 223 | + struct lock_class_key team_lock_key; |
---|
230 | 224 | long mode_priv[TEAM_MODE_PRIV_LONGS]; |
---|
231 | 225 | }; |
---|
232 | 226 | |
---|