mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
nvethernet: enable tx interrupt coalescing
Tx frame count and software timer based interrupt coalescing is enabled. Tx frame count based interrupt coalescing can be enabled only when tx software timer based interrupt coalescing is also enabled. Bug 200529168 Change-Id: I8ac701c86238e8d34d7dbe9924df1162083c023e Signed-off-by: Ajay Gupta <ajayg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2234610 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
5a14f39d86
commit
97dede3ff9
@@ -39,6 +39,7 @@
|
||||
#include <linux/udp.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/ktime.h>
|
||||
#include <linux/hrtimer.h>
|
||||
|
||||
#include <osi_core.h>
|
||||
#include <osi_dma.h>
|
||||
@@ -137,6 +138,7 @@
|
||||
*/
|
||||
#define ETHER_TX_DESC_THRESHOLD (MAX_SKB_FRAGS + ETHER_TX_MAX_SPLIT + 2)
|
||||
|
||||
#define ETHER_TX_MAX_FRAME (TX_DESC_CNT / ETHER_TX_DESC_THRESHOLD)
|
||||
/**
|
||||
*@brief Returns count of available transmit descriptors
|
||||
*
|
||||
@@ -178,6 +180,10 @@ struct ether_tx_napi {
|
||||
struct ether_priv_data *pdata;
|
||||
/** NAPI instance associated with transmit channel */
|
||||
struct napi_struct napi;
|
||||
/** SW timer associated with transmit channel */
|
||||
struct hrtimer tx_usecs_timer;
|
||||
/** SW timer flag associated with transmit channel */
|
||||
atomic_t tx_usecs_timer_armed;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user