mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 11:04:44 +08:00
net: add netif_is_ovs_port helper
To find out if a netdev is an OVS port. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
93cd081305
commit
5be6614127
@ -4171,6 +4171,11 @@ static inline bool netif_is_ovs_master(const struct net_device *dev)
|
||||
return dev->priv_flags & IFF_OPENVSWITCH;
|
||||
}
|
||||
|
||||
static inline bool netif_is_ovs_port(const struct net_device *dev)
|
||||
{
|
||||
return dev->priv_flags & IFF_OVS_DATAPATH;
|
||||
}
|
||||
|
||||
static inline bool netif_is_team_master(const struct net_device *dev)
|
||||
{
|
||||
return dev->priv_flags & IFF_TEAM;
|
||||
|
Loading…
Reference in New Issue
Block a user