summaryrefslogtreecommitdiff
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2015-12-03 14:12:07 +0300
committerDavid S. Miller <davem@davemloft.net>2015-12-03 19:49:24 +0300
commitf7f019ee6d117de5007d0b10e7960696bbf111eb (patch)
treee797b6a1422d8d56ee12b12682d9ec6959f804e2 /include/linux/netdevice.h
parentc981e4213e9d2d4ec79501bd607722ec712742a2 (diff)
downloadlinux-f7f019ee6d117de5007d0b10e7960696bbf111eb.tar.xz
net: add netif_is_team_port helper
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>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 2b889be65d88..b3601f8a9b42 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -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)
{