Skip to contentSkip to conversation

net: ipv6: don't generate link local address on PUREIP device

PATCH In review Rocco Yue 2 participants 6 messages Jan 28, 2021 – Feb 23, 2021

Subsystems (4)
lore
Share & tools
lore

Rocco Yue

author
#0 lore raw

PATCH 2/2 net: ipv6: don't generate link local address on PUREIP device

PUREIP device such as ccmni does not need kernel to generate link-local address in any addr_gen_mode, generally, it shall use the IPv6 Interface Identifier, as provided by the GGSN, to create its IPv6 link-ocal Unicast Address.

---
 net/ipv6/addrconf.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
net/ipv6/addrconf.c +8 -1
index 9edc5bb2d531..5e8134d3e704 100644
@@ -3337,7 +3337,8 @@ static void addrconf_dev_config(struct net_device *dev)
 	    (dev->type != ARPHRD_IPGRE) &&
 	    (dev->type != ARPHRD_TUNNEL) &&
 	    (dev->type != ARPHRD_NONE) &&
-	    (dev->type != ARPHRD_RAWIP)) {
+	    (dev->type != ARPHRD_RAWIP) &&
+	    (dev->type != ARPHRD_PUREIP)) {
 		/* Alas, we support only Ethernet autoconfiguration. */
 		idev = __in6_dev_get(dev);
 		if (!IS_ERR_OR_NULL(idev) && dev->flags & IFF_UP &&
@@ -3350,6 +3351,12 @@ static void addrconf_dev_config(struct net_device *dev)
 	if (IS_ERR(idev))
 		return;
 
+	/* this device type doesn't need to generate
+	 * link-local address in any addr_gen_mode
+	 */
+	if (dev->type == ARPHRD_PUREIP)
+		return;
+
 	/* this device type has no EUI support */
 	if (dev->type == ARPHRD_NONE &&
 	    idev->cnf.addr_gen_mode == IN6_ADDR_GEN_MODE_EUI64)
Signature · 1 line
2.18.0
maintainer
#1 lore raw
Quoted 6 lines · On Thu, 28 Jan 2021 13:58:09 +0800 Rocco Yue wrote:

PUREIP device such as ccmni does not need kernel to generate link-local address in any addr_gen_mode, generally, it shall use the IPv6 Interface Identifier, as provided by the GGSN, to create its IPv6 link-ocal Unicast Address.

There is no ccmni driver in the tree - is this for non-upstream driver?

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

author
#2 lore raw
Quoted 10 lines · Jakub Kicinski
Quoted 6 lines · On Thu, 28 Jan 2021 13:58:09 +0800 Rocco Yue wrote:

PUREIP device such as ccmni does not need kernel to generate link-local address in any addr_gen_mode, generally, it shall use the IPv6 Interface Identifier, as provided by the GGSN, to create its IPv6 link-ocal Unicast Address.

There is no ccmni driver in the tree - is this for non-upstream driver?

ccmni is the name of MediaTek mobile interface, currently, it is non-upstream driver and we plan to upstream these driver codes this year.

Honestly, the reason why upstreamed this patch is not only that it can be used by ccmni, but also I observed that the current Linux kernel does not generate ipv6 link-local address only when addr_gen_mode == IN6_ADDR_GEN_MODE_NONE. We hope kernel can add a device type so that no ipv6 link-local address can be generated in any addr_gen_mode.
_______________________________________________
Linux-mediatek mailing list [email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

author
#3 lore raw
Quoted 16 lines · rocco.yue
Quoted 10 lines · Jakub Kicinski
Quoted 6 lines · On Thu, 28 Jan 2021 13:58:09 +0800 Rocco Yue wrote:

PUREIP device such as ccmni does not need kernel to generate link-local address in any addr_gen_mode, generally, it shall use the IPv6 Interface Identifier, as provided by the GGSN, to create its IPv6 link-ocal Unicast Address.

There is no ccmni driver in the tree - is this for non-upstream driver?

ccmni is the name of MediaTek mobile interface, currently, it is non-upstream driver and we plan to upstream these driver codes this year.

Quoted 5 lines

Honestly, the reason why upstreamed this patch is not only that it can be used by ccmni, but also I observed that the current Linux kernel does not generate ipv6 link-local address only when addr_gen_mode == IN6_ADDR_GEN_MODE_NONE. We hope kernel can add a device type so that no ipv6 link-local address can be generated in any addr_gen_mode.

Hi Jakub,

gentle ping for this patch set.

Thanks
Rocco
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

maintainer
#4 lore raw
Quoted 12 lines · On Tue, 23 Feb 2021 10:03:11 +0800 rocco.yue wrote:
Quoted 2 lines · rocco.yue
Quoted 1 line · Jakub Kicinski

On Thu, 28 Jan 2021 13:58:09 +0800 Rocco Yue wrote:

[...]

Quoted 8 lines
Quoted 3 lines

There is no ccmni driver in the tree - is this for non-upstream driver?

ccmni is the name of MediaTek mobile interface, currently, it is non-upstream driver and we plan to upstream these driver codes this year.

Quoted 7 lines
Quoted 5 lines

Honestly, the reason why upstreamed this patch is not only that it can be used by ccmni, but also I observed that the current Linux kernel does not generate ipv6 link-local address only when addr_gen_mode == IN6_ADDR_GEN_MODE_NONE. We hope kernel can add a device type so that no ipv6 link-local address can be generated in any addr_gen_mode.

gentle ping for this patch set.

We don't merge patches without upstream users.

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

author
#5 lore raw
Quoted 19 lines · Jakub Kicinski
Quoted 18 lines · On Tue, 23 Feb 2021 10:03:11 +0800 rocco.yue wrote:
Quoted 2 lines · rocco.yue
Quoted 1 line · Jakub Kicinski

On Thu, 28 Jan 2021 13:58:09 +0800 Rocco Yue wrote:

[...]

Quoted 13 lines
Quoted 3 lines

There is no ccmni driver in the tree - is this for non-upstream driver?

ccmni is the name of MediaTek mobile interface, currently, it is non-upstream driver and we plan to upstream these driver codes this year.

Honestly, the reason why upstreamed this patch is not only that it can be used by ccmni, but also I observed that the current Linux kernel does not generate ipv6 link-local address only when addr_gen_mode == IN6_ADDR_GEN_MODE_NONE. We hope kernel can add a device type so that no ipv6 link-local address can be generated in any addr_gen_mode.

Quoted 3 lines
Quoted 1 line

gentle ping for this patch set.

We don't merge patches without upstream users.

Hi Jakub,

Thanks for your reply.
We will prepare and upstream MediaTek mobile device code asap.

Best Regards,
Rocco
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek