From: Jakub Kicinski <kuba@kernel.org>
To: mengyuanlou <mengyuanlou@net-swift.com>
Cc: netdev@vger.kernel.org, jiawenwu@trustnetic.com,
duanqiangwen@net-swift.com
Subject: Re: [PATCH net-next v7 2/6] net: libwx: Add sriov api for wangxun nics
Date: Fri, 7 Feb 2025 17:12:58 -0800 [thread overview]
Message-ID: <20250207171258.5e3c3374@kernel.org> (raw)
In-Reply-To: <20250206103750.36064-3-mengyuanlou@net-swift.com>
On Thu, 6 Feb 2025 18:37:46 +0800 mengyuanlou wrote:
> + num_vf_macvlans = wx->mac.num_rar_entries -
> + (WX_MAX_PF_MACVLANS + 1 + num_vfs);
> + if (!num_vf_macvlans)
> + return;
> +
> + mv_list = kcalloc(num_vf_macvlans, sizeof(struct vf_macvlans),
> + GFP_KERNEL);
> + if (mv_list) {
if you need to respin:
if (!mv_list)
return;
> + for (i = 0; i < num_vf_macvlans; i++) {
> + mv_list[i].vf = -1;
> + mv_list[i].free = true;
> + list_add(&mv_list[i].mvlist, &wx->vf_mvs.mvlist);
> + }
> + wx->mv_list = mv_list;
> + }
next prev parent reply other threads:[~2025-02-08 1:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-06 10:37 [PATCH net-next v7 0/6] add sriov support for wangxun NICs mengyuanlou
2025-02-06 10:37 ` [PATCH net-next v7 1/6] net: libwx: Add malibox api for wangxun pf drivers mengyuanlou
2025-02-06 10:37 ` [PATCH net-next v7 2/6] net: libwx: Add sriov api for wangxun nics mengyuanlou
2025-02-08 1:12 ` Jakub Kicinski [this message]
2025-02-06 10:37 ` [PATCH net-next v7 3/6] net: libwx: Redesign flow when sriov is enabled mengyuanlou
2025-02-08 1:15 ` Jakub Kicinski
2025-02-11 11:17 ` mengyuanlou
2025-02-06 10:37 ` [PATCH net-next v7 4/6] net: libwx: Add msg task func mengyuanlou
2025-02-08 1:17 ` Jakub Kicinski
2025-02-11 11:14 ` mengyuanlou
2025-02-06 10:37 ` [PATCH net-next v7 5/6] net: ngbe: add sriov function support mengyuanlou
2025-02-08 1:19 ` Jakub Kicinski
2025-02-11 11:14 ` mengyuanlou
2025-02-11 22:06 ` Jakub Kicinski
2025-02-12 11:06 ` mengyuanlou
2025-02-13 2:09 ` Jakub Kicinski
2025-02-06 10:37 ` [PATCH net-next v7 6/6] net: txgbe: " mengyuanlou
2025-02-08 1:09 ` Jakub Kicinski
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=20250207171258.5e3c3374@kernel.org \
--to=kuba@kernel.org \
--cc=duanqiangwen@net-swift.com \
--cc=jiawenwu@trustnetic.com \
--cc=mengyuanlou@net-swift.com \
--cc=netdev@vger.kernel.org \
/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).