qlcnic: change capture mask for FW dump
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>
Thu, 14 Jul 2011 03:16:55 +0000 (03:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 15:49:44 +0000 (08:49 -0700)
o Change FW dump capture mask to a defult value, instead of using the recommended
  value from the FW. This was done to keep the capture mask consistent with other
  function drivers.

o Update driver version to 5.0.21

Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic.h
drivers/net/qlcnic/qlcnic_ctx.c

index f6e54a8e349d18fa5782f5e19dd1808961214686..baf646d98fa07a7e8fdce96ee15ebc9a3a00f0a5 100644 (file)
@@ -36,8 +36,8 @@
 
 #define _QLCNIC_LINUX_MAJOR 5
 #define _QLCNIC_LINUX_MINOR 0
-#define _QLCNIC_LINUX_SUBVERSION 20
-#define QLCNIC_LINUX_VERSIONID  "5.0.20"
+#define _QLCNIC_LINUX_SUBVERSION 21
+#define QLCNIC_LINUX_VERSIONID  "5.0.21"
 #define QLCNIC_DRV_IDC_VER  0x01
 #define QLCNIC_DRIVER_VERSION  ((_QLCNIC_LINUX_MAJOR << 16) |\
                 (_QLCNIC_LINUX_MINOR << 8) | (_QLCNIC_LINUX_SUBVERSION))
@@ -1339,7 +1339,7 @@ enum op_codes {
 #define QLCNIC_DUMP_SKIP       BIT_7
 
 #define QLCNIC_DUMP_MASK_MIN           3
-#define QLCNIC_DUMP_MASK_DEF           0x7f
+#define QLCNIC_DUMP_MASK_DEF           0x1f
 #define QLCNIC_DUMP_MASK_MAX           0xff
 #define QLCNIC_FORCE_FW_DUMP_KEY       0xdeadfeed
 #define QLCNIC_ENABLE_FW_DUMP          0xaddfeed
index 33f5c8a8b551c637ff0291ec4d81c6577be990b3..b0d32ddd2ccbdc623ed906c27bafaeb354112934 100644 (file)
@@ -145,11 +145,7 @@ int qlcnic_fw_cmd_get_minidump_temp(struct qlcnic_adapter *adapter)
                *template++ = __le32_to_cpu(*tmp_buf++);
 
        tmpl_hdr = ahw->fw_dump.tmpl_hdr;
-       if (tmpl_hdr->cap_mask > QLCNIC_DUMP_MASK_DEF &&
-               tmpl_hdr->cap_mask <= QLCNIC_DUMP_MASK_MAX)
-               tmpl_hdr->drv_cap_mask = tmpl_hdr->cap_mask;
-       else
-               tmpl_hdr->drv_cap_mask = QLCNIC_DUMP_MASK_DEF;
+       tmpl_hdr->drv_cap_mask = QLCNIC_DUMP_MASK_DEF;
        ahw->fw_dump.enable = 1;
 error:
        dma_free_coherent(&adapter->pdev->dev, temp_size, tmp_addr, tmp_addr_t);