Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21239
b: refs/heads/master
c: fe93139
h: refs/heads/master
i:
  21237: 4886b8d
  21235: 19be0ef
  21231: 1976ec1
v: v3
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed Feb 7, 2006
1 parent a50d714 commit 216ac4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d3d0439f574a4857c97b3ad2e63b082b7382d7e
refs/heads/master: fe9313956d67367cc91c5a6989bafc4315801402
14 changes: 8 additions & 6 deletions trunk/drivers/net/s2io.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
#include <asm/system.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/div64.h>

/* local include */
#include "s2io.h"
Expand Down Expand Up @@ -5110,6 +5111,7 @@ static void s2io_get_ethtool_stats(struct net_device *dev,
int i = 0;
nic_t *sp = dev->priv;
StatInfo_t *stat_info = sp->mac_control.stats_info;
u64 tmp;

s2io_updt_stats(sp);
tmp_stats[i++] =
Expand Down Expand Up @@ -5205,12 +5207,12 @@ static void s2io_get_ethtool_stats(struct net_device *dev,
tmp_stats[i++] = stat_info->sw_stat.sending_both;
tmp_stats[i++] = stat_info->sw_stat.outof_sequence_pkts;
tmp_stats[i++] = stat_info->sw_stat.flush_max_pkts;
if (stat_info->sw_stat.num_aggregations)
tmp_stats[i++] = stat_info->sw_stat.sum_avg_pkts_aggregated /
stat_info->sw_stat.num_aggregations;
else
tmp_stats[i++] = 0;

tmp = 0;
if (stat_info->sw_stat.num_aggregations) {
tmp = stat_info->sw_stat.sum_avg_pkts_aggregated;
do_div(tmp, stat_info->sw_stat.num_aggregations);
}
tmp_stats[i++] = tmp;
}

static int s2io_ethtool_get_regs_len(struct net_device *dev)
Expand Down

0 comments on commit 216ac4d

Please sign in to comment.