Re: [patch net-next v3 04/28] net: add netif_is_team_master helper

From
Eric Dumazet <hidden>
Date
2015-12-03 12:46:04
Reply to
Jiri Pirko, 2015-12-03
On Thu, 2015-12-03 at 12:12 +0100, Jiri Pirko wrote:
quoted hunk ↗ jump to hunk
  *	struct net_device - The DEVICE structure.
@@ -3887,6 +3890,11 @@ static inline bool netif_is_ovs_master(const struct net_device *dev)
 	return dev->priv_flags & IFF_OPENVSWITCH;
 }
 
+static inline bool netif_is_team_master(struct net_device *dev)
+{
+	return dev->priv_flags & IFF_TEAM;
+}
+
Please add 'const' qualifiers whenever possible, like for
netif_is_ovs_master(const struct net_device *dev)
Thread (33 messages) 33 messages, 3 authors, last reply 2015-12-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help