hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/if_team.h
....@@ -1,11 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * include/linux/if_team.h - Network team device driver header
34 * 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.
95 */
106 #ifndef _LINUX_IF_TEAM_H_
117 #define _LINUX_IF_TEAM_H_
....@@ -71,7 +67,7 @@
7167 u16 queue_id;
7268 struct list_head qom_list; /* node in queue override mapping list */
7369 struct rcu_head rcu;
74
- long mode_priv[0];
70
+ long mode_priv[];
7571 };
7672
7773 static inline struct team_port *team_port_get_rcu(const struct net_device *dev)
....@@ -106,10 +102,7 @@
106102 static inline void team_netpoll_send_skb(struct team_port *port,
107103 struct sk_buff *skb)
108104 {
109
- struct netpoll *np = port->np;
110
-
111
- if (np)
112
- netpoll_send_skb(np, skb);
105
+ netpoll_send_skb(port->np, skb);
113106 }
114107 #else
115108 static inline void team_netpoll_send_skb(struct team_port *port,
....@@ -227,6 +220,7 @@
227220 atomic_t count_pending;
228221 struct delayed_work dw;
229222 } mcast_rejoin;
223
+ struct lock_class_key team_lock_key;
230224 long mode_priv[TEAM_MODE_PRIV_LONGS];
231225 };
232226