From: Chaitanya Lala <clala@riverbed.com>
To: "Brandeburg, Jesse" <jesse.brandeburg@intel.com>
Cc: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>,
"jgarzik@redhat.com" <jgarzik@redhat.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [net-next PATCH 1/1] e1000e: Expose MDI-X state via sysfs
Date: Wed, 20 May 2009 10:14:27 -0700 [thread overview]
Message-ID: <4A143A73.40504@riverbed.com> (raw)
In-Reply-To: <F169D4F5E1F1974DBFAFABF47F60C10A335276C4@orsmsx507.amr.corp.intel.com>
Brandeburg, Jesse wrote:
> Chaitanya Lala wrote:
>
>> Jeff Kirsher wrote:
>>
>>> On Tue, May 19, 2009 at 2:05 PM, Chaitanya Lala <clala@riverbed.com>
>>> wrote:
>>>
>>>
>>>> While debugging network connectivity problems, it is often helpful
>>>> to report the MDI-X state. The is_mdix variable holds the current
>>>> state which we expose on a per-interface basis as a sysfs attribute.
>>>> We use sysfs over methods such as netlink due to the convenience of
>>>> reading a file (using the cat command) as opposed to connecting to a
>>>> netlink socket. If we use a fiber PHY then is_mdix will always be
>>>> zero
>>>> as the mdi-x feature only applies to copper PHYs.
>>>>
>>>> Signed-off-by: Chaitanya Lala <clala@riverbed.com>
>>>> Signed-off-by: Arthur Jones <ajones@riverbed.com>
>>>> ---
>>>>
>>>>
>>> NAK. We do not want to be adding sysfs entries for every little
>>> piece
>>> of information in the driver. Instead, I would suggest looking at
>>> enhancing existing tools like ethtool to get that sort of information
>>> in a more generic way which is not driver specific.
>>>
>>>
>>>
>> The MDI-X setting is a non-standard piece of information & every
>> driver may or may-not have it. But still this is an important
>> de-bugging tool & we would want to use this information from the
>> drivers that do provide this facility. So what would be a standard
>> way to do this via something like ethtool ? Any pointers would be
>> helpful.
>>
>
> how about (psuedo diff)
>
> Supported ports: [ TP ]
> Supported link modes: 10baseT/Half 10baseT/Full
> 100baseT/Half 100baseT/Full
> 1000baseT/Full
> Supports auto-negotiation: Yes
> Advertised link modes: 10baseT/Half 10baseT/Full
> 100baseT/Half 100baseT/Full
> 1000baseT/Full
> Advertised auto-negotiation: Yes
> Speed: 1000Mb/s
> Duplex: Full
> Port: Twisted Pair
> PHYAD: 1
> Transceiver: internal
> Auto-negotiation: on
> + MDI-X: on
> Supports Wake-on: umbg
> Wake-on: g
> Current message level: 0x00000003 (3)
> Link detected: yes
>
> where possible MDI-X values are (on|off)
>
> This way drivers can optionally implement the feature in their
> get_settings and set_settings handlers.
>
Thanks for the possible solution. I will work on it and get back.
Thanks,
Chaitanya
prev parent reply other threads:[~2009-05-20 17:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-19 21:05 [net-next PATCH 1/1] e1000e: Expose MDI-X state via sysfs Chaitanya Lala
2009-05-19 21:55 ` Jeff Kirsher
2009-05-19 22:22 ` Chaitanya Lala
2009-05-19 23:45 ` Brandeburg, Jesse
2009-05-20 17:14 ` Chaitanya Lala [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A143A73.40504@riverbed.com \
--to=clala@riverbed.com \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jesse.brandeburg@intel.com \
--cc=jgarzik@redhat.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.