From: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, ganeshgr@chelsio.com, nirranjan@chelsio.com,
indranil@chelsio.com,
Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Subject: [PATCH net-next 0/2] cxgb4: reduce memory footprint for collecting firmware dump
Date: Wed, 17 Jan 2018 12:53:45 +0530 [thread overview]
Message-ID: <cover.1516172837.git.rahul.lakkireddy@chelsio.com> (raw)
Firmware dump can be large (upto 2 GB). In low memory conditions,
ethtool fails to allocate such large memory. So, use zlib deflate
to compress collected firmware dump.
Patch 1 updates collection logic to use compression.
Patch 2 adds zlib deflate to compress collected firmware dump.
Thanks,
Rahul
Rahul Lakkireddy (2):
cxgb4: update dump collection logic to use compression
cxgb4: use zlib deflate to compress firmware dump
drivers/net/ethernet/chelsio/cxgb4/Makefile | 1 +
drivers/net/ethernet/chelsio/cxgb4/cudbg_common.c | 24 +-
drivers/net/ethernet/chelsio/cxgb4/cudbg_if.h | 4 +
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 280 +++++++++++----------
.../net/ethernet/chelsio/cxgb4/cudbg_lib_common.h | 8 +-
drivers/net/ethernet/chelsio/cxgb4/cudbg_zlib.c | 81 ++++++
drivers/net/ethernet/chelsio/cxgb4/cudbg_zlib.h | 56 +++++
drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c | 65 ++++-
drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.h | 3 +
9 files changed, 374 insertions(+), 148 deletions(-)
create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cudbg_zlib.c
create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cudbg_zlib.h
--
2.14.1
next reply other threads:[~2018-01-17 7:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-17 7:23 Rahul Lakkireddy [this message]
2018-01-17 7:23 ` [PATCH net-next 1/2] cxgb4: update dump collection logic to use compression Rahul Lakkireddy
2018-01-17 7:23 ` [PATCH net-next 2/2] cxgb4: use zlib deflate to compress firmware dump Rahul Lakkireddy
2018-01-19 19:56 ` [PATCH net-next 0/2] cxgb4: reduce memory footprint for collecting " David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1516172837.git.rahul.lakkireddy@chelsio.com \
--to=rahul.lakkireddy@chelsio.com \
--cc=davem@davemloft.net \
--cc=ganeshgr@chelsio.com \
--cc=indranil@chelsio.com \
--cc=netdev@vger.kernel.org \
--cc=nirranjan@chelsio.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).