diff mbox series

[RFC,V2,3/4] net: introduce media selection IF_PORT_HOMEPLUG

Message ID 1638623871-21805-4-git-send-email-stefan.wahren@i2se.com (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series add Vertexcom MSE102x support | expand

Checks

Context Check Description
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix success Link
netdev/cover_letter success Series has a cover letter
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 4756 this patch: 4756
netdev/cc_maintainers success CCed 3 of 3 maintainers
netdev/build_clang success Errors and warnings before: 852 this patch: 852
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 4911 this patch: 4911
netdev/checkpatch fail ERROR: code indent should use tabs where possible WARNING: please, no spaces at the start of a line
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/tree_selection success Guessing tree name failed - patch did not apply, async

Commit Message

Stefan Wahren Dec. 4, 2021, 1:17 p.m. UTC
Introduce a new media selection dedicated for HomePlug powerline
communication. This allows us to use the proper if_port setting in
HomePlug drivers.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
 include/uapi/linux/netdevice.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jakub Kicinski Dec. 6, 2021, 7:29 p.m. UTC | #1
On Sat,  4 Dec 2021 14:17:50 +0100 Stefan Wahren wrote:
> Introduce a new media selection dedicated for HomePlug powerline
> communication. This allows us to use the proper if_port setting in
> HomePlug drivers.
> 
> Suggested-by: Andrew Lunn <andrew@lunn.ch>
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>

I _think_ the IF_PORT API is an very ancient (Linux 2.2) way of
switching ports on early Ethernet cards. Isn't it? It predates
ethtool and all the modern interfaces. Quick grep seems to indicate
it's accessed only for old HW as well.

Do you have a use case for setting it?

> diff --git a/include/uapi/linux/netdevice.h b/include/uapi/linux/netdevice.h
> index f3770c5..0f1f536 100644
> --- a/include/uapi/linux/netdevice.h
> +++ b/include/uapi/linux/netdevice.h
> @@ -53,7 +53,8 @@ enum {
>          IF_PORT_AUI,
>          IF_PORT_100BASET,
>          IF_PORT_100BASETX,
> -        IF_PORT_100BASEFX
> +        IF_PORT_100BASEFX,
> +        IF_PORT_HOMEPLUG
>  };
>  
>  /* hardware address assignment types */
Stefan Wahren Dec. 8, 2021, 4:55 p.m. UTC | #2
Am 06.12.21 um 20:29 schrieb Jakub Kicinski:
> On Sat,  4 Dec 2021 14:17:50 +0100 Stefan Wahren wrote:
>> Introduce a new media selection dedicated for HomePlug powerline
>> communication. This allows us to use the proper if_port setting in
>> HomePlug drivers.
>>
>> Suggested-by: Andrew Lunn <andrew@lunn.ch>
>> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
> I _think_ the IF_PORT API is an very ancient (Linux 2.2) way of
> switching ports on early Ethernet cards. Isn't it? It predates
> ethtool and all the modern interfaces. Quick grep seems to indicate
> it's accessed only for old HW as well.
>
> Do you have a use case for setting it?
Actually not, i will drop it from the patchset.
diff mbox series

Patch

diff --git a/include/uapi/linux/netdevice.h b/include/uapi/linux/netdevice.h
index f3770c5..0f1f536 100644
--- a/include/uapi/linux/netdevice.h
+++ b/include/uapi/linux/netdevice.h
@@ -53,7 +53,8 @@  enum {
         IF_PORT_AUI,
         IF_PORT_100BASET,
         IF_PORT_100BASETX,
-        IF_PORT_100BASEFX
+        IF_PORT_100BASEFX,
+        IF_PORT_HOMEPLUG
 };
 
 /* hardware address assignment types */