diff options
| author | Alexander Lobakin <[email protected]> | 2024-08-29 12:33:38 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-09-03 09:36:43 +0000 |
| commit | 05c1280a2bcfca187fe7fa90bb240602cf54af0a (patch) | |
| tree | 8d8750608ebfc586e395fb7ceb774fd535d8e3f1 /drivers/net/loopback.c | |
| parent | netdev_features: convert NETIF_F_LLTX to dev->lltx (diff) | |
| download | kernel-05c1280a2bcfca187fe7fa90bb240602cf54af0a.tar.gz kernel-05c1280a2bcfca187fe7fa90bb240602cf54af0a.zip | |
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 <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/net/loopback.c')
| -rw-r--r-- | drivers/net/loopback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index bf857782be0f..1993b90b1a5f 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c @@ -172,6 +172,7 @@ static void gen_lo_setup(struct net_device *dev, dev->flags = IFF_LOOPBACK; dev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_NO_QUEUE; dev->lltx = true; + dev->netns_local = true; netif_keep_dst(dev); dev->hw_features = NETIF_F_GSO_SOFTWARE; dev->features = NETIF_F_SG | NETIF_F_FRAGLIST @@ -180,7 +181,6 @@ static void gen_lo_setup(struct net_device *dev, | NETIF_F_RXCSUM | NETIF_F_SCTP_CRC | NETIF_F_HIGHDMA - | NETIF_F_NETNS_LOCAL | NETIF_F_VLAN_CHALLENGED | NETIF_F_LOOPBACK; dev->ethtool_ops = eth_ops; |
