mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue