net/mlx5e: Move dynamic interrupt coalescing code to include/linux
authorAndy Gospodarek <gospo@broadcom.com>
Tue, 9 Jan 2018 21:06:18 +0000 (16:06 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 20:27:44 +0000 (15:27 -0500)
commit4c4dbb4a7363ce56c77cf8eb2090f67c1b0aa2cc
tree2cefe4488ff9aff1ffd75b2279cfb4ae761f7418
parent9a31742531018c0b6ab1bccff97109c8020ad86e
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>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_dim.c
drivers/net/ethernet/mellanox/mlx5/core/net_dim.c [deleted file]
drivers/net/ethernet/mellanox/mlx5/core/net_dim.h [deleted file]
include/linux/net_dim.h [new file with mode: 0644]