netdev_features: convert NETIF_F_NETNS_LOCAL to dev->netns_local
"Interface can't change network namespaces" is rather an attribute, not a feature, and it can't be changed via Ethtool. Make it a "cold" private flag instead of a netdev_feature and free one more bit. Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
00d066a4d4
commit
05c1280a2b
@@ -149,7 +149,7 @@ static struct vport *internal_dev_create(const struct vport_parms *parms)
|
||||
|
||||
/* Restrict bridge port to current netns. */
|
||||
if (vport->port_no == OVSP_LOCAL)
|
||||
vport->dev->features |= NETIF_F_NETNS_LOCAL;
|
||||
vport->dev->netns_local = true;
|
||||
|
||||
rtnl_lock();
|
||||
err = register_netdevice(vport->dev);
|
||||
|
||||
Reference in New Issue
Block a user