netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: "Tantilov, Emil S" <emil.s.tantilov@intel.com>
Cc: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"gospo@redhat.com" <gospo@redhat.com>,
	"sassmann@redhat.com" <sassmann@redhat.com>
Subject: Re: [net-next  04/10] ixgbe: fix link test when connected to 1Gbps link partner
Date: Thu, 29 Aug 2013 00:38:18 +0400	[thread overview]
Message-ID: <521E5FBA.9040400@cogentembedded.com> (raw)
In-Reply-To: <87618083B2453E4A8714035B62D679924FDF9934@FMSMSX105.amr.corp.intel.com>

On 08/29/2013 12:24 AM, Tantilov, Emil S wrote:

>>> From: Emil Tantilov <emil.s.tantilov@intel.com>

>>> This patch is a partial reverse of:
>>> commit dfcc4615f09c33454bc553567f7c7506cae60cb9

>>     Please also specify that commit's summary line in
>> parens.

> commit dfcc4615f09c33454bc553567f7c7506cae60cb9
> Author: Jacob Keller <jacob.e.keller@intel.com>
> Date:   Thu Nov 8 07:07:08 2012 +0000

>      ixgbe: ethtool ixgbe_diag_test cleanup

>>> Specifically forcing the laser before the link check can
>> lead to
>>> inconsistent results because it does not guarantee that
>> the link will be
>>> negotiated correctly. Such is the case when dual speed
>> SFP+ module is
>>> connected to a gigabit link partner.

>>> Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
>>> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
>>> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
>>> ---
>>>    drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 26
>>> ++++++++----------------
>>>    1 file changed, 9 insertions(+), 17 deletions(-)

>>> diff --git
>>> a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
>>> b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
>>> index db0dbf6..57465d8 100644
>>> --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
>>> +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
>>> @@ -1885,11 +1885,11 @@ static void ixgbe_diag_test(struct
>> net_device *netdev,
>>>                                struct ethtool_test
>> *eth_test, u64 *data)
>>>    {
>>>    	struct ixgbe_adapter *adapter = netdev_priv(netdev);
>>> -	struct ixgbe_hw *hw = &adapter->hw;
>>>    	bool if_running = netif_running(netdev);
>>>
>>>    	set_bit(__IXGBE_TESTING, &adapter->state);
>>>    	if (eth_test->flags == ETH_TEST_FL_OFFLINE) {
>>> +		struct ixgbe_hw *hw = &adapter->hw;
>>
>>     Empty line wouldn't here, after declaration. At least in

    Missed the verb "hurt" before "here".

>> the code above you have it.

> It's probably a good idea to make it more readable. Assuming you meant adding an empty line after the declaration.

    Yes.

>>
>>>    		if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED) {
>>>    			int i;
>>>    			for (i = 0; i < adapter->num_vfs; i++) {
>>
>> WBR, Sergei

> If the lack of commit description and the empty line after the *hw declaration is too big of a concern I can resubmit the patch.

    The earlier is certainly a requirement (coming originally from Linus). 
It's the only way to uniquely identify the commit and it's the only way to 
easily know what the commit was about without a git tree or with 'cgit' 
currently used by http://git.kernel.org (it doesn't follow the commit SHA1 as 
the 'gitweb' used to do).

> Thanks,
> Emil

WBR, Sergei

  reply	other threads:[~2013-08-28 20:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-28 10:33 [net-next 00/10][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
2013-08-28 10:33 ` [net-next 01/10] ixgbe: disable link when adapter goes down Jeff Kirsher
2013-08-28 10:33 ` [net-next 02/10] ixgbe: Check return value on eeprom reads Jeff Kirsher
2013-08-28 10:33 ` [net-next 03/10] ixgbe: fix incorrect limit value in ring transverse Jeff Kirsher
2013-08-28 10:33 ` [net-next 04/10] ixgbe: fix link test when connected to 1Gbps link partner Jeff Kirsher
2013-08-28 18:28   ` Sergei Shtylyov
2013-08-28 20:24     ` Tantilov, Emil S
2013-08-28 20:38       ` Sergei Shtylyov [this message]
2013-08-28 10:33 ` [net-next 05/10] ixgbe: zero out mailbox buffer on init Jeff Kirsher
2013-08-28 10:33 ` [net-next 06/10] ixgbe: cleanup some log messages Jeff Kirsher
2013-08-28 14:49   ` Joe Perches
2013-08-28 16:19     ` Skidmore, Donald C
2013-08-28 16:36       ` Joe Perches
2013-08-28 10:33 ` [net-next 07/10] ixgbe: fix SFF data dumps of SFP+ modules from an offset Jeff Kirsher
2013-08-29  1:00   ` Ben Hutchings
2013-08-28 10:33 ` [net-next 08/10] ixgbe: add 1Gbps support for QSFP+ Jeff Kirsher
2013-08-28 10:33 ` [net-next 09/10] ixgbe: include QSFP PHY types in ixgbe_is_sfp() Jeff Kirsher
2013-08-28 10:33 ` [net-next 10/10] ixgbe: add support for older QSFP active DA cables 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=521E5FBA.9040400@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=davem@davemloft.net \
    --cc=emil.s.tantilov@intel.com \
    --cc=gospo@redhat.com \
    --cc=jeffrey.t.kirsher@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).