]> Git Repo - linux.git/commitdiff
net: add netif_is_ovs_port helper
authorJiri Pirko <[email protected]>
Tue, 18 Apr 2017 14:55:36 +0000 (16:55 +0200)
committerDavid S. Miller <[email protected]>
Thu, 20 Apr 2017 19:32:31 +0000 (15:32 -0400)
To find out if a netdev is an OVS port.

Signed-off-by: Jiri Pirko <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/linux/netdevice.h

index b0aa089ce67fe4acec70b518a399db7e99a435e0..0f3c38ce54171e1141ed4db3dd937066aedca5e5 100644 (file)
@@ -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;
This page took 0.04854 seconds and 4 git commands to generate.