diff options
author | Tal Gilboa | 2019-01-14 15:32:49 +0200 |
---|---|---|
committer | Saeed Mahameed | 2019-06-25 13:46:39 -0700 |
commit | e5b6ab02d7aa4118c9a36491633812dcc442acbe (patch) | |
tree | 18b97237ff40d73999bb4df3dd3668f42ed0c16d /include/linux/dim.h | |
parent | c002bd529d719858d4cc233431c88c9efa844053 (diff) |
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.h | 3 |
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; |