net/ionic: cut down completion queue structure
authorAndrew Boyer <aboyer@pensando.io>
Tue, 16 Feb 2021 20:35:26 +0000 (12:35 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 25 Feb 2021 15:58:56 +0000 (16:58 +0100)
commit2aed98657aefb9aebb3e36f9ba329fd939418413
tree4fd90911648d020345d82af0f891ae0078cfe5ab
parent378cd4887d6c02bf771eee3a8b56a3af41f37b7c
net/ionic: cut down completion queue structure

Add Q_NEXT_TO_POST() and Q_NEXT_TO_SRVC() macros.
Use a precomputed size mask.

This will conserve resources.

Signed-off-by: Andrew Boyer <aboyer@pensando.io>
drivers/net/ionic/ionic_dev.c
drivers/net/ionic/ionic_dev.h
drivers/net/ionic/ionic_lif.c
drivers/net/ionic/ionic_lif.h
drivers/net/ionic/ionic_rxtx.c