cxgb4: use zlib deflate to compress firmware dump
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Wed, 17 Jan 2018 07:23:47 +0000 (12:53 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jan 2018 19:56:32 +0000 (14:56 -0500)
commit91c1953de38725d41cf9a677569a8cc280065064
tree69bb3d2dd776fa0c0f95a1d72b1d6c7e4993fd25
parent56cf2635ce30febd448dc78ff5361e4d9ad2fc0e
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>
drivers/net/ethernet/chelsio/cxgb4/Makefile
drivers/net/ethernet/chelsio/cxgb4/cudbg_if.h
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib_common.h
drivers/net/ethernet/chelsio/cxgb4/cudbg_zlib.c [new file with mode: 0644]
drivers/net/ethernet/chelsio/cxgb4/cudbg_zlib.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.h