ionic: remove callback pointer from desc_info
By reworking the queue service routines to have their own servicing loops we can remove the cb pointer from desc_info to save another 8 bytes per descriptor, This simplifies some of the queue handling indirection and makes the code a little easier to follow, and keeps service code in one place rather than jumping between code files. struct ionic_desc_info Before: /* size: 472, cachelines: 8, members: 7 */ After: /* size: 464, cachelines: 8, members: 6 */ 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_dev.c 3 additions, 39 deletionsdrivers/net/ethernet/pensando/ionic/ionic_dev.c
- drivers/net/ethernet/pensando/ionic/ionic_dev.h 4 additions, 10 deletionsdrivers/net/ethernet/pensando/ionic/ionic_dev.h
- drivers/net/ethernet/pensando/ionic/ionic_lif.c 1 addition, 1 deletiondrivers/net/ethernet/pensando/ionic/ionic_lif.c
- drivers/net/ethernet/pensando/ionic/ionic_main.c 26 additions, 12 deletionsdrivers/net/ethernet/pensando/ionic/ionic_main.c
- drivers/net/ethernet/pensando/ionic/ionic_txrx.c 23 additions, 29 deletionsdrivers/net/ethernet/pensando/ionic/ionic_txrx.c
Please register or sign in to comment