From: Jakub Kicinski <kuba@kernel.org>
To: Shannon Nelson <snelson@pensando.io>
Cc: davem@davemloft.net, netdev@vger.kernel.org, leon@kernel.org,
drivers@pensando.io
Subject: Re: [PATCH v2 net-next 3/5] ionic: new ionic device identity level and VF start control
Date: Tue, 25 Oct 2022 20:08:11 -0700 [thread overview]
Message-ID: <20221025200811.553f5ab4@kernel.org> (raw)
In-Reply-To: <20221025112426.8954-4-snelson@pensando.io>
On Tue, 25 Oct 2022 04:24:24 -0700 Shannon Nelson wrote:
> A new ionic dev_cmd is added to the interface in ionic_if.h,
> with a new capabilities field in the ionic device identity to
> signal its availability in the FW. The identity level code is
> incremented to '2' to show support for this new capabilities
> bitfield.
>
> If the driver has indicated with the new identity level that
> it has the VF_CTRL command, newer FW will wait for the start
> command before starting the VFs after a FW update or crash
> recovery.
>
> This patch updates the driver to make use of the new VF start
> control in fw_up path to be sure that the PF has set the user
> attributes on the VF before the FW allows the VFs to restart.
You need to tidy up the kdoc usage..
> @@ -54,6 +54,7 @@ enum ionic_cmd_opcode {
> /* SR/IOV commands */
> IONIC_CMD_VF_GETATTR = 60,
> IONIC_CMD_VF_SETATTR = 61,
> + IONIC_CMD_VF_CTRL = 62,
not documented
>
> /* QoS commands */
> IONIC_CMD_QOS_CLASS_IDENTIFY = 240,
> +/**
> + * struct ionic_vf_ctrl_cmd - VF control command
> + * @opcode: Opcode for the command
> + * @vf_index: VF Index. It is unused if op START_ALL is used.
> + * @ctrl_opcode: VF control operation type
> + */
> +struct ionic_vf_ctrl_cmd {
> + u8 opcode;
> + u8 ctrl_opcode;
> + __le16 vf_index;
> + u8 rsvd1[60];
not documented
> +};
> +
> +/**
> + * struct ionic_vf_ctrl_comp - VF_CTRL command completion.
> + * @status: Status of the command (enum ionic_status_code)
> + */
> +struct ionic_vf_ctrl_comp {
> + u8 status;
> + u8 rsvd[15];
> +};
not documented
For the rsvd fields you can use the /* private: */ comment,
see the docs.
next prev parent reply other threads:[~2022-10-26 3:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-25 11:24 [PATCH v2 net-next 0/5] ionic: VF attr replay and other updates Shannon Nelson
2022-10-25 11:24 ` [PATCH v2 net-next 1/5] ionic: replay VF attributes after fw crash recovery Shannon Nelson
2022-10-25 11:24 ` [PATCH v2 net-next 2/5] ionic: only save the user set VF attributes Shannon Nelson
2022-10-25 11:24 ` [PATCH v2 net-next 3/5] ionic: new ionic device identity level and VF start control Shannon Nelson
2022-10-26 3:08 ` Jakub Kicinski [this message]
2022-10-26 4:23 ` Shannon Nelson
2022-10-26 16:31 ` Jakub Kicinski
2022-10-25 11:24 ` [PATCH v2 net-next 4/5] ionic: enable tunnel offloads Shannon Nelson
2022-10-25 11:24 ` [PATCH v2 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=20221025200811.553f5ab4@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=drivers@pensando.io \
--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 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).