Skip to content

Commit 5be6614

Browse files
jpirkodavem330
authored andcommitted
net: add netif_is_ovs_port helper
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]>
1 parent 93cd081 commit 5be6614

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/netdevice.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4171,6 +4171,11 @@ static inline bool netif_is_ovs_master(const struct net_device *dev)
41714171
return dev->priv_flags & IFF_OPENVSWITCH;
41724172
}
41734173

4174+
static inline bool netif_is_ovs_port(const struct net_device *dev)
4175+
{
4176+
return dev->priv_flags & IFF_OVS_DATAPATH;
4177+
}
4178+
41744179
static inline bool netif_is_team_master(const struct net_device *dev)
41754180
{
41764181
return dev->priv_flags & IFF_TEAM;

0 commit comments

Comments
 (0)