ionic: aggregate Tx byte counting calls
Gather the Tx packet and byte counts and call netdev_tx_completed_queue() only once per clean cycle. Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
19fef72cb4
commit
633eddf120
@@ -196,6 +196,7 @@ struct ionic_desc_info {
|
||||
struct ionic_txq_sg_desc *txq_sg_desc;
|
||||
struct ionic_rxq_sg_desc *rxq_sgl_desc;
|
||||
};
|
||||
unsigned int bytes;
|
||||
unsigned int nbufs;
|
||||
struct ionic_buf_info bufs[IONIC_MAX_FRAGS];
|
||||
ionic_desc_cb cb;
|
||||
|
||||
Reference in New Issue
Block a user