Skip to content

Commit 4554341

Browse files
emuslndavem330
authored andcommitted
ionic: rearrange ionic_queue for better layout
A simple change to the struct ionic_queue layout removes some unnecessary padding and saves us a cacheline in the struct ionic_qcq layout. struct ionic_queue { Before: /* size: 256, cachelines: 4, members: 29 */ After: /* size: 192, cachelines: 3, members: 29 */ struct ionic_qcq { Before: /* size: 2112, cachelines: 33, members: 23 */ After: /* size: 2048, cachelines: 32, members: 23 */ Reviewed-by: Brett Creeley <[email protected]> Signed-off-by: Shannon Nelson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 453538c commit 4554341

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/pensando/ionic/ionic_dev.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@ struct ionic_queue {
239239
unsigned int num_descs;
240240
unsigned int max_sg_elems;
241241
u64 features;
242-
u64 drop;
243242
unsigned int type;
244243
unsigned int hw_index;
245244
unsigned int hw_type;
245+
bool xdp_flush;
246246
union {
247247
void *base;
248248
struct ionic_txq_desc *txq;
@@ -262,10 +262,10 @@ struct ionic_queue {
262262
};
263263
struct xdp_rxq_info *xdp_rxq_info;
264264
struct ionic_queue *partner;
265-
bool xdp_flush;
266265
dma_addr_t base_pa;
267266
dma_addr_t cmb_base_pa;
268267
dma_addr_t sg_base_pa;
268+
u64 drop;
269269
unsigned int desc_size;
270270
unsigned int sg_desc_size;
271271
unsigned int pid;

0 commit comments

Comments
 (0)