Skip to content

Commit f7f019e

Browse files
jpirkodavem330
authored andcommitted
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>
1 parent c981e42 commit f7f019e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎include/linux/netdevice.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3897,6 +3897,11 @@ static inline bool netif_is_team_master(struct net_device *dev)
38973897
return dev->priv_flags & IFF_TEAM;
38983898
}
38993899

3900+
static inline bool netif_is_team_port(struct net_device *dev)
3901+
{
3902+
return dev->priv_flags & IFF_TEAM_PORT;
3903+
}
3904+
39003905
/* This device needs to keep skb dst for qdisc enqueue or ndo_start_xmit() */
39013906
static inline void netif_keep_dst(struct net_device *dev)
39023907
{

0 commit comments

Comments
 (0)