diff options
author | Shannon Nelson <snelson@pensando.io> | 2021-03-16 05:31:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-16 07:27:06 +0300 |
commit | 633eddf120ac148c05db45fc8fd878af54f72eaa (patch) | |
tree | 5890ec36381c4c692c814e76eccbc26c04169c65 /drivers/net/ethernet/pensando/ionic/ionic_dev.h | |
parent | 19fef72cb4ba4c3c25bf89f4e73fdcefb9fd7bd2 (diff) | |
download | linux-633eddf120ac148c05db45fc8fd878af54f72eaa.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/pensando/ionic/ionic_dev.h')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_dev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_dev.h b/drivers/net/ethernet/pensando/ionic/ionic_dev.h index d0c969a6d43e..ca7e55455165 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_dev.h +++ b/drivers/net/ethernet/pensando/ionic/ionic_dev.h @@ -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; |