From: Bixuan Cui <cuibixuan@huawei•com>
To: Stephen Hemminger <stephen@networkplumber•org>
Cc: <davem@davemloft•net>, <kuba@kernel•org>,
<linux-next@vger•kernel.org>, <linux-kernel@vger•kernel.org>,
<netdev@vger•kernel.org>, <jdmason@kudzu•us>,
<christophe.jaillet@wanadoo•fr>, <john.wanghui@huawei•com>
Subject: [PATCH v2] net: neterion: vxge: reduce stack usage in VXGE_COMPLETE_VPATH_TX
Date: Mon, 20 Jul 2020 09:58:39 +0800 [thread overview]
Message-ID: <866b4a34-cd4e-0120-904f-13669257a765@huawei.com> (raw)
In-Reply-To: <20200719100522.220a6f5a@hermes.lan>
Fix the warning: [-Werror=-Wframe-larger-than=]
drivers/net/ethernet/neterion/vxge/vxge-main.c:
In function'VXGE_COMPLETE_VPATH_TX.isra.37':
drivers/net/ethernet/neterion/vxge/vxge-main.c:119:1:
warning: the frame size of 1056 bytes is larger than 1024 bytes
Dropping the NR_SKB_COMPLETED to 16 is appropriate that won't
have much impact on performance and functionality.
Signed-off-by: Bixuan Cui <cuibixuan@huawei•com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber•org>
---
v2: Dropping the NR_SKB_COMPLETED to 16.
drivers/net/ethernet/neterion/vxge/vxge-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c
index b0faa737b817..f905d0fe7d54 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-main.c
+++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c
@@ -98,7 +98,7 @@ static inline void VXGE_COMPLETE_VPATH_TX(struct vxge_fifo *fifo)
{
struct sk_buff **skb_ptr = NULL;
struct sk_buff **temp;
-#define NR_SKB_COMPLETED 128
+#define NR_SKB_COMPLETED 16
struct sk_buff *completed[NR_SKB_COMPLETED];
int more;
--
2.17.1
.
next prev parent reply other threads:[~2020-07-20 1:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-16 17:32 [PATCH] net: neterion: vxge: reduce stack usage in VXGE_COMPLETE_VPATH_TX Bixuan Cui
2020-07-16 9:46 ` Joe Perches
2020-07-16 9:59 ` Bixuan Cui
2020-07-16 11:20 ` kernel test robot
2020-07-16 14:11 ` kernel test robot
2020-07-19 17:05 ` Stephen Hemminger
2020-07-20 1:57 ` Bixuan Cui
2020-07-20 1:58 ` Bixuan Cui [this message]
2020-07-21 1:38 ` [PATCH v2] " David Miller
2020-07-21 12:34 ` Bixuan Cui
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=866b4a34-cd4e-0120-904f-13669257a765@huawei.com \
--to=cuibixuan@huawei$(echo .)com \
--cc=christophe.jaillet@wanadoo$(echo .)fr \
--cc=davem@davemloft$(echo .)net \
--cc=jdmason@kudzu$(echo .)us \
--cc=john.wanghui@huawei$(echo .)com \
--cc=kuba@kernel$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=stephen@networkplumber$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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