Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213847
b: refs/heads/master
c: dd57f97
h: refs/heads/master
i:
  213845: 7cc70c0
  213843: ef87f85
  213839: a5fb023
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Aug 19, 2010
1 parent 9fe883f commit 9a8c6f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 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: b92840900fb575004cac694e56fd0a43f54dc344
refs/heads/master: dd57f970f91e2371040db709b3731ac34e43ccdb
22 changes: 7 additions & 15 deletions trunk/drivers/net/vxge/vxge-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2914,26 +2914,18 @@ static int vxge_change_mtu(struct net_device *dev, int new_mtu)
}

/**
* vxge_get_stats
* vxge_get_stats64
* @dev: pointer to the device structure
* @stats: pointer to struct rtnl_link_stats64
*
* Updates the device statistics structure. This function updates the device
* statistics structure in the net_device structure and returns a pointer
* to the same.
*/
static struct net_device_stats *
vxge_get_stats(struct net_device *dev)
static struct rtnl_link_stats64 *
vxge_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *net_stats)
{
struct vxgedev *vdev;
struct net_device_stats *net_stats;
struct vxgedev *vdev = netdev_priv(dev);
int k;

vdev = netdev_priv(dev);

net_stats = &vdev->stats.net_stats;

memset(net_stats, 0, sizeof(struct net_device_stats));

/* net_stats already zeroed by caller */
for (k = 0; k < vdev->no_of_vpath; k++) {
net_stats->rx_packets += vdev->vpaths[k].ring.stats.rx_frms;
net_stats->rx_bytes += vdev->vpaths[k].ring.stats.rx_bytes;
Expand Down Expand Up @@ -3102,7 +3094,7 @@ vxge_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid)
static const struct net_device_ops vxge_netdev_ops = {
.ndo_open = vxge_open,
.ndo_stop = vxge_close,
.ndo_get_stats = vxge_get_stats,
.ndo_get_stats64 = vxge_get_stats64,
.ndo_start_xmit = vxge_xmit,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_multicast_list = vxge_set_multicast,
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/vxge/vxge-main.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ struct vxge_msix_entry {

struct vxge_sw_stats {
/* Network Stats (interface stats) */
struct net_device_stats net_stats;

/* Tx */
u64 tx_frms;
Expand Down

0 comments on commit 9a8c6f3

Please sign in to comment.