linux/dim: Rename externally used net_dim members
Removed 'net' prefix from functions and structs used by external drivers. 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
e5b6ab02d7
commit
8960b38932
@@ -643,7 +643,7 @@ static void bcmgenet_set_rx_coalesce(struct bcmgenet_rx_ring *ring,
|
||||
static void bcmgenet_set_ring_rx_coalesce(struct bcmgenet_rx_ring *ring,
|
||||
struct ethtool_coalesce *ec)
|
||||
{
|
||||
struct net_dim_cq_moder moder;
|
||||
struct dim_cq_moder moder;
|
||||
u32 usecs, pkts;
|
||||
|
||||
ring->rx_coalesce_usecs = ec->rx_coalesce_usecs;
|
||||
@@ -1898,7 +1898,7 @@ static int bcmgenet_rx_poll(struct napi_struct *napi, int budget)
|
||||
{
|
||||
struct bcmgenet_rx_ring *ring = container_of(napi,
|
||||
struct bcmgenet_rx_ring, napi);
|
||||
struct net_dim_sample dim_sample;
|
||||
struct dim_sample dim_sample;
|
||||
unsigned int work_done;
|
||||
|
||||
work_done = bcmgenet_desc_rx(ring, budget);
|
||||
@@ -1909,8 +1909,8 @@ static int bcmgenet_rx_poll(struct napi_struct *napi, int budget)
|
||||
}
|
||||
|
||||
if (ring->dim.use_dim) {
|
||||
net_dim_update_sample(ring->dim.event_ctr, ring->dim.packets,
|
||||
ring->dim.bytes, &dim_sample);
|
||||
dim_update_sample(ring->dim.event_ctr, ring->dim.packets,
|
||||
ring->dim.bytes, &dim_sample);
|
||||
net_dim(&ring->dim.dim, dim_sample);
|
||||
}
|
||||
|
||||
@@ -1919,12 +1919,12 @@ static int bcmgenet_rx_poll(struct napi_struct *napi, int budget)
|
||||
|
||||
static void bcmgenet_dim_work(struct work_struct *work)
|
||||
{
|
||||
struct net_dim *dim = container_of(work, struct net_dim, work);
|
||||
struct dim *dim = container_of(work, struct dim, work);
|
||||
struct bcmgenet_net_dim *ndim =
|
||||
container_of(dim, struct bcmgenet_net_dim, dim);
|
||||
struct bcmgenet_rx_ring *ring =
|
||||
container_of(ndim, struct bcmgenet_rx_ring, dim);
|
||||
struct net_dim_cq_moder cur_profile =
|
||||
struct dim_cq_moder cur_profile =
|
||||
net_dim_get_rx_moderation(dim->mode, dim->profile_ix);
|
||||
|
||||
bcmgenet_set_rx_coalesce(ring, cur_profile.usec, cur_profile.pkts);
|
||||
@@ -2094,7 +2094,7 @@ static void bcmgenet_init_dim(struct bcmgenet_rx_ring *ring,
|
||||
static void bcmgenet_init_rx_coalesce(struct bcmgenet_rx_ring *ring)
|
||||
{
|
||||
struct bcmgenet_net_dim *dim = &ring->dim;
|
||||
struct net_dim_cq_moder moder;
|
||||
struct dim_cq_moder moder;
|
||||
u32 usecs, pkts;
|
||||
|
||||
usecs = ring->rx_coalesce_usecs;
|
||||
|
Reference in New Issue
Block a user