]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
bna: Firmware update
authorRasesh Mody <rmody@brocade.com>
Tue, 11 Dec 2012 12:24:55 +0000 (12:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Dec 2012 23:25:53 +0000 (18:25 -0500)
Change Details:
 -      Added Stats clear counter to the bfi_enet_stats_mac structure and
        ethtool stats
 -      Modified the firmware naming convention to contain the firmware image
        version (3.1.0.0). The new convention is
        <firmware-image>-<firmware-version>.bin The change will enforce loading
        only compatible firmware with this driver and also avoid over-writing
        the old firmware image in-order to load new version driver as the
        firmware names used to be the same.

Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bfi_enet.h
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
drivers/net/ethernet/brocade/bna/cna.h

index eef6e1f8aecc1eb5540c4d32575ef76950a67c47..7d10e335c27d22e52a468faa50188448492fc69e 100644 (file)
@@ -787,6 +787,7 @@ struct bfi_enet_stats_bpc {
 
 /* MAC Rx Statistics */
 struct bfi_enet_stats_mac {
+       u64 stats_clr_cnt;      /* times this stats cleared */
        u64 frame_64;           /* both rx and tx counter */
        u64 frame_65_127;               /* both rx and tx counter */
        u64 frame_128_255;              /* both rx and tx counter */
index 40e1e84f498473f6a0c53b433acddfae1e4a012b..455b5a2e59d496b64d8c90f327dc4539e7ade67c 100644 (file)
@@ -102,6 +102,7 @@ static const char *bnad_net_stats_strings[BNAD_ETHTOOL_STATS_NUM] = {
        "rx_unmap_q_alloc_failed",
        "rxbuf_alloc_failed",
 
+       "mac_stats_clr_cnt",
        "mac_frame_64",
        "mac_frame_65_127",
        "mac_frame_128_255",
index 32e8f178ab76a964af67dcce189e8ec84195ab42..14ca9317c9150139f3047ab29fb7fba7835bdb61 100644 (file)
@@ -37,8 +37,8 @@
 
 extern char bfa_version[];
 
-#define        CNA_FW_FILE_CT  "ctfw.bin"
-#define        CNA_FW_FILE_CT2 "ct2fw.bin"
+#define CNA_FW_FILE_CT "ctfw-3.1.0.0.bin"
+#define CNA_FW_FILE_CT2        "ct2fw-3.1.0.0.bin"
 #define FC_SYMNAME_MAX 256     /*!< max name server symbolic name size */
 
 #pragma pack(1)