diff options
author | Andy Gospodarek <gospo@broadcom.com> | 2018-01-10 00:06:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-10 23:27:44 +0300 |
commit | 4c4dbb4a7363ce56c77cf8eb2090f67c1b0aa2cc (patch) | |
tree | 2cefe4488ff9aff1ffd75b2279cfb4ae761f7418 /drivers/net/ethernet/mellanox/mlx5/core/en_dim.c | |
parent | 9a31742531018c0b6ab1bccff97109c8020ad86e (diff) | |
download | linux-4c4dbb4a7363ce56c77cf8eb2090f67c1b0aa2cc.tar.xz |
net/mlx5e: Move dynamic interrupt coalescing code to include/linux
This move allows drivers to add private structure elements to track the
number of packets, bytes, and interrupts events per ring. A driver
also defines a workqueue handler to act on this collected data once per
poll and modify the coalescing parameters per ring.
Signed-off-by: Andy Gospodarek <gospo@broadcom.com>
Acked-by: Tal Gilboa <talgi@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_dim.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_dim.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c b/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c index c2612fbf8189..602851ab5b14 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c @@ -30,6 +30,7 @@ * SOFTWARE. */ +#include <linux/net_dim.h> #include "en.h" void mlx5e_rx_dim_work(struct work_struct *work) |