summaryrefslogtreecommitdiffstats
path: root/drivers/net/team
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2015-12-03 12:12:06 +0100
committerDavid S. Miller <davem@davemloft.net>2015-12-03 17:49:24 +0100
commitc981e4213e9d2d4ec79501bd607722ec712742a2 (patch)
tree57a760547a7f9fdf51a8f346a6275b195f474d39 /drivers/net/team
parentbonding: add 802.3ad support for 100G speeds (diff)
downloadlinux-c981e4213e9d2d4ec79501bd607722ec712742a2.tar.xz
linux-c981e4213e9d2d4ec79501bd607722ec712742a2.zip
net: add netif_is_team_master helper
Similar to other helpers, caller can use this to find out if device is team master. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team')
-rw-r--r--drivers/net/team/team.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
index 651d35ea22c5..d2f3ee832c47 100644
--- a/drivers/net/team/team.c
+++ b/drivers/net/team/team.c
@@ -2054,6 +2054,7 @@ static void team_setup(struct net_device *dev)
dev->flags |= IFF_MULTICAST;
dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING);
dev->priv_flags |= IFF_NO_QUEUE;
+ dev->priv_flags |= IFF_TEAM;
/*
* Indicate we support unicast address filtering. That way core won't