From: Markus Elfring <Markus.Elfring@web.de>
To: Qiushi Wu <wu000273@umn.edu>,
oss-drivers@netronome.com, netdev@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Kangjie Lu <kjlu@umn.edu>
Subject: Re: [PATCH v2] nfp: abm: Fix incomplete release of system resources in nfp_abm_vnic_set_mac()
Date: Sun, 3 May 2020 22:25:27 +0200 [thread overview]
Message-ID: <88eecbe4-89b3-2b4d-87c7-5487cf23cadb@web.de> (raw)
In-Reply-To: <20200503184220.6209-1-wu000273@umn.edu>
> … Thus add a call of the function
> “nfp_nsp_close” for the completion of the exception handling.
Thanks for your positive response.
I imagined that a small patch series would be more reasonable
than this direct change combination.
…
> +++ b/drivers/net/ethernet/netronome/nfp/abm/main.c
…
> ether_addr_copy(nn->dp.netdev->perm_addr, mac_addr);
> +
> +generate_random_address:
> + eth_hw_addr_random(nn->dp.netdev);
> + return;
> }
…
Unfortunately, you interpreted my update suggestion in a questionable way
at this source code place.
I guess that the following code variant can be considered instead.
ether_addr_copy(nn->dp.netdev->perm_addr, mac_addr);
+ return;
+
+generate_random_address:
+ eth_hw_addr_random(nn->dp.netdev);
}
Regards,
Markus
prev parent reply other threads:[~2020-05-03 20:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-03 18:42 wu000273
2020-05-03 20:25 ` Markus Elfring [this message]
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=88eecbe4-89b3-2b4d-87c7-5487cf23cadb@web.de \
--to=markus.elfring@web.de \
--cc=davem@davemloft.net \
--cc=kernel-janitors@vger.kernel.org \
--cc=kjlu@umn.edu \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@netronome.com \
--cc=wu000273@umn.edu \
/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
all inboxes | Powered by JetHome®