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>
This commit is contained in:

committed by
Saeed Mahameed

parent
c002bd529d
commit
e5b6ab02d7
@@ -1019,8 +1019,8 @@ static int bcm_sysport_poll(struct napi_struct *napi, int budget)
|
||||
}
|
||||
|
||||
if (priv->dim.use_dim) {
|
||||
net_dim_sample(priv->dim.event_ctr, priv->dim.packets,
|
||||
priv->dim.bytes, &dim_sample);
|
||||
net_dim_update_sample(priv->dim.event_ctr, priv->dim.packets,
|
||||
priv->dim.bytes, &dim_sample);
|
||||
net_dim(&priv->dim.dim, dim_sample);
|
||||
}
|
||||
|
||||
|
@@ -2130,10 +2130,10 @@ static int bnxt_poll(struct napi_struct *napi, int budget)
|
||||
if (bp->flags & BNXT_FLAG_DIM) {
|
||||
struct net_dim_sample dim_sample;
|
||||
|
||||
net_dim_sample(cpr->event_ctr,
|
||||
cpr->rx_packets,
|
||||
cpr->rx_bytes,
|
||||
&dim_sample);
|
||||
net_dim_update_sample(cpr->event_ctr,
|
||||
cpr->rx_packets,
|
||||
cpr->rx_bytes,
|
||||
&dim_sample);
|
||||
net_dim(&cpr->dim, dim_sample);
|
||||
}
|
||||
return work_done;
|
||||
|
@@ -1909,8 +1909,8 @@ static int bcmgenet_rx_poll(struct napi_struct *napi, int budget)
|
||||
}
|
||||
|
||||
if (ring->dim.use_dim) {
|
||||
net_dim_sample(ring->dim.event_ctr, ring->dim.packets,
|
||||
ring->dim.bytes, &dim_sample);
|
||||
net_dim_update_sample(ring->dim.event_ctr, ring->dim.packets,
|
||||
ring->dim.bytes, &dim_sample);
|
||||
net_dim(&ring->dim.dim, dim_sample);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user