From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: Ben Hutchings <bhutchings@solarflare.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>,
netdev@vger.kernel.org, gospo@redhat.com, sassmann@redhat.com
Subject: Re: [ethtool 2/2] ethtool: allow setting MDI-X state
Date: Thu, 06 Sep 2012 13:57:32 -0700 [thread overview]
Message-ID: <1346965052.2284.4.camel@jtkirshe-mobl> (raw)
In-Reply-To: <1346955923.2714.26.camel@bwh-desktop.uk.solarflarecom.com>
[-- Attachment #1: Type: text/plain, Size: 3085 bytes --]
On Thu, 2012-09-06 at 19:25 +0100, Ben Hutchings wrote:
> On Tue, 2012-08-21 at 01:37 -0700, Jeff Kirsher wrote:
> > From: Jesse Brandeburg <jesse.brandeburg@intel.com>
> >
> > A bit ago ethtool added support for reading MDI-X state, this
> > patch finishes the implementation, adding the complementary write
> > command.
> [...]
>
> Applied. I also commited the following changes:
>
> ---
> Subject: ethtool.8: Mark-up mdix arguments properly
>
> Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
> ---
> ethtool.8.in | 11 ++++++-----
> 1 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/ethtool.8.in b/ethtool.8.in
> index 3208d38..2799e25 100644
> --- a/ethtool.8.in
> +++ b/ethtool.8.in
> @@ -523,11 +523,12 @@ Sets full or half duplex mode.
> Selects device port.
> .TP
> .A3 mdix auto on off
> -Selects MDI-X mode for port. May be used to override the automatic detection
> -feature of most adapters. Auto means automatic detection of MDI status, on
> -forces MDI-X (crossover) mode, while off means MDI (straight through) mode.
> -The driver should guarantee that this command takes effect immediately, and
> -if necessary may reset the link to cause the change to take effect.
> +Selects MDI-X mode for port. May be used to override the automatic
> +detection feature of most adapters. An argument of \fBauto\fR means
> +automatic detection of MDI status, \fBon\fR forces MDI-X (crossover)
> +mode, while \fBoff\fR means MDI (straight through) mode. The driver
> +should guarantee that this command takes effect immediately, and if
> +necessary may reset the link to cause the change to take effect.
> .TP
> .A2 autoneg on off
> Specifies whether autonegotiation should be enabled. Autonegotiation
> ---
> Subject: test-cmdline: Test -s mdix keyword
>
> Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
> ---
> test-cmdline.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/test-cmdline.c b/test-cmdline.c
> index 6a60ed4..85b4ce0 100644
> --- a/test-cmdline.c
> +++ b/test-cmdline.c
> @@ -22,12 +22,14 @@ static struct test_case {
> { 1, "16_char_devname!" },
> /* Argument parsing for -s is specialised */
> { 0, "-s devname" },
> - { 0, "--change devname speed 100 duplex half" },
> + { 0, "--change devname speed 100 duplex half mdix auto" },
> { 1, "-s devname speed foo" },
> { 1, "--change devname speed" },
> { 0, "-s devname duplex half" },
> { 1, "--change devname duplex foo" },
> { 1, "-s devname duplex" },
> + { 1, "--change devname mdix foo" },
> + { 1, "-s devname mdix" },
> { 0, "--change devname port tp" },
> { 1, "-s devname port foo" },
> { 1, "--change devname port" },
> ---
>
> Please include at least basic test cases like this for any new feature.
> I did it this time because I've already kept you waiting and didn't
> think it would be fair to request changes.
>
> Ben.
>
Thanks Ben, I will make sure that we cover that with any new features
going forward.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-09-06 20:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-21 8:37 [ethtool 1/2] ethtool.h: implement new MDI-X set defines Jeff Kirsher
2012-08-21 8:37 ` [ethtool 2/2] ethtool: allow setting MDI-X state Jeff Kirsher
2012-09-06 18:25 ` Ben Hutchings
2012-09-06 20:57 ` Jeff Kirsher [this message]
2012-09-06 9:44 ` [ethtool 1/2] ethtool.h: implement new MDI-X set defines Jeff Kirsher
-- strict thread matches above, loose matches on Subject: below --
2012-07-20 6:25 Jeff Kirsher
2012-07-20 6:25 ` [ethtool 2/2] ethtool: allow setting MDI-X state Jeff Kirsher
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=1346965052.2284.4.camel@jtkirshe-mobl \
--to=jeffrey.t.kirsher@intel.com \
--cc=bhutchings@solarflare.com \
--cc=gospo@redhat.com \
--cc=jesse.brandeburg@intel.com \
--cc=netdev@vger.kernel.org \
--cc=sassmann@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).