Skip to content

Commit 453538c

Browse files
emuslndavem330
authored andcommitted
ionic: rearrange ionic_qcq
Rearange a few fields for better cache use and to put the flags field up into the first cacheline rather than the last. struct ionic_qcq Before: /* size: 2176, cachelines: 34, members: 23 */ After: /* size: 2112, cachelines: 33, 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 0165892 commit 453538c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,25 @@ struct ionic_qcq {
7171
void *q_base;
7272
dma_addr_t q_base_pa;
7373
u32 q_size;
74+
u32 cq_size;
7475
void *cq_base;
7576
dma_addr_t cq_base_pa;
76-
u32 cq_size;
7777
void *sg_base;
7878
dma_addr_t sg_base_pa;
7979
u32 sg_size;
80+
unsigned int flags;
8081
void __iomem *cmb_q_base;
8182
phys_addr_t cmb_q_base_pa;
8283
u32 cmb_q_size;
8384
u32 cmb_pgid;
8485
u32 cmb_order;
8586
struct dim dim;
87+
struct timer_list napi_deadline;
8688
struct ionic_queue q;
8789
struct ionic_cq cq;
88-
struct ionic_intr_info intr;
89-
struct timer_list napi_deadline;
9090
struct napi_struct napi;
91-
unsigned int flags;
9291
struct ionic_qcq *napi_qcq;
92+
struct ionic_intr_info intr;
9393
struct dentry *dentry;
9494
};
9595

0 commit comments

Comments
 (0)