Commit a33c83c4 authored by Sridhar Samudrala's avatar Sridhar Samudrala Committed by Jeff Kirsher

virtchnl: Add pad fields to a couple of structures

This removes holes and makes structure sizes consistent across
32 and 64 bit builds.
Signed-off-by: default avatarSridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 735e35c5
...@@ -275,8 +275,10 @@ struct virtchnl_rxq_info { ...@@ -275,8 +275,10 @@ struct virtchnl_rxq_info {
u16 splithdr_enabled; /* deprecated with AVF 1.0 */ u16 splithdr_enabled; /* deprecated with AVF 1.0 */
u32 databuffer_size; u32 databuffer_size;
u32 max_pkt_size; u32 max_pkt_size;
u32 pad1;
u64 dma_ring_addr; u64 dma_ring_addr;
enum virtchnl_rx_hsplit rx_split_pos; /* deprecated with AVF 1.0 */ enum virtchnl_rx_hsplit rx_split_pos; /* deprecated with AVF 1.0 */
u32 pad2;
}; };
/* VIRTCHNL_OP_CONFIG_VSI_QUEUES /* VIRTCHNL_OP_CONFIG_VSI_QUEUES
...@@ -295,6 +297,7 @@ struct virtchnl_queue_pair_info { ...@@ -295,6 +297,7 @@ struct virtchnl_queue_pair_info {
struct virtchnl_vsi_queue_config_info { struct virtchnl_vsi_queue_config_info {
u16 vsi_id; u16 vsi_id;
u16 num_queue_pairs; u16 num_queue_pairs;
u32 pad;
struct virtchnl_queue_pair_info qpair[1]; struct virtchnl_queue_pair_info qpair[1];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment