]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/scsi/fcoe/fcoe.c
net: fix 64 bit counters on 32 bit arches
[net-next-2.6.git] / drivers / scsi / fcoe / fcoe.c
index 9276121db1efc15ffe7dc9539f83813a088e9356..1a429ed6da9d722b41f5f979b789915a433ce063 100644 (file)
@@ -688,7 +688,7 @@ static int fcoe_shost_config(struct fc_lport *lport, struct device *dev)
        }
 
        if (!lport->vport)
-               fc_host_max_npiv_vports(lport->host) = USHORT_MAX;
+               fc_host_max_npiv_vports(lport->host) = USHRT_MAX;
 
        snprintf(fc_host_symbolic_name(lport->host), FC_SYMBOLIC_NAME_SIZE,
                 "%s v%s over %s", FCOE_NAME, FCOE_VERSION,
@@ -2653,6 +2653,7 @@ static void fcoe_get_lesb(struct fc_lport *lport,
        u32 lfc, vlfc, mdac;
        struct fcoe_dev_stats *devst;
        struct fcoe_fc_els_lesb *lesb;
+       struct rtnl_link_stats64 temp;
        struct net_device *netdev = fcoe_netdev(lport);
 
        lfc = 0;
@@ -2669,7 +2670,7 @@ static void fcoe_get_lesb(struct fc_lport *lport,
        lesb->lesb_link_fail = htonl(lfc);
        lesb->lesb_vlink_fail = htonl(vlfc);
        lesb->lesb_miss_fka = htonl(mdac);
-       lesb->lesb_fcs_error = htonl(dev_get_stats(netdev)->rx_crc_errors);
+       lesb->lesb_fcs_error = htonl(dev_get_stats(netdev, &temp)->rx_crc_errors);
 }
 
 /**