Skip to content

Commit

Permalink
linux/ena: Change function names in ethtool code
Browse files Browse the repository at this point in the history
Remove the "com" part of two internal functions (used only in
ena_ethtool.c) and replace with "get" to better reflect what the
functions are doing.
These functions shouldn't have an "ena_com" prefix.

Signed-off-by: David Arinzon <[email protected]>
  • Loading branch information
ShayAgros committed Sep 9, 2024
1 parent ecc9458 commit 86101f5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions kernel/linux/ena/ena_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ static void ena_queue_stats(struct ena_adapter *adapter, u64 **data)
}
}

static void ena_com_admin_queue_stats(struct ena_adapter *adapter, u64 **data)
static void ena_get_admin_queue_stats(struct ena_adapter *adapter, u64 **data)
{
const struct ena_stats *ena_stats;
u64 *ptr;
Expand All @@ -323,7 +323,7 @@ static void ena_com_admin_queue_stats(struct ena_adapter *adapter, u64 **data)
}
}

static void ena_com_phc_stats(struct ena_adapter *adapter, u64 **data)
static void ena_get_phc_stats(struct ena_adapter *adapter, u64 **data)
{
const struct ena_stats *ena_stats;
u64 *ptr;
Expand Down Expand Up @@ -356,10 +356,10 @@ static void ena_get_stats(struct ena_adapter *adapter,
ena_metrics_stats(adapter, &data);

ena_queue_stats(adapter, &data);
ena_com_admin_queue_stats(adapter, &data);
ena_get_admin_queue_stats(adapter, &data);

if (ena_phc_is_active(adapter))
ena_com_phc_stats(adapter, &data);
ena_get_phc_stats(adapter, &data);
}

static void ena_get_ethtool_stats(struct net_device *netdev,
Expand Down Expand Up @@ -491,7 +491,7 @@ static void ena_queue_strings(struct ena_adapter *adapter, u8 **data)
}
}

static void ena_com_admin_strings(u8 **data)
static void ena_get_admin_strings(u8 **data)
{
const struct ena_stats *ena_stats;
int i;
Expand All @@ -504,7 +504,7 @@ static void ena_com_admin_strings(u8 **data)
}
}

static void ena_com_phc_strings(u8 **data)
static void ena_get_phc_strings(u8 **data)
{
const struct ena_stats *ena_stats;
int i;
Expand All @@ -531,10 +531,10 @@ static void ena_get_strings(struct ena_adapter *adapter,
ena_metrics_stats_strings(adapter, &data);

ena_queue_strings(adapter, &data);
ena_com_admin_strings(&data);
ena_get_admin_strings(&data);

if (ena_phc_is_active(adapter))
ena_com_phc_strings(&data);
ena_get_phc_strings(&data);
}

static void ena_get_ethtool_strings(struct net_device *netdev,
Expand Down

0 comments on commit 86101f5

Please sign in to comment.