All of lore.kernel.org
 help / color / mirror / Atom feed
* iproute2: Issue with link type link/generic for NETROM links
@ 2019-04-04 10:21 Ralf Baechle
  2019-04-11 22:25 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Ralf Baechle @ 2019-04-04 10:21 UTC (permalink / raw)
  To: netdev

For a NETROM "ip link show dev nr0" will show

4: nr0: <NOARP,UP,LOWER_UP> mtu 236 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/generic 88:98:6a:a4:84:40:0a brd 00:00:00:00:00:00:00

But rather link/netrom is expected to be displayed.

I have below patch to change ip such that link/netrom will be displayed
but I'm wondering if it's going to cause non-obvious breakage or would
be acceptable?

Thanks,

  Ralf

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

 lib/ll_types.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ll_types.c b/lib/ll_types.c
index bd8893ed..32d04b5a 100644
--- a/lib/ll_types.c
+++ b/lib/ll_types.c
@@ -32,7 +32,7 @@ static const struct {
 	int type;
 	const char *name;
 } arphrd_names[] = {
-{ 0, "generic" },
+__PF(NETROM,netrom)
 __PF(ETHER,ether)
 __PF(EETHER,eether)
 __PF(AX25,ax25)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: iproute2: Issue with link type link/generic for NETROM links
  2019-04-04 10:21 iproute2: Issue with link type link/generic for NETROM links Ralf Baechle
@ 2019-04-11 22:25 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2019-04-11 22:25 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: netdev

On Thu, 4 Apr 2019 12:21:54 +0200
Ralf Baechle <ralf@linux-mips.org> wrote:

> For a NETROM "ip link show dev nr0" will show
> 
> 4: nr0: <NOARP,UP,LOWER_UP> mtu 236 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
>     link/generic 88:98:6a:a4:84:40:0a brd 00:00:00:00:00:00:00
> 
> But rather link/netrom is expected to be displayed.
> 
> I have below patch to change ip such that link/netrom will be displayed
> but I'm wondering if it's going to cause non-obvious breakage or would
> be acceptable?
> 
> Thanks,
> 
>   Ralf
> 
> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
> 
>  lib/ll_types.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/ll_types.c b/lib/ll_types.c
> index bd8893ed..32d04b5a 100644
> --- a/lib/ll_types.c
> +++ b/lib/ll_types.c
> @@ -32,7 +32,7 @@ static const struct {
>  	int type;
>  	const char *name;
>  } arphrd_names[] = {
> -{ 0, "generic" },
> +__PF(NETROM,netrom)
>  __PF(ETHER,ether)
>  __PF(EETHER,eether)
>  __PF(AX25,ax25)

Looks ok to me, but was a little concerned that it might break something else.
Will merge it and see.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-11 22:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-04 10:21 iproute2: Issue with link type link/generic for NETROM links Ralf Baechle
2019-04-11 22:25 ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.