summaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2015-08-27 09:31:20 +0200
committerDavid S. Miller <davem@davemloft.net>2015-08-27 16:28:35 -0700
commit35d4e1725202e6656fcfa8b88447327ad3ae0c0c (patch)
treea3d559ce4df8e097e51e443749bf3830e7030906 /net/openvswitch
parent0894ae3f0a587bda9733ec4a4b67af7ded3a9498 (diff)
downloadop-kernel-dev-35d4e1725202e6656fcfa8b88447327ad3ae0c0c.zip
op-kernel-dev-35d4e1725202e6656fcfa8b88447327ad3ae0c0c.tar.gz
net: add netif_is_ovs_master helper with IFF_OPENVSWITCH private flag
Add this helper so code can easily figure out if netdev is openswitch. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/vport-internal_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c
index c058bbf..80b3e12 100644
--- a/net/openvswitch/vport-internal_dev.c
+++ b/net/openvswitch/vport-internal_dev.c
@@ -135,7 +135,7 @@ static void do_setup(struct net_device *netdev)
netdev->netdev_ops = &internal_dev_netdev_ops;
netdev->priv_flags &= ~IFF_TX_SKB_SHARING;
- netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
+ netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_OPENVSWITCH;
netdev->destructor = internal_dev_destructor;
netdev->ethtool_ops = &internal_dev_ethtool_ops;
netdev->rtnl_link_ops = &internal_dev_link_ops;
OpenPOWER on IntegriCloud