aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/dim.h
diff options
context:
space:
mode:
authorTal Gilboa <talgi@mellanox.com>2019-01-14 15:32:49 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2019-06-25 13:46:39 -0700
commite5b6ab02d7aa4118c9a36491633812dcc442acbe (patch)
tree18b97237ff40d73999bb4df3dd3668f42ed0c16d /include/linux/dim.h
parentlinux/dim: Rename externally exposed macros (diff)
downloadwireguard-linux-e5b6ab02d7aa4118c9a36491633812dcc442acbe.tar.xz
wireguard-linux-e5b6ab02d7aa4118c9a36491633812dcc442acbe.zip
linux/dim: Rename net_dim_sample() to net_dim_update_sample()
In order to avoid confusion between the function and the similarly named struct. In preparation for removing the 'net' prefix from dim members. Signed-off-by: Tal Gilboa <talgi@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/dim.h')
-rw-r--r--include/linux/dim.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/dim.h b/include/linux/dim.h
index 989dbbdf9d45..f0f20ed25497 100644
--- a/include/linux/dim.h
+++ b/include/linux/dim.h
@@ -123,7 +123,8 @@ static inline void dim_park_tired(struct net_dim *dim)
}
static inline void
-net_dim_sample(u16 event_ctr, u64 packets, u64 bytes, struct net_dim_sample *s)
+net_dim_update_sample(u16 event_ctr, u64 packets, u64 bytes,
+ struct net_dim_sample *s)
{
s->time = ktime_get();
s->pkt_ctr = packets;