net: add netif_is_team_port helper
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Dec 2015 11:12:07 +0000 (12:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 16:49:24 +0000 (11:49 -0500)
Similar to other helpers, caller can use this to find out if device is
team port.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index 2b889be65d8849710a176e3ab70be16f66342867..b3601f8a9b426dc5f80e8ce0eae4f44a43bf7c8c 100644 (file)
@@ -3897,6 +3897,11 @@ static inline bool netif_is_team_master(struct net_device *dev)
        return dev->priv_flags & IFF_TEAM;
 }
 
+static inline bool netif_is_team_port(struct net_device *dev)
+{
+       return dev->priv_flags & IFF_TEAM_PORT;
+}
+
 /* This device needs to keep skb dst for qdisc enqueue or ndo_start_xmit() */
 static inline void netif_keep_dst(struct net_device *dev)
 {
This page took 0.052368 seconds and 5 git commands to generate.