Commit 0c493da8 authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by Paolo Abeni
Browse files

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: default avatarEric Dumazet <edumazet@google.com>
Suggested-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent af08cc40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ unsigned:1 wol_enabled
unsigned:1                          threaded                                                            napi_poll(napi_enable,dev_set_threaded)
unsigned_long:1                     see_all_hwtstamp_requests
unsigned_long:1                     change_proto_down
unsigned_long:1                     netns_local
unsigned_long:1                     netns_immutable
unsigned_long:1                     fcoe_mtu
struct list_head                    net_notifier_list
struct macsec_ops*                  macsec_ops
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ would be sub-port 0 on port 1 on switch 1.
Port Features
^^^^^^^^^^^^^

dev->netns_local
dev->netns_immutable

If the switchdev driver (and device) only supports offloading of the default
network namespace (netns), the driver should set this private flag to prevent
+1 −1
Original line number Diff line number Diff line
@@ -3099,7 +3099,7 @@ static void amt_link_setup(struct net_device *dev)
	dev->addr_len		= 0;
	dev->priv_flags		|= IFF_NO_QUEUE;
	dev->lltx		= true;
	dev->netns_local	= true;
	dev->netns_immutable	= true;
	dev->features		|= NETIF_F_GSO_SOFTWARE;
	dev->hw_features	|= NETIF_F_SG | NETIF_F_HW_CSUM;
	dev->hw_features	|= NETIF_F_FRAGLIST | NETIF_F_RXCSUM;
+1 −1
Original line number Diff line number Diff line
@@ -6025,7 +6025,7 @@ void bond_setup(struct net_device *bond_dev)
	bond_dev->lltx = true;

	/* Don't allow bond devices to change network namespaces. */
	bond_dev->netns_local = true;
	bond_dev->netns_immutable = true;

	/* By default, we declare the bond to be fully
	 * VLAN hardware accelerated capable. Special
+1 −1
Original line number Diff line number Diff line
@@ -1599,7 +1599,7 @@ static int adin1110_probe_netdevs(struct adin1110_priv *priv)
		netdev->netdev_ops = &adin1110_netdev_ops;
		netdev->ethtool_ops = &adin1110_ethtool_ops;
		netdev->priv_flags |= IFF_UNICAST_FLT;
		netdev->netns_local = true;
		netdev->netns_immutable = true;

		port_priv->phydev = get_phy_device(priv->mii_bus, i + 1, false);
		if (IS_ERR(port_priv->phydev)) {
Loading