From: Coiby Xu <coxu@redhat.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [RFC PATCH 2/4] i40e: use minimal rx and tx ring buffers for kdump
Date: Mon, 22 Feb 2021 15:06:59 +0800 [thread overview]
Message-ID: <20210222070701.16416-3-coxu@redhat.com> (raw)
In-Reply-To: <20210222070701.16416-1-coxu@redhat.com>
Use the minimum of the number of descriptors thus we will allocate the
minimal ring buffers for kdump.
Signed-off-by: Coiby Xu <coxu@redhat.com>
---
drivers/net/ethernet/intel/i40e/i40e_main.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 069c86e2f69d..5307f1744766 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -10552,6 +10552,11 @@ static int i40e_set_num_rings_in_vsi(struct i40e_vsi *vsi)
return -ENODATA;
}
+ if (is_kdump_kernel()) {
+ vsi->num_tx_desc = I40E_MIN_NUM_DESCRIPTORS;
+ vsi->num_rx_desc = I40E_MIN_NUM_DESCRIPTORS;
+ }
+
return 0;
}
--
2.30.0
next prev parent reply other threads:[~2021-02-22 7:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-22 7:06 [Intel-wired-lan] [RFC PATCH 0/4] Reducing memory usage of i40e for kdump Coiby Xu
2021-02-22 7:06 ` [Intel-wired-lan] [RFC PATCH 1/4] i40e: use minimal tx and rx pairs " Coiby Xu
2021-02-22 7:06 ` Coiby Xu [this message]
2021-02-22 7:07 ` [Intel-wired-lan] [RFC PATCH 3/4] i40e: use minimal admin queue " Coiby Xu
2021-02-22 7:07 ` [Intel-wired-lan] [RFC PATCH 4/4] i40e: don't open i40iw client " Coiby Xu
2021-02-23 20:22 ` Jakub Kicinski
2021-02-24 11:41 ` Coiby Xu
2021-02-24 16:48 ` Jakub Kicinski
2021-02-25 0:21 ` Coiby Xu
2021-02-25 0:47 ` Jakub Kicinski
2021-02-25 10:11 ` Bhupesh SHARMA
2021-03-03 9:44 ` Coiby Xu
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=20210222070701.16416-3-coxu@redhat.com \
--to=coxu@redhat.com \
--cc=intel-wired-lan@osuosl.org \
/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