|
@@ -1003,17 +1003,6 @@ static void cpsw_get_ethtool_stats(struct net_device *ndev,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-static inline int __show_stat(char *buf, int maxlen, const char *name, u32 val)
|
|
|
-{
|
|
|
- static char *leader = "........................................";
|
|
|
-
|
|
|
- if (!val)
|
|
|
- return 0;
|
|
|
- else
|
|
|
- return snprintf(buf, maxlen, "%s %s %10d\n", name,
|
|
|
- leader + strlen(name), val);
|
|
|
-}
|
|
|
-
|
|
|
static int cpsw_common_res_usage_state(struct cpsw_priv *priv)
|
|
|
{
|
|
|
u32 i;
|