[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87618083B2453E4A8714035B62D679924FDF9934@FMSMSX105.amr.corp.intel.com>
Date: Wed, 28 Aug 2013 20:24:35 +0000
From: "Tantilov, Emil S" <emil.s.tantilov@...el.com>
To: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"gospo@...hat.com" <gospo@...hat.com>,
"sassmann@...hat.com" <sassmann@...hat.com>
Subject: RE: [net-next 04/10] ixgbe: fix link test when connected to 1Gbps
link partner
>-----Original Message-----
>From: Sergei Shtylyov
>[mailto:sergei.shtylyov@...entembedded.com]
>Sent: Wednesday, August 28, 2013 11:28 AM
>To: Kirsher, Jeffrey T
>Cc: davem@...emloft.net; Tantilov, Emil S;
>netdev@...r.kernel.org; gospo@...hat.com;
>sassmann@...hat.com
>Subject: Re: [net-next 04/10] ixgbe: fix link test when
>connected to 1Gbps link partner
>
>Hello.
>
>On 08/28/2013 02:33 PM, Jeff Kirsher wrote:
>
>> From: Emil Tantilov <emil.s.tantilov@...el.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@...el.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@...el.com>
>> Tested-by: Phil Schmitt <phillip.j.schmitt@...el.com>
>> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.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
>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.
>
>> 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.
Thanks,
Emil
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists