diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-04-18 16:55:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-20 15:32:31 -0400 |
commit | 5be661412762bbef45a55eaf1e6847258d69b3a4 (patch) | |
tree | e50a42d0125663c54ddd9cbfed5100da1f9148a0 | |
parent | 93cd081305092929a8be1ebed9eb5bcbe54e4b7d (diff) | |
download | linux-stable-5be661412762bbef45a55eaf1e6847258d69b3a4.tar.gz linux-stable-5be661412762bbef45a55eaf1e6847258d69b3a4.tar.bz2 linux-stable-5be661412762bbef45a55eaf1e6847258d69b3a4.zip |
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>
-rw-r--r-- | include/linux/netdevice.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index b0aa089ce67f..0f3c38ce5417 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -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; |