From: Simon Horman <horms@kernel.org>
To: Mengyuan Lou <mengyuanlou@net-swift.com>
Cc: netdev@vger.kernel.org, jiawenwu@trustnetic.com,
duanqiangwen@net-swift.com
Subject: Re: [PATCH net-next v3 5/6] net: ngbe: add sriov function support
Date: Wed, 15 May 2024 16:22:20 +0100 [thread overview]
Message-ID: <20240515152220.GM154012@kernel.org> (raw)
In-Reply-To: <15515521993762EE+20240515100830.32920-6-mengyuanlou@net-swift.com>
On Wed, May 15, 2024 at 05:50:08PM +0800, Mengyuan Lou wrote:
> Add sriov_configure for driver ops.
> Add mailbox handler wx_msg_task for ngbe in
> the interrupt handler.
> Add the notification flow when the vfs exist.
>
> Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com>
...
> +void wx_ping_all_vfs_with_link_status(struct wx *wx, bool link_up)
> +{
> + u32 msgbuf[2] = {0, 0};
> + u16 i;
> +
> + if (!wx->num_vfs)
> + return;
> + msgbuf[0] = WX_PF_NOFITY_VF_LINK_STATUS | WX_PF_CONTROL_MSG;
> + if (link_up)
> + msgbuf[1] = (wx->speed << 1) | link_up;
> + if (wx->vfinfo[i].clear_to_send)
Hi Mengyuan Lou,
i appears to be used uninitialised here.
Flagged by clang-18 W=1, and Smatch.
> + msgbuf[0] |= WX_VT_MSGTYPE_CTS;
> + if (wx->notify_not_runnning)
> + msgbuf[1] |= WX_PF_NOFITY_VF_NET_NOT_RUNNING;
> + for (i = 0 ; i < wx->num_vfs; i++)
> + wx_write_mbx_pf(wx, msgbuf, 2, i);
> +}
> +EXPORT_SYMBOL(wx_ping_all_vfs_with_link_status);
...
--
pw-bot: changes-requested
next prev parent reply other threads:[~2024-05-15 15:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240515100830.32920-1-mengyuanlou@net-swift.com>
2024-05-15 9:50 ` [PATCH net-next v3 1/6] net: libwx: Add malibox api for wangxun pf drivers Mengyuan Lou
2024-05-15 15:28 ` Simon Horman
2024-05-15 9:50 ` [PATCH net-next v3 2/6] net: libwx: Add sriov api for wangxun nics Mengyuan Lou
2024-05-15 9:50 ` [PATCH net-next v3 3/6] net: libwx: Redesign flow when sriov is enabled Mengyuan Lou
2024-05-15 9:50 ` [PATCH net-next v3 4/6] net: libwx: Add msg task func Mengyuan Lou
2024-05-15 15:24 ` Simon Horman
2024-05-15 9:50 ` [PATCH net-next v3 5/6] net: ngbe: add sriov function support Mengyuan Lou
2024-05-15 15:22 ` Simon Horman [this message]
2024-05-16 0:46 ` kernel test robot
2024-05-15 9:50 ` [PATCH net-next v3 6/6] net: txgbe: " Mengyuan Lou
[not found] <20240415110225.75132-1-mengyuanlou@net-swift.com>
2024-04-15 10:54 ` [PATCH net-next v3 5/6] net: ngbe: " Mengyuan Lou
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=20240515152220.GM154012@kernel.org \
--to=horms@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).