Skip to content

Commit

Permalink
mlxsw: spectrum: Make offloads stats functions static
Browse files Browse the repository at this point in the history
The offloads stats functions are local to this file, make them static.

Fixes: fc1bbb0 ('mlxsw: spectrum: Implement offload stats ndo [..]')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Or Gerlitz authored and David S. Miller committed Sep 21, 2016
1 parent a624f93 commit 4bdcc6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/net/ethernet/mellanox/mlxsw/spectrum.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ static int mlxsw_sp_port_change_mtu(struct net_device *dev, int mtu)
return err;
}

int
static int
mlxsw_sp_port_get_sw_stats64(const struct net_device *dev,
struct rtnl_link_stats64 *stats)
{
Expand Down Expand Up @@ -855,7 +855,7 @@ mlxsw_sp_port_get_sw_stats64(const struct net_device *dev,
return 0;
}

bool mlxsw_sp_port_has_offload_stats(int attr_id)
static bool mlxsw_sp_port_has_offload_stats(int attr_id)
{
switch (attr_id) {
case IFLA_OFFLOAD_XSTATS_CPU_HIT:
Expand All @@ -865,8 +865,8 @@ bool mlxsw_sp_port_has_offload_stats(int attr_id)
return false;
}

int mlxsw_sp_port_get_offload_stats(int attr_id, const struct net_device *dev,
void *sp)
static int mlxsw_sp_port_get_offload_stats(int attr_id, const struct net_device *dev,
void *sp)
{
switch (attr_id) {
case IFLA_OFFLOAD_XSTATS_CPU_HIT:
Expand Down

0 comments on commit 4bdcc6c

Please sign in to comment.