[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1F86EBA5C8668B468CEE1C33B96E862B368A0665@IRSMSX104.ger.corp.intel.com>
Date: Wed, 24 Jan 2018 13:54:16 +0000
From: "Stachura, Mariusz" <mariusz.stachura@...el.com>
To: Jakub Kicinski <kubakici@...pl>
CC: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
"'davem@...emloft.net'" <davem@...emloft.net>,
"'netdev@...r.kernel.org'" <netdev@...r.kernel.org>,
"'nhorman@...hat.com'" <nhorman@...hat.com>,
"'sassmann@...hat.com'" <sassmann@...hat.com>,
"'jogreene@...hat.com'" <jogreene@...hat.com>,
"Williams, Mitch A" <mitch.a.williams@...el.com>
Subject: RE: [net-next v2 15/15] i40e: link_down_on_close private flag
support
>On Tue, 23 Jan 2018 10:55:33 +0000, Stachura, Mariusz wrote:
>> Hello Kuba,
>
>Hi Mariusz!
>
>> First of all sorry for a long response.
>>
>> Did you have a chance to try it using instruction I've sent?
>
>Unfortunately, I can't take the machine with Fortville down ATM to swap kernels. Is this patch already applied to your out-of-tree packaged driver? Could I try that?
>
>> As for review:
>> 1) nit: reverse christmas tree
>> I'm fixing it.
>> 2) Are abilities guaranteed to be filled in by this function? Otherwise you will use uninitialized stack memory.
>> Good point, I'm changing dev_dbg to dev_err and returning
>> immediately after printing it
>> 3) nit: looks like a GENMASK_ULL() coded as a loop
>> You are right, but I just realized this is not what I wanted :). I wanted to include all enum values, however not all values between enums. In example, there is a gap between:
>> I40E_PHY_TYPE_UNSUPPORTED = 0xF,
>> I40E_PHY_TYPE_100BASE_TX = 0x11,
>> And I did not want to include 0x10. I am adding #define that inludes all ORed enums (in i40e_adminq_cmd.h, just after enum i40e_aq_phy_type definition). I will assign this define to the mask, instead of using GENMASK_ULL.
>
>What about the error handling? That was my main worry. That the communication with FW will fail on open and the link will remain disabled.
Hi again,
As I checked, this ( https://sourceforge.net/projects/e1000/files/i40e%20stable/2.4.3/i40e-2.4.3.tar.gz/download ) version had this patch applied, feel free to give it a shot.
Error handling was also addressed. i40e_open checks i40e_force_link_state and returns EBUSY if get/set capabilities was not successful.
Best regards,
Mariusz Stachura
--------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by
others is strictly prohibited.
Powered by blists - more mailing lists