[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <MWHPR12MB1600B8ECA4222A062CDC71C0C8D50@MWHPR12MB1600.namprd12.prod.outlook.com>
Date: Thu, 6 Jul 2017 22:47:06 +0000
From: Casey Leedom <leedom@...lsio.com>
To: Andrew Lunn <andrew@...n.ch>
CC: Jakub Kicinski <kubakici@...pl>,
Dustin Byford <dustin@...ulusnetworks.com>,
Roopa Prabhu <roopa@...ulusnetworks.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"linville@...driver.com" <linville@...driver.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"vidya.chowdary@...il.com" <vidya.chowdary@...il.com>,
"olson@...ulusnetworks.com" <olson@...ulusnetworks.com>,
Manoj Malviya <manojmalviya@...lsio.com>,
Santosh Rastapur <santosh@...lsio.com>,
"yuval.mintz@...gic.com" <yuval.mintz@...gic.com>,
"odedw@...lanox.com" <odedw@...lanox.com>,
"ariela@...lanox.com" <ariela@...lanox.com>,
"galp@...lanox.com" <galp@...lanox.com>,
"jeffrey.t.kirsher@...el.com" <jeffrey.t.kirsher@...el.com>
Subject: Re: [PATCH net-next 1/3] net: ethtool: add support for forward error
correction modes
| From: Andrew Lunn <andrew@...n.ch>
| Sent: Thursday, July 6, 2017 3:33 PM
|
| On Thu, Jul 06, 2017 at 09:53:46PM +0000, Casey Leedom wrote:
| >
| > But, and far more importantly, ideally _*ANY*_ such decision is made at an
| > architectural level to apply to all Link Parameters and Vendor Products.
| > The last thing a user wants to deal with is a hodge-podge of different
| > policies for different adapters from different vendors.
|
| Yes.
|
| SFP needs to becomes a Linux device, similar to Copper PHYs are Linux
| devices. With some core code which all drivers can use, implement
| ethtool --dump-module-eeprom, report speeds to the MAC using
| adjust_link, etc..
Okay. This "feels" like an implementation approach rather than a model
abstraction commentary, but it sounds like it would help ensure consistency
across vendors, etc.
| > how do users conceive of a "Port"?
|
| For a user, it is something they configure via /etc/network/interfaces
| and then use ifup/ifdown on.
|
| ...
|
| And this is where it gets interesting, as you say. We are into a
| hotplug model.
|
| I think you also need to define 'cable' here. I assume you are not
| talking about a piece of CAT 5 or glass fibre. You mean something
| which is active. You are putting a different module into the SFP cage.
Yes, I'm talking about active Transceiver Modules whether welded
onto the ends of copper-based cables or Optical Transceiver Modules.
| The extreme model would be, if you pull the module out, the whole
| netdev is hot-unplugged. Plug a different modules in, the netdev is
| hot-plugged. The user has to ifup it again, and would get an error
| message if the configuration is invalid.
|
| But i think this is too extreme.
I agree. This would force a completely new set of behavior on all users.
And it wouldn't match the paradigms used by any other OS. (Yes,
I know that Linux tends to ignore such issues, but users do live in
mixed shops and it would be cruel to them to force radically different
operating paradigms between the systems they need to use.)
| I think the sfp device needs to give a hotplug event on unplug/plug.
| A hot-unplug would result in an ifdown. And within the kernel, the
| netdev is set down. If there is an "allow-hotplug" statement in
| /etc/network/interfaces, on hot-plug, udev would try to ifup and get
| an error and it will stay down. Without the "allow-hotplug" the
| interface remains configured down until the user does an ifup and
| would see an error message if the configuration is invalid.
Even this feels too extreme for me. I think users would hate it. They
did an ifup and swapped cables. They expect the OS/Driver/Firmware
to continue trying to honor their ifup request.
Casey
Powered by blists - more mailing lists