[PATCH iwl-next 02/14] virtchnl: introduce control plane version fields

Larysa Zaremba
2025-04-08T12:48:31Z

From: Victor Raj <victor.raj@intel.com>

In the virtchnl header file, add the Control Plane software
version fields.

Signed-off-by: Victor Raj <victor.raj@intel.com>
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com>
---
include/linux/intel/virtchnl2.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/linux/intel/virtchnl2.h b/include/linux/intel/virtchnl2.h
index 63deb120359c..0f31d65823f2 100644
--- a/include/linux/intel/virtchnl2.h
+++ b/include/linux/intel/virtchnl2.h
@@ -467,7 +467,8 @@ VIRTCHNL2_CHECK_STRUCT_LEN(8, virtchnl2_version_info);
* sent per transmit packet without needing to be
* linearized.
* @pad: Padding.
- * @reserved: Reserved.
+ * @cp_ver_major: Control Plane major version number.
+ * @cp_ver_minor: Control Plane minor version number.
* @device_type: See enum virtchl2_device_type.
* @min_sso_packet_len: Min packet length supported by device for single
* segment offload.
@@ -516,7 +517,8 @@ struct virtchnl2_get_capabilities {
__le16 max_tx_hdr_size;
u8 max_sg_bufs_per_tx_pkt;
u8 pad[3];
- u8 reserved[4];
+ __le16 cp_ver_major;
+ __le16 cp_ver_minor;
__le32 device_type;
u8 min_sso_packet_len;
u8 max_hdr_buf_per_lso;
--
2.47.0