diff options
author | Jiri Pirko <jiri@mellanox.com> | 2015-12-03 12:12:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-03 11:49:24 -0500 |
commit | c981e4213e9d2d4ec79501bd607722ec712742a2 (patch) | |
tree | 57a760547a7f9fdf51a8f346a6275b195f474d39 /drivers/net/team | |
parent | 3952af4d50343728e54bf93880e0ecb9c42c47aa (diff) | |
download | op-kernel-dev-c981e4213e9d2d4ec79501bd607722ec712742a2.zip op-kernel-dev-c981e4213e9d2d4ec79501bd607722ec712742a2.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 651d35e..d2f3ee8 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 |