OSDN Git Service

linux/dim: Add completions count to dim_sample
authorYamin Friedman <yaminf@mellanox.com>
Thu, 22 Nov 2018 07:51:17 +0000 (09:51 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 25 Jun 2019 20:46:40 +0000 (13:46 -0700)
commit398c2b05bbee21cc172dfff017c0351d4d14e04c
tree46dc79312713a53112b23868f22d1cda3c932e9a
parent4f75da3666c0c572967729a2401ac650be5581b6
linux/dim: Add completions count to dim_sample

Added a measurement of completions per/msec to allow for completion based
dim algorithms.

In order to use dynamic interrupt moderation with RDMA we need to have a
different measurment than packets per second. This change is meant to
prepare for adding a new DIM method.

All drivers that use net_dim and thus do not need a completion count will
have the completions set to 0.

Signed-off-by: Yamin Friedman <yaminf@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
include/linux/dim.h
lib/dim/dim.c