summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib_common.h
diff options
context:
space:
mode:
authorRahul Lakkireddy2018-01-17 08:23:47 +0100
committerDavid S. Miller2018-01-19 20:56:32 +0100
commit91c1953de38725d41cf9a677569a8cc280065064 (patch)
tree69bb3d2dd776fa0c0f95a1d72b1d6c7e4993fd25 /drivers/net/ethernet/chelsio/cxgb4/cudbg_lib_common.h
parentcxgb4: update dump collection logic to use compression (diff)
downloadkernel-qcow2-linux-91c1953de38725d41cf9a677569a8cc280065064.tar.gz
kernel-qcow2-linux-91c1953de38725d41cf9a677569a8cc280065064.tar.xz
kernel-qcow2-linux-91c1953de38725d41cf9a677569a8cc280065064.zip
cxgb4: use zlib deflate to compress firmware dump
Use zlib deflate to compress firmware dump. Collect and compress as much firmware dump as possible into a 32 MB buffer. Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> Signed-off-by: Vishal Kulkarni <vishal@chelsio.com> Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cudbg_lib_common.h')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cudbg_lib_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib_common.h b/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib_common.h
index 2e1c8e87c9bd..8150ea85d6a5 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib_common.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib_common.h
@@ -26,6 +26,7 @@ enum cudbg_dump_type {
enum cudbg_compression_type {
CUDBG_COMPRESSION_NONE = 1,
+ CUDBG_COMPRESSION_ZLIB,
};
struct cudbg_hdr {