From: "Kumar, Rajesh" <rajesh3.kumar@intel.com>
To: Soumyadeep Hore <soumyadeep.hore@intel.com>, <dev@dpdk.org>,
<bruce.richardson@intel.com>, <aman.deep.singh@intel.com>
Cc: <dawid.wesierski@intel.com>, <manoj.kumar.subbarao@intel.com>,
"Paul Greenwalt" <paul.greenwalt@intel.com>,
<vladimir.medvedkin@intel.com>
Subject: Re: [PATCH v1 2/6] net/iavf/base: add VF Earliest TxTime First offload flag
Date: Fri, 4 Dec 2026 13:39:11 +0530 [thread overview]
Message-ID: <6e37f6ae-6e34-455a-b7ed-3814b833c7c0@intel.com> (raw)
In-Reply-To: <20261202125739.3662552-3-soumyadeep.hore@intel.com>
Acked-By: Rajesh Kumar <rajesh3.kumar@intel.com>
On 02-12-2026 06:27 pm, Soumyadeep Hore wrote:
> From: Paul Greenwalt <paul.greenwalt@intel.com>
>
> Add the VF capability flag VIRTCHNL_VF_OFFLOAD_TXTIME to negotiate VF ETF
> support between the PF and VF driver.
>
> As the flag is beyond bit 31 of the legacy vf_cap_flags field, it is
> negotiated through the extended capability message VIRTCHNL_OP_GET_VF_CAPS2
> (struct virtchnl_vf_caps2), which is gated by the VIRTCHNL_VF_CAPS2 flag
> in vf_cap_flags.
>
> Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
> Signed-off-by: Soumyadeep Hore <soumyadeep.hore@intel.com>
> ---
> drivers/net/intel/iavf/base/virtchnl.h | 30 ++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/drivers/net/intel/iavf/base/virtchnl.h b/drivers/net/intel/iavf/base/virtchnl.h
> index 513e4b5d52..f3f1965f00 100644
> --- a/drivers/net/intel/iavf/base/virtchnl.h
> +++ b/drivers/net/intel/iavf/base/virtchnl.h
> @@ -195,6 +195,7 @@ enum virtchnl_ops {
> VIRTCHNL_OP_HQOS_ELEMS_DEL = 133,
> VIRTCHNL_OP_HQOS_ELEMS_MOVE = 134,
> VIRTCHNL_OP_HQOS_ELEMS_CONF = 135,
> + VIRTCHNL_OP_GET_VF_CAPS2 = 136,
> VIRTCHNL_OP_MAX,
> };
>
> @@ -361,6 +362,8 @@ static inline const char *virtchnl_op_str(enum virtchnl_ops v_opcode)
> return "VIRTCHNL_OP_HQOS_ELEMS_MOVE";
> case VIRTCHNL_OP_HQOS_ELEMS_CONF:
> return "VIRTCHNL_OP_HQOS_ELEMS_CONF";
> + case VIRTCHNL_OP_GET_VF_CAPS2:
> + return "VIRTCHNL_OP_GET_VF_CAPS2";
> case VIRTCHNL_OP_MAX:
> return "VIRTCHNL_OP_MAX";
> default:
> @@ -471,6 +474,10 @@ VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_vsi_resource);
> #define VIRTCHNL_VF_OFFLOAD_L2 BIT(0)
> #define VIRTCHNL_VF_OFFLOAD_IWARP BIT(1)
> #define VIRTCHNL_VF_OFFLOAD_RSVD BIT(2)
> +/* If set in vf_cap_flags, the VF and PF support the extended capability
> + * negotiation via VIRTCHNL_OP_GET_VF_CAPS2 (shares bit 2 with RSVD).
> + */
> +#define VIRTCHNL_VF_CAPS2 BIT(2)
> #define VIRTCHNL_VF_OFFLOAD_RSS_AQ BIT(3)
> #define VIRTCHNL_VF_OFFLOAD_RSS_REG BIT(4)
> #define VIRTCHNL_VF_OFFLOAD_WB_ON_ITR BIT(5)
> @@ -501,6 +508,14 @@ VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_vsi_resource);
> #define VIRTCHNL_VF_CAP_DCF BIT(30)
> #define VIRTCHNL_VF_CAP_PTP BIT(31)
>
> +/* Extended VF capability flags negotiated via VIRTCHNL_OP_GET_VF_CAPS2.
> + * These are bit positions in the extended capability bitmap (which includes
> + * the original 32 bits at the same positions), not bits within the 32-bit
> + * vf_cap_flags field. Flags greater than 31 are only available via caps2.
> + */
> +#define VIRTCHNL_VF_OFFLOAD_TXTIME 32
> +#define VIRTCHNL_VF_CAPS_MAX 33
> +
> #define VF_BASE_MODE_OFFLOADS (VIRTCHNL_VF_OFFLOAD_L2 | \
> VIRTCHNL_VF_OFFLOAD_VLAN | \
> VIRTCHNL_VF_OFFLOAD_RSS_PF)
> @@ -520,6 +535,21 @@ struct virtchnl_vf_resource {
>
> VIRTCHNL_CHECK_STRUCT_LEN(36, virtchnl_vf_resource);
>
> +/* VIRTCHNL_OP_GET_VF_CAPS2
> + * Generic extended capability flags. The VF sends this message to negotiate an
> + * extended set of capability flags if VIRTCHNL_VF_CAPS2 is set in
> + * virtchnl_vf_resource::vf_cap_flags. On send, the VF sets what capabilities it
> + * requests; on reply, the PF indicates what has been enabled for the VF. The
> + * bitmap includes the original 32 vf_cap_flags bits at the same positions, plus
> + * flags that do not fit there (e.g. VIRTCHNL_VF_OFFLOAD_TXTIME).
> + */
> +struct virtchnl_vf_caps2 {
> + u32 flags_len;
> + u32 vf_cap_flags[];
> +};
> +
> +VIRTCHNL_CHECK_STRUCT_LEN(4, virtchnl_vf_caps2);
> +
> /* VIRTCHNL_OP_CONFIG_TX_QUEUE
> * VF sends this message to set up parameters for one TX queue.
> * External data buffer contains one instance of virtchnl_txq_info.
next prev parent reply other threads:[~2026-12-04 8:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 12:57 [PATCH v1 0/6] net/iavf: support Earliest TxTime First offload Soumyadeep Hore
2026-12-02 12:57 ` [PATCH v1 1/6] net/iavf/base: add VF Earliest TxTime First offload support Soumyadeep Hore
2026-12-04 8:08 ` Kumar, Rajesh
2026-12-02 12:57 ` [PATCH v1 2/6] net/iavf/base: add VF Earliest TxTime First offload flag Soumyadeep Hore
2026-12-04 8:09 ` Kumar, Rajesh [this message]
2026-12-02 12:57 ` [PATCH v1 3/6] net/iavf/base: add VF Earliest TxTime First offload register Soumyadeep Hore
2026-12-04 8:09 ` Kumar, Rajesh
2026-12-04 8:17 ` Kumar, Rajesh
2026-12-02 12:57 ` [PATCH v1 4/6] net/intel/common: add Tx time queue field for iavf Soumyadeep Hore
2026-12-04 8:17 ` Kumar, Rajesh
2026-12-02 12:57 ` [PATCH v1 5/6] net/iavf: support Earliest TxTime First offload Soumyadeep Hore
2026-12-04 10:41 ` Kumar, Rajesh
2026-12-02 12:57 ` [PATCH v1 6/6] doc: add iavf " Soumyadeep Hore
2026-12-04 8:07 ` Kumar, Rajesh
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=6e37f6ae-6e34-455a-b7ed-3814b833c7c0@intel.com \
--to=rajesh3.kumar@intel.com \
--cc=aman.deep.singh@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dawid.wesierski@intel.com \
--cc=dev@dpdk.org \
--cc=manoj.kumar.subbarao@intel.com \
--cc=paul.greenwalt@intel.com \
--cc=soumyadeep.hore@intel.com \
--cc=vladimir.medvedkin@intel.com \
/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