aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2015-12-03 12:12:07 +0100
committerDavid S. Miller <davem@davemloft.net>2015-12-03 11:49:24 -0500
commitf7f019ee6d117de5007d0b10e7960696bbf111eb (patch)
treee797b6a1422d8d56ee12b12682d9ec6959f804e2 /include/linux
parentnet: add netif_is_team_master helper (diff)
downloadlinux-dev-f7f019ee6d117de5007d0b10e7960696bbf111eb.tar.xz
linux-dev-f7f019ee6d117de5007d0b10e7960696bbf111eb.zip
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')
-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)
{