Skip to content

Commit a33c83c

Browse files
ssamudralaJeff Kirsher
authored andcommitted
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: Sridhar Samudrala <sridhar.samudrala@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent 735e35c commit a33c83c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎include/linux/avf/virtchnl.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,10 @@ struct virtchnl_rxq_info {
275275
u16 splithdr_enabled; /* deprecated with AVF 1.0 */
276276
u32 databuffer_size;
277277
u32 max_pkt_size;
278+
u32 pad1;
278279
u64 dma_ring_addr;
279280
enum virtchnl_rx_hsplit rx_split_pos; /* deprecated with AVF 1.0 */
281+
u32 pad2;
280282
};
281283

282284
/* VIRTCHNL_OP_CONFIG_VSI_QUEUES
@@ -295,6 +297,7 @@ struct virtchnl_queue_pair_info {
295297
struct virtchnl_vsi_queue_config_info {
296298
u16 vsi_id;
297299
u16 num_queue_pairs;
300+
u32 pad;
298301
struct virtchnl_queue_pair_info qpair[1];
299302
};
300303

0 commit comments

Comments
 (0)