ionic: remove the cq_info to save more memory
With a little simple math we don't need another struct array to find the completion structs, so we can remove the ionic_cq_info altogether. This doesn't really save anything in the ionic_cq since it gets padded out to the cacheline, but it does remove the parallel array allocation of 8 * num_descriptors, or about 8 Kbytes per queue in a default configuration. Suggested-by:Neel Patel <npatel2@amd.com> Reviewed-by:
Brett Creeley <brett.creeley@amd.com> Signed-off-by:
Shannon Nelson <shannon.nelson@amd.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/pensando/ionic/ionic.h 2 additions, 2 deletionsdrivers/net/ethernet/pensando/ionic/ionic.h
- drivers/net/ethernet/pensando/ionic/ionic_dev.c 2 additions, 21 deletionsdrivers/net/ethernet/pensando/ionic/ionic_dev.c
- drivers/net/ethernet/pensando/ionic/ionic_dev.h 1 addition, 10 deletionsdrivers/net/ethernet/pensando/ionic/ionic_dev.h
- drivers/net/ethernet/pensando/ionic/ionic_lif.c 11 additions, 26 deletionsdrivers/net/ethernet/pensando/ionic/ionic_lif.c
- drivers/net/ethernet/pensando/ionic/ionic_main.c 8 additions, 10 deletionsdrivers/net/ethernet/pensando/ionic/ionic_main.c
- drivers/net/ethernet/pensando/ionic/ionic_txrx.c 13 additions, 19 deletionsdrivers/net/ethernet/pensando/ionic/ionic_txrx.c
- drivers/net/ethernet/pensando/ionic/ionic_txrx.h 1 addition, 1 deletiondrivers/net/ethernet/pensando/ionic/ionic_txrx.h
Please register or sign in to comment