diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2025-02-28 11:20:56 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-03-04 12:44:48 +0100 |
commit | 0c493da86374dffff7505e67289ad75b21f5b301 (patch) | |
tree | cdf29189da69cefe4445f5dc89320e21342df9c9 /net/core/dev.c | |
parent | af08cc40ea6176e5c875fa80b665cdb3b9c930bc (diff) |
net: rename netns_local to netns_immutable
The name 'netns_local' is confusing. A following commit will export it via
netlink, so let's use a more explicit name.
Reported-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index d6d68a2d2355..357ae88064a5 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -12151,7 +12151,7 @@ int __dev_change_net_namespace(struct net_device *dev, struct net *net, /* Don't allow namespace local devices to be moved. */ err = -EINVAL; - if (dev->netns_local) + if (dev->netns_immutable) goto out; /* Ensure the device has been registered */ @@ -12533,7 +12533,7 @@ static void __net_exit default_device_exit_net(struct net *net) char fb_name[IFNAMSIZ]; /* Ignore unmoveable devices (i.e. loopback) */ - if (dev->netns_local) + if (dev->netns_immutable) continue; /* Leave virtual devices for the generic cleanup */ |