lkml.org 
[lkml]   [2019]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next v6 11/15] ethtool: provide link mode names as a string set
On Tue, 2 Jul 2019 19:04:19 -0700, Jakub Kicinski wrote:
> On Tue, 2 Jul 2019 13:50:34 +0200 (CEST), Michal Kubecek wrote:
> > +const char *const link_mode_names[] = {
> > + __DEFINE_LINK_MODE_NAME(10, T, Half),
> > + __DEFINE_LINK_MODE_NAME(10, T, Full),
> > + __DEFINE_LINK_MODE_NAME(100, T, Half),
> > + __DEFINE_LINK_MODE_NAME(100, T, Full),
> > + __DEFINE_LINK_MODE_NAME(1000, T, Half),
> > + __DEFINE_LINK_MODE_NAME(1000, T, Full),
> > + __DEFINE_SPECIAL_MODE_NAME(Autoneg, "Autoneg"),
> > + __DEFINE_SPECIAL_MODE_NAME(TP, "TP"),
> > + __DEFINE_SPECIAL_MODE_NAME(AUI, "AUI"),
> > + __DEFINE_SPECIAL_MODE_NAME(MII, "MII"),
> > + __DEFINE_SPECIAL_MODE_NAME(FIBRE, "FIBRE"),
> > + __DEFINE_SPECIAL_MODE_NAME(BNC, "BNC"),
>
> > + __DEFINE_LINK_MODE_NAME(10000, T, Full),
> > + __DEFINE_SPECIAL_MODE_NAME(Pause, "Pause"),
> > + __DEFINE_SPECIAL_MODE_NAME(Asym_Pause, "Asym_Pause"),
> > + __DEFINE_LINK_MODE_NAME(2500, X, Full),
> > + __DEFINE_SPECIAL_MODE_NAME(Backplane, "Backplane"),
> > + __DEFINE_LINK_MODE_NAME(1000, KX, Full),
> ...
> > + __DEFINE_LINK_MODE_NAME(5000, T, Full),
> > + __DEFINE_SPECIAL_MODE_NAME(FEC_NONE, "None"),
> > + __DEFINE_SPECIAL_MODE_NAME(FEC_RS, "RS"),
> > + __DEFINE_SPECIAL_MODE_NAME(FEC_BASER, "BASER"),
>
> Why are port types and FEC params among link mode strings?

Ah, FEC for autoneg, but port type?

> > + __DEFINE_LINK_MODE_NAME(50000, KR, Full),
> ...
> > + __DEFINE_LINK_MODE_NAME(1000, T1, Full),
> > +};

\
 
 \ /
  Last update: 2019-07-03 04:12    [W:0.087 / U:20.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site