patch-2.1.25 linux/drivers/net/defxx.c
Next file: linux/drivers/net/depca.c
Previous file: linux/drivers/net/de620.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Sun Feb 2 15:18:39 1997
- Orig file:
v2.1.24/linux/drivers/net/defxx.c
- Orig date:
Thu Jan 2 15:55:18 1997
diff -u --recursive --new-file v2.1.24/linux/drivers/net/defxx.c linux/drivers/net/defxx.c
@@ -247,7 +247,7 @@
static void dfx_int_common(DFX_board_t *bp);
static void dfx_interrupt(int irq, void *dev_id, struct pt_regs *regs);
-static struct enet_statistics *dfx_ctl_get_stats(struct device *dev);
+static struct net_device_stats *dfx_ctl_get_stats(struct device *dev);
static void dfx_ctl_set_multicast_list(struct device *dev);
static int dfx_ctl_set_mac_address(struct device *dev, void *addr);
static int dfx_ctl_update_cam(DFX_board_t *bp);
@@ -1991,7 +1991,7 @@
* None
*/
-struct enet_statistics *dfx_ctl_get_stats(
+struct net_device_stats *dfx_ctl_get_stats(
struct device *dev
)
@@ -2013,7 +2013,7 @@
bp->cmd_req_virt->cmd_type = PI_CMD_K_SMT_MIB_GET;
if (dfx_hw_dma_cmd_req(bp) != DFX_K_SUCCESS)
- return((struct enet_statistics *) &bp->stats);
+ return((struct net_device_stats *) &bp->stats);
/* Fill the bp->stats structure with the SMT MIB object values */
@@ -2114,7 +2114,7 @@
bp->cmd_req_virt->cmd_type = PI_CMD_K_CNTRS_GET;
if (dfx_hw_dma_cmd_req(bp) != DFX_K_SUCCESS)
- return((struct enet_statistics *) &bp->stats);
+ return((struct net_device_stats *) &bp->stats);
/* Fill the bp->stats structure with the FDDI counter values */
@@ -2130,7 +2130,7 @@
bp->stats.port_lem_cts[0] = bp->cmd_rsp_virt->cntrs_get.cntrs.link_errors[0].ls;
bp->stats.port_lem_cts[1] = bp->cmd_rsp_virt->cntrs_get.cntrs.link_errors[1].ls;
- return((struct enet_statistics *) &bp->stats);
+ return((struct net_device_stats *) &bp->stats);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov