Skip to content

rtnl: Add ARPHRD_PUREIP netdev type.#25

Open
bmigunov wants to merge 1 commit intosailfishos:masterfrom
bmigunov:arphrd_pureip
Open

rtnl: Add ARPHRD_PUREIP netdev type.#25
bmigunov wants to merge 1 commit intosailfishos:masterfrom
bmigunov:arphrd_pureip

Conversation

@bmigunov
Copy link
Copy Markdown

@bmigunov bmigunov commented Mar 1, 2022

Since ARPHRD_PUREIP netdev type has been introduced in kernel on some of
the MTK-based devices, there have been issues caused by the subject.

This netdev type needs to be handled by ipconfig module, so this commit
adds the support of the ARPHRD_PUREIP by handling appropriate ntelink
events.

Comment thread connman/src/rtnl.c Outdated
#define ARPHRD_RAWIP_2 (530) /* Some android kernels */

/* ARPHRD_PUREIP has been introduced in some MTK kernels (in intention to
* get rid of link local address creation for the ccmni net devices) */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untrue, well, maybe for MTK but in general reason was this https://lkml.org/lkml/2021/6/24/76 and the solution is not really accepted into kernels as of https://lkml.kernel.org/netdev/YNmWwSsZ02iigiHC@kroah.com/

Not yet sure if this is to be included. Upstream might criticize this for sure.

And, multi line comments are formatted (coding-style.txt M2):

/*
 * Line1.
 * Line2.
 */

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment section fixed.
It is possible for me to roll current MTK kernel's ccmni interface netdev type back to ARPHRD_PPP as long as it will not lead to any kind of issues (presumably).
But still, I'll leave this PR as a suggestion because there are no guarantees that ARPHRD_PUREIP will not be used in the future MTK projects.

Since ARPHRD_PUREIP netdev type has been introduced in kernel on some of
the MTK-based devices, there have been issues caused by the subject.

This netdev type needs to be handled by ipconfig module, so this commit
adds the support of the ARPHRD_PUREIP by handling appropriate ntelink
events.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants