All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shannon Nelson <shnelson@amd.com>
To: Leon Romanovsky <leon@kernel.org>, Shannon Nelson <snelson@pensando.io>
Cc: davem@davemloft.net, netdev@vger.kernel.org, kuba@kernel.org,
	drivers@pensando.io
Subject: Re: [PATCH net-next 1/5] ionic: replay VF attributes after fw crash recovery
Date: Tue, 25 Oct 2022 01:34:25 -0700	[thread overview]
Message-ID: <e9fcf40b-a2f1-d6fe-2a18-1d0aa1964540@amd.com> (raw)
In-Reply-To: <Y1aBL+jfY8uXS9Yx@unreal>

On 10/24/22 5:12 AM, Leon Romanovsky wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
> 
> 
> On Mon, Oct 24, 2022 at 03:17:13AM -0700, Shannon Nelson wrote:
>> The VF attributes that the user has set into the FW through
>> the PF can be lost over a FW crash recovery.  Much like we
>> already replay the PF mac/vlan filters, we now add a replay
>> in the recovery path to be sure the FW has the up-to-date
>> VF configurations.
>>
>> Signed-off-by: Shannon Nelson <snelson@pensando.io>
>> ---
>>   .../net/ethernet/pensando/ionic/ionic_lif.c   | 70 +++++++++++++++++++
>>   1 file changed, 70 insertions(+)
>>
>> diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
>> index 19d4848df17d..5d593198ad72 100644
>> --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c
>> +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
>> @@ -2562,6 +2562,74 @@ static int ionic_set_vf_link_state(struct net_device *netdev, int vf, int set)
>>        return ret;
>>   }
>>
>> +static void ionic_vf_attr_replay(struct ionic_lif *lif)
>> +{
>> +     struct ionic_vf_setattr_cmd vfc = { 0 };
> 
> There is no need in 0 for {} installations.
> 
> <...>
> 
>> +                     (void)ionic_set_vf_config(ionic, i, &vfc);
> 
> No need to cast return type of function, it is not kernel style.
> 
> Thanks

Sure, I'll fix those up - thanks.
sln

  reply	other threads:[~2022-10-25  8:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-24 10:17 [PATCH net-next 0/5] ionic: VF attr replay and other updates Shannon Nelson
2022-10-24 10:17 ` [PATCH net-next 1/5] ionic: replay VF attributes after fw crash recovery Shannon Nelson
2022-10-24 12:12   ` Leon Romanovsky
2022-10-25  8:34     ` Shannon Nelson [this message]
2022-10-24 10:17 ` [PATCH net-next 2/5] ionic: only save the user set VF attributes Shannon Nelson
2022-10-24 10:17 ` [PATCH net-next 3/5] ionic: new ionic device identity level and VF start control Shannon Nelson
2022-10-24 12:16   ` Leon Romanovsky
2022-10-25  8:35     ` Shannon Nelson
2022-10-24 10:17 ` [PATCH net-next 4/5] ionic: enable tunnel offloads Shannon Nelson
2022-10-24 10:17 ` [PATCH net-next 5/5] ionic: refactor use of ionic_rx_fill() Shannon Nelson

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=e9fcf40b-a2f1-d6fe-2a18-1d0aa1964540@amd.com \
    --to=shnelson@amd.com \
    --cc=davem@davemloft.net \
    --cc=drivers@pensando.io \
    --cc=kuba@kernel.org \
    --cc=leon@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=snelson@pensando.io \
    /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.