mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
David S. Miller
parent
0894ae3f0a
commit
35d4e17252
@@ -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;
|
||||
|
Reference in New Issue
Block a user